2 <xsd:schema targetNamespace="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xforms="http://www.w3.org/2002/xforms" elementFormDefault="qualified">
5 26-Aug MJD fixed typo where more than one child allowed on <instance>
6 04-Sep MJD fixed typo on <send> : attribute 'submission' is required
7 04-Sep MJD fixed typo on <rebuild><recalculate><revalidate><refresh>: '' attribute is required
8 06-Sep MJD clarified specific allowed values of @level on <message>
9 06-Sep MJD removed UI Common attributes from <help><hint><alert><label>
10 09-Sep MJD changed minOccurrs and maxOccurs to use XPath expressions, default values
11 09-Sep MJD fixed typo: added linking attributes to <message>
12 09-Sep MJD removed <extension> from content models of <mode> and UI common elements
13 09-Sep MJD fixed typo: removed 'format' attribute
14 17-Sep MJD fixed typo: <output> now uses the attribute group for binding attributes, instead of similarly named individual attrs
15 17-Sep MJD added XPathExpression simpleType for internal use. This doesn't actually change anything, but makes
16 the Schema a better documentation resource (instead of using xsd:string for everything)
17 17-Sep MJD removed 'mediatype' attribute from <submission>, as it was unused
18 17-Sep MJD fixed typo: only 'ref' and 'bind' attributes, not 'model' on <submission>
19 17-Sep MJD added XML Events attributes to <model>
20 17-Sep MJD in accordance with 3.2.1, removed all id attributes
21 19-Sep MJD fixed typo: clarified that nested <action>s are permitted.
22 19-Sep MJD factor UI.Inline into <group>. Renamed <group>s and <attributeGroup>s to match the prose names
23 19-Sep MJD changed to agreed-upon namespace for CR
24 25-Sep MJD fixed typo: added UI.Inlne to content model of <message>, enabled mixed content
25 29-Sep MJD fixed typo: 'model' required on <reset>
26 29-Sep MJD fixed typo: binding attributes allowed on <submit>
27 29-Sep MJD fixed typo: explicit enumerated values for 'show' on <load>
28 04-Oct MJD 'resource' attribute not required
30 12-Nov 2002 : Published as CR
32 13-Jan MJD added new attribute includenamespaceprefixes on <submission>
33 13-Jan MJD added UI Common elements to content model of <group>
34 03-Feb MJD synchoninzed duration types with 15 Nov Query Operators document
35 31-Mar MJD added mediatype attribute on <submission>
36 14-May MJD typo : "xsd:NCName"
37 26-Jun MJD removed 'accesskey' and 'navindex' (over to host language definition)
39 01-Aug 2003 : Published as PR
41 15-Sep MJD final namespace
42 15-Sep MJD corrected content model of <value>
43 15-Sep MJD changed the name of the import for XML Events to highlight that only the attributes are used
45 1.0 Second Edition errata
47 16-Apr 2005 RAM - erratum E4 - optional @model
48 16-Apr 2005 RAM - erratum E22 - default value for @show
49 16-Apr 2005 RAM - erratum E54 - remove xforms:minOccurs and xforms:maxOccurs
50 26-Jun 2005 RAM - erratum E71 - allow an empty case element
52 16-Jun 2006 JMB - erratum E69 - instance attribute in submission; id in common attributes
54 15-Aug-2006 CFW - erratum E18 on 2nd ed. Added Action to content model for Case
56 09-Sep 2006 JMB - non-substantive: explicitly declared some use="optional" settings,
57 substantive: erratum E18 on 2nd ed. Declared default false for selected attribute of case
58 substantive: erratum E21 on 2nd ed. Added multipart-post to enumeration of method attribute
59 23-Nov 2006 JMB - substantive: erratum E32 on 2nd ed. switch in repeat
60 17-Jul 2007 JMB - substantive: erratum E41 on 2nd ed. version attribute and associated simple types
64 25 Oct 2007 CFW, NvdB and JMB - Updated to XForms 1.1
65 21 Nov 2007 JMB: Fixed description of card-number datatype
66 08 Apr 2008 JMB: Fixed NCName (was NCNAME)
67 30 MAY 2008 JMB: Changed card-number to allow zero or more digits
68 22 JUN 2008 JMB: Renamed UI.Inline to UI.Content
69 07 SEP 2008 LLK: Added element header attribute combine. header now allows one name, multiple value.
70 09 MAR 2009 JMB: Changed @separator default to ampersand
71 19 MAY 2009 JMB: Added submission/@targetref, dispatch/@targetid and dispatch/targetid
72 10 JUN 2009 JMB: Moved switch/case from global space to being local to switch for clarity
73 13 JAN 2010 JMB: Put maxOccurs=1 on instance content to limit to one child element in an instance
74 16 SEP 2010 JBM: Added xforms:duration datatype (1.1 Erratum #1), added UICommon before ListUICommon on select/select1 (1.1 Erratum #2)
76 <xsd:import namespace="http://www.w3.org/2001/xml-events" schemaLocation="xml-events-attribs-1.xsd"/>
77 <xsd:import namespace="http://www.w3.org/2001/XMLSchema" schemaLocation="XMLSchema.xsd"/>
82 <xsd:attributeGroup name="Common.Attributes">
84 <xsd:documentation>Attributes for _every_ element in XForms</xsd:documentation>
86 <xsd:attribute name="id" type="xsd:ID" use="optional"/>
87 <xsd:anyAttribute namespace="##other"/>
90 <xsd:attributeGroup name="Single.Node.Binding.Attributes">
91 <xsd:attribute name="model" type="xsd:IDREF" use="optional"/>
92 <xsd:attribute name="ref" type="xforms:XPathExpression" use="optional"/>
93 <xsd:attribute name="bind" type="xsd:IDREF" use="optional"/>
96 <xsd:attributeGroup name="Nodeset.Binding.Attributes">
97 <xsd:attribute name="model" type="xsd:IDREF" use="optional"/>
98 <xsd:attribute name="nodeset" type="xforms:XPathExpression" use="optional"/>
99 <xsd:attribute name="bind" type="xsd:IDREF" use="optional"/>
100 </xsd:attributeGroup>
102 <xsd:attributeGroup name="Linking.Attributes">
103 <xsd:attribute name="src" type="xsd:anyURI"/>
104 </xsd:attributeGroup>
106 <xsd:element name="model">
108 <xsd:sequence minOccurs="0" maxOccurs="unbounded">
110 <xsd:element ref="xforms:instance"/>
111 <xsd:element ref="xsd:schema"/>
112 <xsd:element ref="xforms:submission"/>
113 <xsd:element ref="xforms:bind"/>
114 <xsd:group ref="xforms:Action"/>
117 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
118 <xsd:attributeGroup ref="xforms:XML.Events"/>
119 <xsd:attribute name="functions" type="xforms:QNameList" use="optional"/>
120 <xsd:attribute name="schema" type="xforms:anyURIList" use="optional"/>
121 <xsd:attribute name="version" type="xforms:versionList" use="optional"/>
125 <xsd:element name="instance">
127 <xsd:documentation>instance container.</xsd:documentation>
131 <xsd:any namespace="##any" processContents="skip" minOccurs="0" maxOccurs="1"/>
133 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
134 <xsd:attributeGroup ref="xforms:Linking.Attributes"/>
135 <xsd:attribute name="resource" type="xsd:anyURI" use="optional"/>
139 <xsd:element name="bind">
141 <xsd:documentation>Definition of bind container.</xsd:documentation>
144 <xsd:sequence minOccurs="0" maxOccurs="unbounded">
145 <xsd:element ref="xforms:bind"/>
147 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
148 <xsd:attribute name="nodeset" type="xforms:XPathExpression" use="optional"/>
149 <xsd:attribute name="calculate" type="xforms:XPathExpression" use="optional"/>
150 <xsd:attribute name="type" type="xsd:QName" use="optional"/>
151 <xsd:attribute name="required" type="xforms:XPathExpression" use="optional"/>
152 <xsd:attribute name="constraint" type="xforms:XPathExpression" use="optional"/>
153 <xsd:attribute name="relevant" type="xforms:XPathExpression" use="optional"/>
154 <xsd:attribute name="readonly" type="xforms:XPathExpression" use="optional"/>
155 <xsd:attribute name="p3ptype" type="xsd:string" use="optional"/>
159 <xsd:element name="extension">
162 <xsd:any namespace="##other"/>
164 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
169 User Interface form controls
171 <xsd:group name="Core.Form.Controls">
173 <xsd:element ref="xforms:input"/>
174 <xsd:element ref="xforms:secret"/>
175 <xsd:element ref="xforms:textarea"/>
176 <xsd:element ref="xforms:output"/>
177 <xsd:element ref="xforms:upload"/>
178 <xsd:element ref="xforms:select1"/>
179 <xsd:element ref="xforms:select"/>
180 <xsd:element ref="xforms:range"/>
181 <xsd:element ref="xforms:submit"/>
182 <xsd:element ref="xforms:trigger"/>
186 <xsd:group name="Container.Form.Controls">
188 <xsd:element ref="xforms:group"/>
189 <xsd:element ref="xforms:switch"/>
190 <xsd:element ref="xforms:repeat"/>
194 <xsd:attributeGroup name="UI.Common.Attrs">
195 <xsd:attribute name="appearance" type="xforms:appearanceType" use="optional"/>
196 </xsd:attributeGroup>
198 <xsd:group name="UI.Content">
200 <xsd:choice minOccurs="0">
201 <xsd:element ref="xforms:output"/>
202 <!-- containing document language to add additional allowed content here -->
207 <xsd:group name="UI.Common">
209 <xsd:choice minOccurs="0" maxOccurs="unbounded">
210 <xsd:element ref="xforms:help"/>
211 <xsd:element ref="xforms:hint"/>
212 <xsd:element ref="xforms:alert"/>
213 <xsd:group ref="xforms:Action"/>
218 <xsd:element name="label">
219 <xsd:complexType mixed="true">
220 <xsd:group ref="xforms:UI.Content"/>
221 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
222 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
225 <xsd:element name="hint">
226 <xsd:complexType mixed="true">
227 <xsd:group ref="xforms:UI.Content"/>
228 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
229 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
232 <xsd:element name="help">
233 <xsd:complexType mixed="true">
234 <xsd:group ref="xforms:UI.Content"/>
235 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
236 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
239 <xsd:element name="alert">
240 <xsd:complexType mixed="true">
241 <xsd:group ref="xforms:UI.Content"/>
242 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
243 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
247 <xsd:group name="List.UI.Common">
250 <xsd:element ref="xforms:item"/>
251 <xsd:element ref="xforms:itemset"/>
252 <xsd:element ref="xforms:choices"/>
256 <xsd:element name="item">
259 <xsd:element ref="xforms:label"/>
260 <xsd:element ref="xforms:value"/>
261 <xsd:group ref="xforms:UI.Common" minOccurs="0" maxOccurs="unbounded"/>
263 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
266 <xsd:element name="itemset">
269 <xsd:element ref="xforms:label"/>
271 <xsd:element ref="xforms:value"/>
272 <xsd:element ref="xforms:copy"/>
274 <xsd:group ref="xforms:UI.Common" minOccurs="0" maxOccurs="unbounded"/>
276 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
277 <xsd:attributeGroup ref="xforms:Nodeset.Binding.Attributes"/>
280 <xsd:element name="choices">
283 <xsd:element ref="xforms:label" minOccurs="0"/>
284 <xsd:sequence maxOccurs="unbounded">
286 <xsd:element ref="xforms:choices"/>
287 <xsd:element ref="xforms:item"/>
288 <xsd:element ref="xforms:itemset"/>
292 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
296 <xsd:element name="value">
299 <xsd:extension base="xsd:string">
300 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
301 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
302 <xsd:attribute name="value" type="xforms:XPathExpression" use="optional"/>
307 <xsd:element name="copy">
309 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
310 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
314 <xsd:element name="filename">
316 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
317 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
320 <xsd:element name="mediatype">
322 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
323 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
327 <xsd:complexType name="filename">
328 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
329 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
331 <xsd:complexType name="mediatype">
332 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
333 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
335 <xsd:complexType name="mediatypeWithValue">
337 <xsd:extension base="xforms:mediatype">
338 <xsd:attribute name="value" type="xforms:XPathExpression" use="optional"/>
340 </xsd:complexContent>
343 <xsd:element name="input">
346 <xsd:element ref="xforms:label"/>
347 <xsd:group ref="xforms:UI.Common" minOccurs="0" maxOccurs="unbounded"/>
349 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
350 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
351 <xsd:attribute name="inputmode" type="xsd:string" use="optional"/>
352 <xsd:attributeGroup ref="xforms:UI.Common.Attrs"/>
353 <xsd:attribute name="incremental" type="xsd:boolean" use="optional" default="false"/>
356 <xsd:element name="secret">
359 <xsd:element ref="xforms:label"/>
360 <xsd:group ref="xforms:UI.Common" minOccurs="0" maxOccurs="unbounded"/>
362 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
363 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
364 <xsd:attribute name="inputmode" type="xsd:string" use="optional"/>
365 <xsd:attributeGroup ref="xforms:UI.Common.Attrs"/>
366 <xsd:attribute name="incremental" type="xsd:boolean" use="optional" default="false"/>
369 <xsd:element name="textarea">
372 <xsd:element ref="xforms:label"/>
373 <xsd:group ref="xforms:UI.Common" minOccurs="0" maxOccurs="unbounded"/>
375 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
376 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
377 <xsd:attribute name="inputmode" type="xsd:string" use="optional"/>
378 <xsd:attributeGroup ref="xforms:UI.Common.Attrs"/>
379 <xsd:attribute name="incremental" type="xsd:boolean" use="optional" default="false"/>
382 <xsd:element name="upload">
385 <xsd:element ref="xforms:label"/>
387 <xsd:element ref="xforms:filename" minOccurs="0"/>
388 <xsd:element ref="xforms:mediatype" minOccurs="0"/>
390 <xsd:element name="filename" type="xforms:filename" minOccurs="0"/>
391 <xsd:element name="mediatype" type="xforms:mediatype" minOccurs="0"/>
392 <xsd:group ref="xforms:UI.Common" minOccurs="0" maxOccurs="unbounded"/>
394 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
395 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
396 <xsd:attributeGroup ref="xforms:UI.Common.Attrs"/>
397 <xsd:attribute name="mediatype" type="xsd:string" use="optional"/>
398 <xsd:attribute name="incremental" type="xsd:boolean" use="optional" default="false"/>
401 <xsd:element name="select1">
404 <xsd:element ref="xforms:label"/>
405 <xsd:group ref="xforms:UI.Common" minOccurs="0" maxOccurs="unbounded"/>
406 <xsd:group ref="xforms:List.UI.Common" maxOccurs="unbounded"/>
407 <xsd:group ref="xforms:UI.Common" minOccurs="0" maxOccurs="unbounded"/>
409 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
410 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
411 <xsd:attributeGroup ref="xforms:UI.Common.Attrs"/>
412 <xsd:attribute name="selection" use="optional" default="closed">
414 <xsd:restriction base="xsd:string">
415 <xsd:enumeration value="open"/>
416 <xsd:enumeration value="closed"/>
420 <xsd:attribute name="incremental" type="xsd:boolean" use="optional" default="true"/>
423 <xsd:element name="select">
426 <xsd:element ref="xforms:label"/>
427 <xsd:group ref="xforms:UI.Common" minOccurs="0" maxOccurs="unbounded"/>
428 <xsd:group ref="xforms:List.UI.Common" maxOccurs="unbounded"/>
429 <xsd:group ref="xforms:UI.Common" minOccurs="0" maxOccurs="unbounded"/>
431 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
432 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
433 <xsd:attributeGroup ref="xforms:UI.Common.Attrs"/>
434 <xsd:attribute name="selection" use="optional" default="closed">
436 <xsd:restriction base="xsd:string">
437 <xsd:enumeration value="open"/>
438 <xsd:enumeration value="closed"/>
442 <xsd:attribute name="incremental" type="xsd:boolean" use="optional" default="true"/>
445 <xsd:element name="range">
448 <xsd:element ref="xforms:label"/>
449 <xsd:group ref="xforms:UI.Common" minOccurs="0" maxOccurs="unbounded"/>
451 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
452 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
453 <xsd:attributeGroup ref="xforms:UI.Common.Attrs"/>
454 <xsd:attribute name="start" type="xsd:string" use="optional"/>
455 <xsd:attribute name="end" type="xsd:string" use="optional"/>
456 <xsd:attribute name="step" type="xsd:string" use="optional"/>
457 <xsd:attribute name="incremental" type="xsd:boolean" use="optional" default="false"/>
460 <xsd:element name="trigger">
463 <xsd:element ref="xforms:label"/>
464 <xsd:group ref="xforms:UI.Common" minOccurs="0" maxOccurs="unbounded"/>
466 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
467 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
468 <xsd:attributeGroup ref="xforms:UI.Common.Attrs"/>
471 <xsd:element name="output">
473 <xsd:sequence minOccurs="0">
474 <xsd:element ref="xforms:label"/>
476 <xsd:element ref="xforms:mediatype" minOccurs="0"/>
478 <xsd:element name="mediatype" type="xforms:mediatypeWithValue" minOccurs="0"/>
479 <xsd:group ref="xforms:UI.Common" minOccurs="0" maxOccurs="unbounded"/>
481 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
482 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
483 <xsd:attribute name="appearance" type="xforms:appearanceType" use="optional"/>
484 <xsd:attribute name="value" type="xforms:XPathExpression" use="optional"/>
485 <xsd:attribute name="mediatype" type="xsd:string" use="optional"/>
488 <xsd:element name="submit">
491 <xsd:element ref="xforms:label"/>
492 <xsd:group ref="xforms:UI.Common" minOccurs="0" maxOccurs="unbounded"/>
494 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
495 <xsd:attribute name="submission" type="xsd:IDREF" use="optional"/>
496 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
497 <xsd:attributeGroup ref="xforms:UI.Common.Attrs"/>
502 Advanced User Interface
504 <xsd:attribute name="repeat-nodeset" type="xforms:XPathExpression"/>
505 <xsd:attribute name="repeat-model" type="xsd:IDREF"/>
506 <xsd:attribute name="repeat-bind" type="xsd:IDREF"/>
507 <xsd:attribute name="repeat-startindex" type="xsd:positiveInteger"/>
508 <xsd:attribute name="repeat-number" type="xsd:nonNegativeInteger"/>
510 <xsd:element name="repeat">
513 <xsd:sequence minOccurs="0" maxOccurs="unbounded">
515 <xsd:group ref="xforms:Core.Form.Controls"/>
516 <xsd:group ref="xforms:Container.Form.Controls"/>
517 <xsd:group ref="xforms:Action"/>
518 <!-- containing document language to add additional allowed content here -->
522 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
523 <xsd:attributeGroup ref="xforms:Nodeset.Binding.Attributes"/>
524 <xsd:attributeGroup ref="xforms:UI.Common.Attrs"/>
525 <xsd:attribute name="startindex" type="xsd:positiveInteger"/>
526 <xsd:attribute name="number" type="xsd:nonNegativeInteger"/>
529 <xsd:element name="group">
532 <xsd:element ref="xforms:label" minOccurs="0"/>
533 <xsd:sequence minOccurs="0" maxOccurs="unbounded">
535 <xsd:group ref="xforms:Core.Form.Controls"/>
536 <xsd:group ref="xforms:Container.Form.Controls"/>
537 <xsd:group ref="xforms:UI.Common"/>
538 <!-- containing document language to add additional allowed content here -->
542 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
543 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
544 <xsd:attributeGroup ref="xforms:UI.Common.Attrs"/>
547 <xsd:element name="switch">
549 <xsd:sequence maxOccurs="unbounded">
550 <xsd:element name="case">
553 <xsd:element ref="xforms:label" minOccurs="0"/>
554 <xsd:sequence minOccurs="0" maxOccurs="unbounded">
556 <xsd:group ref="xforms:Core.Form.Controls"/>
557 <xsd:group ref="xforms:Container.Form.Controls"/>
558 <xsd:group ref="xforms:Action"/>
559 <!-- containing document language to add additional allowed content here -->
563 <xsd:attribute name="selected" type="xsd:boolean" use="optional" default="false"/>
564 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
568 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
569 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
570 <xsd:attributeGroup ref="xforms:UI.Common.Attrs"/>
578 <xsd:attributeGroup name="XML.Events">
579 <xsd:attribute ref="ev:event"/>
580 <xsd:attribute ref="ev:observer"/>
581 <xsd:attribute ref="ev:target"/>
582 <xsd:attribute ref="ev:handler"/>
583 <xsd:attribute ref="ev:phase"/>
584 <xsd:attribute ref="ev:propagate"/>
585 <xsd:attribute ref="ev:defaultAction"/>
586 </xsd:attributeGroup>
588 <xsd:attributeGroup name="Common.Action.Attributes">
590 <xsd:documentation>Attributes for _every_ action in XForms</xsd:documentation>
592 <xsd:attribute name="if" type="xforms:XPathExpression" use="optional"/>
593 <xsd:attribute name="while" type="xforms:XPathExpression" use="optional"/>
594 </xsd:attributeGroup>
596 <xsd:group name="Action">
598 <xsd:choice minOccurs="0" maxOccurs="unbounded">
599 <xsd:element ref="xforms:action"/>
600 <xsd:element ref="xforms:setvalue"/>
601 <xsd:element ref="xforms:insert"/>
602 <xsd:element ref="xforms:delete"/>
603 <xsd:element ref="xforms:setindex"/>
604 <xsd:element ref="xforms:toggle"/>
605 <xsd:element ref="xforms:setfocus"/>
606 <xsd:element ref="xforms:dispatch"/>
607 <xsd:element ref="xforms:rebuild"/>
608 <xsd:element ref="xforms:recalculate"/>
609 <xsd:element ref="xforms:revalidate"/>
610 <xsd:element ref="xforms:refresh"/>
611 <xsd:element ref="xforms:reset"/>
612 <xsd:element ref="xforms:load"/>
613 <xsd:element ref="xforms:send"/>
614 <xsd:element ref="xforms:message"/>
619 <xsd:element name="action">
621 <xsd:sequence maxOccurs="unbounded">
622 <xsd:group ref="xforms:Action"/>
624 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
625 <xsd:attributeGroup ref="xforms:XML.Events"/>
626 <xsd:attributeGroup ref="xforms:Common.Action.Attributes"/>
629 <xsd:element name="setvalue">
632 <xsd:extension base="xsd:string">
633 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
634 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
635 <xsd:attribute name="value" type="xforms:XPathExpression" use="optional"/>
636 <xsd:attributeGroup ref="xforms:XML.Events"/>
637 <xsd:attributeGroup ref="xforms:Common.Action.Attributes"/>
642 <xsd:element name="insert">
644 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
645 <xsd:attributeGroup ref="xforms:Nodeset.Binding.Attributes"/>
646 <xsd:attribute name="at" type="xforms:XPathExpression" use="optional"/>
647 <xsd:attribute name="context" type="xforms:XPathExpression" use="optional"/>
648 <xsd:attribute name="origin" type="xforms:XPathExpression" use="optional"/>
649 <xsd:attribute name="position" use="optional">
651 <xsd:restriction base="xsd:string">
652 <xsd:enumeration value="before"/>
653 <xsd:enumeration value="after"/>
657 <xsd:attributeGroup ref="xforms:XML.Events"/>
658 <xsd:attributeGroup ref="xforms:Common.Action.Attributes"/>
661 <xsd:element name="delete">
663 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
664 <xsd:attributeGroup ref="xforms:Nodeset.Binding.Attributes"/>
665 <xsd:attribute name="at" type="xforms:XPathExpression" use="optional"/>
666 <xsd:attribute name="context" type="xforms:XPathExpression" use="optional"/>
667 <xsd:attributeGroup ref="xforms:XML.Events"/>
668 <xsd:attributeGroup ref="xforms:Common.Action.Attributes"/>
671 <xsd:element name="setindex">
673 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
674 <xsd:attribute name="repeat" type="xsd:IDREF" use="required"/>
675 <xsd:attribute name="index" type="xforms:XPathExpression" use="required"/>
676 <xsd:attributeGroup ref="xforms:XML.Events"/>
677 <xsd:attributeGroup ref="xforms:Common.Action.Attributes"/>
680 <xsd:element name="toggle">
682 <xsd:sequence minOccurs="0" maxOccurs="1">
683 <xsd:element name="case" type="xforms:ValueTemplate"/>
685 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
686 <xsd:attribute name="case" type="xsd:IDREF" use="optional"/>
687 <xsd:attributeGroup ref="xforms:XML.Events"/>
688 <xsd:attributeGroup ref="xforms:Common.Action.Attributes"/>
691 <xsd:element name="setfocus">
693 <xsd:sequence minOccurs="0" maxOccurs="1">
694 <xsd:element name="control" type="xforms:ValueTemplate"/>
696 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
697 <xsd:attribute name="control" type="xsd:IDREF" use="optional"/>
698 <xsd:attributeGroup ref="xforms:XML.Events"/>
699 <xsd:attributeGroup ref="xforms:Common.Action.Attributes"/>
702 <xsd:element name="dispatch">
704 <!-- Need to be able to say only zero or one of each child, but order independent.
705 This gets as close as possible with schema. -->
706 <xsd:sequence minOccurs="0" maxOccurs="3">
708 <xsd:element name="name" type="xforms:ValueTemplate"/>
709 <xsd:element name="targetid" type="xforms:ValueTemplate"/>
710 <xsd:element name="target" type="xforms:ValueTemplate"/>
711 <xsd:element name="delay" type="xforms:ValueTemplate"/>
714 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
715 <xsd:attribute name="name" type="xsd:NMTOKEN" use="optional"/>
716 <xsd:attribute name="targetid" type="xsd:IDREF" use="optional"/>
717 <xsd:attribute name="target" type="xsd:IDREF" use="optional"/>
718 <xsd:attribute name="delay" type="xsd:string" use="optional" default=""/>
719 <xsd:attribute name="bubbles" type="xsd:boolean" use="optional" default="true"/>
720 <xsd:attribute name="cancelable" type="xsd:boolean" use="optional" default="true"/>
721 <xsd:attributeGroup ref="xforms:XML.Events"/>
722 <xsd:attributeGroup ref="xforms:Common.Action.Attributes"/>
725 <xsd:element name="rebuild">
727 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
728 <xsd:attribute name="model" type="xsd:IDREF" use="optional"/>
729 <xsd:attributeGroup ref="xforms:XML.Events"/>
730 <xsd:attributeGroup ref="xforms:Common.Action.Attributes"/>
733 <xsd:element name="recalculate">
735 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
736 <xsd:attribute name="model" type="xsd:IDREF" use="optional"/>
737 <xsd:attributeGroup ref="xforms:XML.Events"/>
738 <xsd:attributeGroup ref="xforms:Common.Action.Attributes"/>
741 <xsd:element name="revalidate">
743 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
744 <xsd:attribute name="model" type="xsd:IDREF" use="optional"/>
745 <xsd:attributeGroup ref="xforms:XML.Events"/>
746 <xsd:attributeGroup ref="xforms:Common.Action.Attributes"/>
749 <xsd:element name="refresh">
751 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
752 <xsd:attribute name="model" type="xsd:IDREF" use="optional"/>
753 <xsd:attributeGroup ref="xforms:XML.Events"/>
754 <xsd:attributeGroup ref="xforms:Common.Action.Attributes"/>
757 <xsd:element name="reset">
759 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
760 <xsd:attributeGroup ref="xforms:XML.Events"/>
761 <xsd:attributeGroup ref="xforms:Common.Action.Attributes"/>
762 <xsd:attribute name="model" type="xsd:IDREF" use="optional"/>
765 <xsd:element name="load">
767 <xsd:sequence minOccurs="0" maxOccurs="1">
768 <xsd:element name="resource" type="xforms:ValueTemplate"/>
770 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
771 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
772 <xsd:attribute name="resource" type="xsd:anyURI" use="optional"/>
773 <xsd:attribute name="show" use="optional" default="replace">
775 <xsd:restriction base="xsd:string">
776 <xsd:enumeration value="new"/>
777 <xsd:enumeration value="replace"/>
781 <xsd:attributeGroup ref="xforms:XML.Events"/>
782 <xsd:attributeGroup ref="xforms:Common.Action.Attributes"/>
785 <xsd:element name="send">
787 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
788 <xsd:attribute name="submission" type="xsd:IDREF" use="optional"/>
789 <xsd:attributeGroup ref="xforms:XML.Events"/>
790 <xsd:attributeGroup ref="xforms:Common.Action.Attributes"/>
793 <xsd:element name="message">
794 <xsd:complexType mixed="true">
795 <xsd:group ref="xforms:UI.Content"/>
796 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
797 <xsd:attributeGroup ref="xforms:Single.Node.Binding.Attributes"/>
798 <xsd:attribute name="level" use="optional" default="modal">
800 <xsd:union memberTypes="xforms:QNameButNotNCNAME">
802 <xsd:restriction base="xsd:string">
803 <xsd:enumeration value="ephemeral"/>
804 <xsd:enumeration value="modeless"/>
805 <xsd:enumeration value="modal"/>
811 <xsd:attributeGroup ref="xforms:XML.Events"/>
812 <xsd:attributeGroup ref="xforms:Common.Action.Attributes"/>
816 <xsd:element name="submission">
818 <xsd:documentation>submit info container.</xsd:documentation>
822 <!-- There should only be zero or one resource, zero or one method, and zero or more header
823 We can't say exactly this, but we get as close as possible -->
824 <xsd:choice minOccurs="0" maxOccurs="unbounded">
825 <xsd:element name="resource" type="xforms:ValueTemplate"/>
826 <xsd:element name="method" type="xforms:ValueTemplate"/>
827 <xsd:element name="header">
829 <!-- Both name and value+ are required, but order independent -->
832 <xsd:element name="name" type="xforms:ValueTemplate" />
833 <xsd:element name="value" type="xforms:ValueTemplate"
834 minOccurs="1" maxOccurs="unbounded" />
837 <xsd:element name="value" type="xforms:ValueTemplate"
838 minOccurs="1" maxOccurs="unbounded" />
839 <xsd:element name="name" type="xforms:ValueTemplate" />
842 <xsd:attribute name="combine" use="optional" default="append">
844 <xsd:restriction base="xsd:string">
845 <xsd:enumeration value="append"/>
846 <xsd:enumeration value="prepend"/>
847 <xsd:enumeration value="replace"/>
854 <!-- As is the case everywhere else, action handlers are last -->
855 <xsd:group ref="xforms:Action"/>
857 <xsd:attributeGroup ref="xforms:Common.Attributes"/>
859 <xsd:attribute name="ref" type="xforms:XPathExpression" use="optional"/>
860 <xsd:attribute name="bind" type="xsd:IDREF" use="optional"/>
862 <!-- Either the resource attribute, action attribute, or resource child element is required -->
863 <xsd:attribute name="resource" type="xsd:anyURI" use="optional"/>
864 <xsd:attribute name="action" type="xsd:anyURI" use="optional"/>
866 <xsd:attribute name="mode" use="optional" default="asynchronous">
868 <xsd:restriction base="xsd:string">
869 <xsd:enumeration value="asynchronous"/>
870 <xsd:enumeration value="synchronous"/>
875 <!-- Either the method attribute or the method child element is required -->
876 <xsd:attribute name="method" use="optional">
878 <xsd:union memberTypes="xforms:QNameButNotNCNAME xsd:NCName">
880 <xsd:restriction base="xsd:string">
881 <xsd:enumeration value="post"/>
882 <xsd:enumeration value="put"/>
883 <xsd:enumeration value="get"/>
884 <xsd:enumeration value="delete"/>
885 <xsd:enumeration value="multipart-post"/>
886 <xsd:enumeration value="form-data-post"/>
887 <xsd:enumeration value="urlencoded-post"/>
894 <!-- The defaults for these are false if serialization is 'none' and true otherwise -->
895 <xsd:attribute name="validate" type="xsd:boolean" use="optional"/>
896 <xsd:attribute name="relevant" type="xsd:boolean" use="optional"/>
898 <!-- The default is based on the selected method, e.g. application/xml for the post method -->
899 <xsd:attribute name="serialization" type="xsd:string" use="optional"/>
901 <xsd:attribute name="version" type="xsd:NMTOKEN" use="optional" default="1.0"/>
902 <xsd:attribute name="indent" type="xsd:boolean" use="optional" default="false"/>
903 <xsd:attribute name="mediatype" type="xsd:string" use="optional" default="application/xml"/>
904 <xsd:attribute name="encoding" type="xsd:string" use="optional" default="UTF-8"/>
906 <xsd:attribute name="omit-xml-declaration" type="xsd:boolean" use="optional" default="false"/>
907 <!-- This is optional with no default because omitting the attribute behaves differently
908 than including it with any value -->
909 <xsd:attribute name="standalone" type="xsd:boolean" use="optional"/>
911 <xsd:attribute name="cdata-section-elements" type="xforms:QNameList" use="optional" default=""/>
913 <xsd:attribute name="replace" use="optional" default="all">
915 <xsd:union memberTypes="xforms:QNameButNotNCNAME">
917 <xsd:restriction base="xsd:string">
918 <xsd:enumeration value="all"/>
919 <xsd:enumeration value="instance"/>
920 <xsd:enumeration value="text"/>
921 <xsd:enumeration value="none"/>
928 <!-- Default is not specified because the default is to replace the instance being submitted -->
929 <xsd:attribute name="instance" type="xsd:IDREF" use="optional"/>
931 <xsd:attribute name="separator" use="optional" default="&">
933 <xsd:restriction base="xsd:string">
934 <xsd:enumeration value="&"/>
935 <xsd:enumeration value=";"/>
940 <!-- Default is not specified because the defalut is to replace the whole instance indicated
941 by the instance attribute -->
942 <xsd:attribute name="targetref" type="xforms:XPathExpression" use="optional"/>
943 <xsd:attribute name="target" type="xforms:XPathExpression" use="optional"/>
945 <!-- Default not specified because omitting the attribute behaves differently than
946 including it with any value -->
947 <xsd:attribute name="includenamespaceprefixes" use="optional">
951 <xsd:union memberTypes="xsd:NCName">
953 <xsd:restriction base="xsd:string">
954 <xsd:enumeration value="#default"/>
966 Internal helper types
969 <xsd:simpleType name="versionList">
970 <xsd:list itemType="xforms:versionNumber"/>
972 <xsd:simpleType name="versionNumber">
973 <xsd:restriction base="xsd:string">
974 <xsd:pattern value="[1-9]\d*\.\d+"/>
977 <xsd:simpleType name="XPathExpression">
978 <xsd:restriction base="xsd:string"/>
980 <xsd:simpleType name="QNameList">
981 <xsd:list itemType="xsd:QName"/>
983 <xsd:simpleType name="anyURIList">
984 <xsd:list itemType="xsd:anyURI"/>
986 <xsd:simpleType name="QNameButNotNCNAME">
987 <xsd:restriction base="xsd:QName">
988 <xsd:pattern value="[^:]+:[^:]+"/>
991 <xsd:simpleType name="appearanceType">
992 <xsd:union memberTypes="xforms:QNameButNotNCNAME">
994 <xsd:restriction base="xsd:string">
995 <xsd:enumeration value="full"/>
996 <xsd:enumeration value="compact"/>
997 <xsd:enumeration value="minimal"/>
1003 <xsd:complexType name="ValueTemplate">
1005 <xsd:extension base="xsd:string">
1006 <xsd:attribute name="value" type="xforms:XPathExpression" use="optional"/>
1008 </xsd:simpleContent>
1012 New simpleTypes provided to form authors
1015 <xsd:simpleType name="listItem">
1016 <xsd:restriction base="xsd:string">
1017 <xsd:pattern value="\S+"/>
1020 <xsd:simpleType name="listItems">
1021 <xsd:list itemType="xforms:listItem"/>
1024 <xsd:simpleType name="dateTime">
1027 <xsd:restriction base="xsd:dateTime"/>
1030 <xsd:restriction base="xsd:string">
1031 <xsd:length value="0"/>
1037 <xsd:simpleType name="time">
1040 <xsd:restriction base="xsd:time"/>
1043 <xsd:restriction base="xsd:string">
1044 <xsd:length value="0"/>
1050 <xsd:simpleType name="date">
1053 <xsd:restriction base="xsd:date"/>
1056 <xsd:restriction base="xsd:string">
1057 <xsd:length value="0"/>
1063 <xsd:simpleType name="duration">
1066 <xsd:restriction base="xsd:duration"/>
1069 <xsd:restriction base="xsd:string">
1070 <xsd:length value="0"/>
1076 <xsd:simpleType name="gYearMonth">
1079 <xsd:restriction base="xsd:gYearMonth"/>
1082 <xsd:restriction base="xsd:string">
1083 <xsd:length value="0"/>
1089 <xsd:simpleType name="gYear">
1092 <xsd:restriction base="xsd:gYear"/>
1095 <xsd:restriction base="xsd:string">
1096 <xsd:length value="0"/>
1102 <xsd:simpleType name="gMonthDay">
1105 <xsd:restriction base="xsd:gMonthDay"/>
1108 <xsd:restriction base="xsd:string">
1109 <xsd:length value="0"/>
1115 <xsd:simpleType name="gDay">
1118 <xsd:restriction base="xsd:gDay"/>
1121 <xsd:restriction base="xsd:string">
1122 <xsd:length value="0"/>
1128 <xsd:simpleType name="gMonth">
1131 <xsd:restriction base="xsd:gMonth"/>
1134 <xsd:restriction base="xsd:string">
1135 <xsd:length value="0"/>
1141 <xsd:simpleType name="string">
1142 <xsd:restriction base="xsd:string"/>
1145 <xsd:simpleType name="boolean">
1148 <xsd:restriction base="xsd:boolean"/>
1151 <xsd:restriction base="xsd:string">
1152 <xsd:length value="0"/>
1158 <xsd:simpleType name="base64Binary">
1161 <xsd:restriction base="xsd:base64Binary"/>
1164 <xsd:restriction base="xsd:string">
1165 <xsd:length value="0"/>
1171 <xsd:simpleType name="hexBinary">
1174 <xsd:restriction base="xsd:hexBinary"/>
1177 <xsd:restriction base="xsd:string">
1178 <xsd:length value="0"/>
1184 <xsd:simpleType name="float">
1187 <xsd:restriction base="xsd:float"/>
1190 <xsd:restriction base="xsd:string">
1191 <xsd:length value="0"/>
1197 <xsd:simpleType name="decimal">
1200 <xsd:restriction base="xsd:decimal"/>
1203 <xsd:restriction base="xsd:string">
1204 <xsd:length value="0"/>
1210 <xsd:simpleType name="double">
1213 <xsd:restriction base="xsd:double"/>
1216 <xsd:restriction base="xsd:string">
1217 <xsd:length value="0"/>
1223 <xsd:simpleType name="anyURI">
1226 <xsd:restriction base="xsd:anyURI"/>
1229 <xsd:restriction base="xsd:string">
1230 <xsd:length value="0"/>
1236 <xsd:simpleType name="QName">
1239 <xsd:restriction base="xsd:QName"/>
1242 <xsd:restriction base="xsd:string">
1243 <xsd:length value="0"/>
1249 <xsd:simpleType name="normalizedString">
1252 <xsd:restriction base="xsd:normalizedString"/>
1255 <xsd:restriction base="xsd:string">
1256 <xsd:length value="0"/>
1262 <xsd:simpleType name="token">
1265 <xsd:restriction base="xsd:token"/>
1268 <xsd:restriction base="xsd:string">
1269 <xsd:length value="0"/>
1275 <xsd:simpleType name="language">
1278 <xsd:restriction base="xsd:language"/>
1281 <xsd:restriction base="xsd:string">
1282 <xsd:length value="0"/>
1288 <xsd:simpleType name="Name">
1291 <xsd:restriction base="xsd:Name"/>
1294 <xsd:restriction base="xsd:string">
1295 <xsd:length value="0"/>
1301 <xsd:simpleType name="NCName">
1304 <xsd:restriction base="xsd:NCName"/>
1307 <xsd:restriction base="xsd:string">
1308 <xsd:length value="0"/>
1314 <xsd:simpleType name="ID">
1317 <xsd:restriction base="xsd:ID"/>
1320 <xsd:restriction base="xsd:string">
1321 <xsd:length value="0"/>
1327 <xsd:simpleType name="IDREF">
1330 <xsd:restriction base="xsd:IDREF"/>
1333 <xsd:restriction base="xsd:string">
1334 <xsd:length value="0"/>
1340 <xsd:simpleType name="IDREFS">
1343 <xsd:restriction base="xsd:IDREFS"/>
1346 <xsd:restriction base="xsd:string">
1347 <xsd:length value="0"/>
1353 <xsd:simpleType name="NMTOKEN">
1356 <xsd:restriction base="xsd:NMTOKEN"/>
1359 <xsd:restriction base="xsd:string">
1360 <xsd:length value="0"/>
1366 <xsd:simpleType name="NMTOKENS">
1369 <xsd:restriction base="xsd:NMTOKENS"/>
1372 <xsd:restriction base="xsd:string">
1373 <xsd:length value="0"/>
1379 <xsd:simpleType name="integer">
1382 <xsd:restriction base="xsd:integer"/>
1385 <xsd:restriction base="xsd:string">
1386 <xsd:length value="0"/>
1392 <xsd:simpleType name="negativeInteger">
1395 <xsd:restriction base="xsd:negativeInteger"/>
1398 <xsd:restriction base="xsd:string">
1399 <xsd:length value="0"/>
1405 <xsd:simpleType name="long">
1408 <xsd:restriction base="xsd:long"/>
1411 <xsd:restriction base="xsd:string">
1412 <xsd:length value="0"/>
1418 <xsd:simpleType name="int">
1421 <xsd:restriction base="xsd:int"/>
1424 <xsd:restriction base="xsd:string">
1425 <xsd:length value="0"/>
1431 <xsd:simpleType name="short">
1434 <xsd:restriction base="xsd:short"/>
1437 <xsd:restriction base="xsd:string">
1438 <xsd:length value="0"/>
1444 <xsd:simpleType name="byte">
1447 <xsd:restriction base="xsd:byte"/>
1450 <xsd:restriction base="xsd:string">
1451 <xsd:length value="0"/>
1457 <xsd:simpleType name="nonNegativeInteger">
1460 <xsd:restriction base="xsd:nonNegativeInteger"/>
1463 <xsd:restriction base="xsd:string">
1464 <xsd:length value="0"/>
1470 <xsd:simpleType name="unsignedLong">
1473 <xsd:restriction base="xsd:unsignedLong"/>
1476 <xsd:restriction base="xsd:string">
1477 <xsd:length value="0"/>
1483 <xsd:simpleType name="unsignedInt">
1486 <xsd:restriction base="xsd:unsignedInt"/>
1489 <xsd:restriction base="xsd:string">
1490 <xsd:length value="0"/>
1496 <xsd:simpleType name="unsignedShort">
1499 <xsd:restriction base="xsd:unsignedShort"/>
1502 <xsd:restriction base="xsd:string">
1503 <xsd:length value="0"/>
1509 <xsd:simpleType name="unsignedByte">
1512 <xsd:restriction base="xsd:unsignedByte"/>
1515 <xsd:restriction base="xsd:string">
1516 <xsd:length value="0"/>
1522 <xsd:simpleType name="positiveInteger">
1525 <xsd:restriction base="xsd:positiveInteger"/>
1528 <xsd:restriction base="xsd:string">
1529 <xsd:length value="0"/>
1535 <xsd:simpleType name="dayTimeDuration">
1536 <xsd:restriction base="xsd:duration">
1537 <xsd:pattern value="([\-]?P([0-9]+D(T([0-9]+(H([0-9]+(M([0-9]+(\.[0-9]*)?S
1538 |\.[0-9]+S)?|(\.[0-9]*)?S)|(\.[0-9]*)?S)?|M([0-9]+
1539 (\.[0-9]*)?S|\.[0-9]+S)?|(\.[0-9]*)?S)|\.[0-9]+S))?
1540 |T([0-9]+(H([0-9]+(M([0-9]+(\.[0-9]*)?S|\.[0-9]+S)?
1541 |(\.[0-9]*)?S)|(\.[0-9]*)?S)?|M([0-9]+(\.[0-9]*)?S|\.[0-9]+S)?
1542 |(\.[0-9]*)?S)|\.[0-9]+S)))?"/>
1546 <xsd:simpleType name="yearMonthDuration">
1547 <xsd:restriction base="xsd:duration">
1548 <xsd:pattern value="([\-]?P[0-9]+(Y([0-9]+M)?|M))?"/>
1551 <xsd:simpleType name="email">
1552 <xsd:restriction base="xsd:string">
1553 <xsd:pattern value="([A-Za-z0-9!#-'\*\+\-/=\?\^_`\{-~]+(\.[A-Za-z0-9!#-'\*\+\-/=\?\^_`\{-~]+)*@[A-Za-z0-9!#-'\*\+\-/=\?\^_`\{-~]+(\.[A-Za-z0-9!#-'\*\+\-/=\?\^_`\{-~]+)*)?"/>
1557 <xsd:simpleType name="card-number">
1560 This type defines the basic lexical properties for a dataypte that can be used to represent
1561 various ID numbers such as for debit and credit cards.
1562 This type does not apply the Luhn checksum algorithm.
1563 </xsd:documentation>
1565 <xsd:restriction base="xsd:string">
1566 <xsd:pattern value="[0-9]*"/>