Debian Codegraph @

gavo/resources/schemata/XMLSchema.xsd

raw
1 <?xml version='1.0' encoding='UTF-8'?>
2 <!-- XML Schema schema for XML Schemas: Part 1: Structures -->
3 <!-- Note this schema is NOT the normative structures schema. -->
4 <!-- The prose copy in the structures REC is the normative -->
5 <!-- version (which shouldn't differ from this one except for -->
6 <!-- this comment and entity expansions, but just in case -->
7 <!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "XMLSchema.dtd" [
8
9 <!-- provide ID type information even for parsers which only read the
10 internal subset -->
11 <!ATTLIST xs:schema id ID #IMPLIED>
12 <!ATTLIST xs:complexType id ID #IMPLIED>
13 <!ATTLIST xs:complexContent id ID #IMPLIED>
14 <!ATTLIST xs:simpleContent id ID #IMPLIED>
15 <!ATTLIST xs:extension id ID #IMPLIED>
16 <!ATTLIST xs:element id ID #IMPLIED>
17 <!ATTLIST xs:group id ID #IMPLIED>
18 <!ATTLIST xs:all id ID #IMPLIED>
19 <!ATTLIST xs:choice id ID #IMPLIED>
20 <!ATTLIST xs:sequence id ID #IMPLIED>
21 <!ATTLIST xs:any id ID #IMPLIED>
22 <!ATTLIST xs:anyAttribute id ID #IMPLIED>
23 <!ATTLIST xs:attribute id ID #IMPLIED>
24 <!ATTLIST xs:attributeGroup id ID #IMPLIED>
25 <!ATTLIST xs:unique id ID #IMPLIED>
26 <!ATTLIST xs:key id ID #IMPLIED>
27 <!ATTLIST xs:keyref id ID #IMPLIED>
28 <!ATTLIST xs:selector id ID #IMPLIED>
29 <!ATTLIST xs:field id ID #IMPLIED>
30 <!ATTLIST xs:include id ID #IMPLIED>
31 <!ATTLIST xs:import id ID #IMPLIED>
32 <!ATTLIST xs:redefine id ID #IMPLIED>
33 <!ATTLIST xs:notation id ID #IMPLIED>
34 <!--
35 keep this schema XML1.0 DTD valid
36 -->
37 <!ENTITY % schemaAttrs 'xmlns:hfp CDATA #IMPLIED'>
38
39 <!ELEMENT hfp:hasFacet EMPTY>
40 <!ATTLIST hfp:hasFacet
41 name NMTOKEN #REQUIRED>
42
43 <!ELEMENT hfp:hasProperty EMPTY>
44 <!ATTLIST hfp:hasProperty
45 name NMTOKEN #REQUIRED
46 value CDATA #REQUIRED>
47 <!--
48 Make sure that processors that do not read the external
49 subset will know about the various IDs we declare
50 -->
51 <!ATTLIST xs:simpleType id ID #IMPLIED>
52 <!ATTLIST xs:maxExclusive id ID #IMPLIED>
53 <!ATTLIST xs:minExclusive id ID #IMPLIED>
54 <!ATTLIST xs:maxInclusive id ID #IMPLIED>
55 <!ATTLIST xs:minInclusive id ID #IMPLIED>
56 <!ATTLIST xs:totalDigits id ID #IMPLIED>
57 <!ATTLIST xs:fractionDigits id ID #IMPLIED>
58 <!ATTLIST xs:length id ID #IMPLIED>
59 <!ATTLIST xs:minLength id ID #IMPLIED>
60 <!ATTLIST xs:maxLength id ID #IMPLIED>
61 <!ATTLIST xs:enumeration id ID #IMPLIED>
62 <!ATTLIST xs:pattern id ID #IMPLIED>
63 <!ATTLIST xs:appinfo id ID #IMPLIED>
64 <!ATTLIST xs:documentation id ID #IMPLIED>
65 <!ATTLIST xs:list id ID #IMPLIED>
66 <!ATTLIST xs:union id ID #IMPLIED>
67 ]>
68 <xs:schema targetNamespace="http://www.w3.org/2001/XMLSchema" blockDefault="#all" elementFormDefault="qualified" version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="EN" xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty">
69 <xs:annotation>
70 <xs:documentation>
71 Part 1 version: Id: structures.xsd,v 1.2 2004/01/15 11:34:25 ht Exp
72 Part 2 version: Id: datatypes.xsd,v 1.3 2004/01/23 18:11:13 ht Exp
73 </xs:documentation>
74 </xs:annotation>
75
76 <xs:annotation>
77 <xs:documentation source="http://www.w3.org/TR/2004/PER-xmlschema-1-20040318/structures.html">
78 The schema corresponding to this document is normative,
79 with respect to the syntactic constraints it expresses in the
80 XML Schema language. The documentation (within &lt;documentation> elements)
81 below, is not normative, but rather highlights important aspects of
82 the W3C Recommendation of which this is a part</xs:documentation>
83 </xs:annotation>
84
85 <xs:annotation>
86 <xs:documentation>
87 The simpleType element and all of its members are defined
88 towards the end of this schema document</xs:documentation>
89 </xs:annotation>
90
91 <xs:import namespace="http://www.w3.org/XML/1998/namespace"
92 schemaLocation="http://docs.g-vo.org/schemata/xml.xsd">
93 <xs:annotation>
94 <xs:documentation>
95 Get access to the xml: attribute groups for xml:lang
96 as declared on 'schema' and 'documentation' below
97 </xs:documentation>
98 </xs:annotation>
99 </xs:import>
100
101 <xs:complexType name="openAttrs">
102 <xs:annotation>
103 <xs:documentation>
104 This type is extended by almost all schema types
105 to allow attributes from other namespaces to be
106 added to user schemas.
107 </xs:documentation>
108 </xs:annotation>
109 <xs:complexContent>
110 <xs:restriction base="xs:anyType">
111 <xs:anyAttribute namespace="##other" processContents="lax"/>
112 </xs:restriction>
113 </xs:complexContent>
114 </xs:complexType>
115
116 <xs:complexType name="annotated">
117 <xs:annotation>
118 <xs:documentation>
119 This type is extended by all types which allow annotation
120 other than &lt;schema&gt; itself
121 </xs:documentation>
122 </xs:annotation>
123 <xs:complexContent>
124 <xs:extension base="xs:openAttrs">
125 <xs:sequence>
126 <xs:element ref="xs:annotation" minOccurs="0"/>
127 </xs:sequence>
128 <xs:attribute name="id" type="xs:ID"/>
129 </xs:extension>
130 </xs:complexContent>
131 </xs:complexType>
132
133 <xs:group name="schemaTop">
134 <xs:annotation>
135 <xs:documentation>
136 This group is for the
137 elements which occur freely at the top level of schemas.
138 All of their types are based on the "annotated" type by extension.</xs:documentation>
139 </xs:annotation>
140 <xs:choice>
141 <xs:group ref="xs:redefinable"/>
142 <xs:element ref="xs:element"/>
143 <xs:element ref="xs:attribute"/>
144 <xs:element ref="xs:notation"/>
145 </xs:choice>
146 </xs:group>
147
148 <xs:group name="redefinable">
149 <xs:annotation>
150 <xs:documentation>
151 This group is for the
152 elements which can self-redefine (see &lt;redefine> below).</xs:documentation>
153 </xs:annotation>
154 <xs:choice>
155 <xs:element ref="xs:simpleType"/>
156 <xs:element ref="xs:complexType"/>
157 <xs:element ref="xs:group"/>
158 <xs:element ref="xs:attributeGroup"/>
159 </xs:choice>
160 </xs:group>
161
162 <xs:simpleType name="formChoice">
163 <xs:annotation>
164 <xs:documentation>
165 A utility type, not for public use</xs:documentation>
166 </xs:annotation>
167 <xs:restriction base="xs:NMTOKEN">
168 <xs:enumeration value="qualified"/>
169 <xs:enumeration value="unqualified"/>
170 </xs:restriction>
171 </xs:simpleType>
172
173 <xs:simpleType name="reducedDerivationControl">
174 <xs:annotation>
175 <xs:documentation>
176 A utility type, not for public use</xs:documentation>
177 </xs:annotation>
178 <xs:restriction base="xs:derivationControl">
179 <xs:enumeration value="extension"/>
180 <xs:enumeration value="restriction"/>
181 </xs:restriction>
182 </xs:simpleType>
183
184 <xs:simpleType name="derivationSet">
185 <xs:annotation>
186 <xs:documentation>
187 A utility type, not for public use</xs:documentation>
188 <xs:documentation>
189 #all or (possibly empty) subset of {extension, restriction}</xs:documentation>
190 </xs:annotation>
191 <xs:union>
192 <xs:simpleType>
193 <xs:restriction base="xs:token">
194 <xs:enumeration value="#all"/>
195 </xs:restriction>
196 </xs:simpleType>
197 <xs:simpleType>
198 <xs:list itemType="xs:reducedDerivationControl"/>
199 </xs:simpleType>
200 </xs:union>
201 </xs:simpleType>
202
203 <xs:simpleType name="typeDerivationControl">
204 <xs:annotation>
205 <xs:documentation>
206 A utility type, not for public use</xs:documentation>
207 </xs:annotation>
208 <xs:restriction base="xs:derivationControl">
209 <xs:enumeration value="extension"/>
210 <xs:enumeration value="restriction"/>
211 <xs:enumeration value="list"/>
212 <xs:enumeration value="union"/>
213 </xs:restriction>
214 </xs:simpleType>
215
216 <xs:simpleType name="fullDerivationSet">
217 <xs:annotation>
218 <xs:documentation>
219 A utility type, not for public use</xs:documentation>
220 <xs:documentation>
221 #all or (possibly empty) subset of {extension, restriction, list, union}</xs:documentation>
222 </xs:annotation>
223 <xs:union>
224 <xs:simpleType>
225 <xs:restriction base="xs:token">
226 <xs:enumeration value="#all"/>
227 </xs:restriction>
228 </xs:simpleType>
229 <xs:simpleType>
230 <xs:list itemType="xs:typeDerivationControl"/>
231 </xs:simpleType>
232 </xs:union>
233 </xs:simpleType>
234
235 <xs:element name="schema" id="schema">
236 <xs:annotation>
237 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-schema"/>
238 </xs:annotation>
239 <xs:complexType>
240 <xs:complexContent>
241 <xs:extension base="xs:openAttrs">
242 <xs:sequence>
243 <xs:choice minOccurs="0" maxOccurs="unbounded">
244 <xs:element ref="xs:include"/>
245 <xs:element ref="xs:import"/>
246 <xs:element ref="xs:redefine"/>
247 <xs:element ref="xs:annotation"/>
248 </xs:choice>
249 <xs:sequence minOccurs="0" maxOccurs="unbounded">
250 <xs:group ref="xs:schemaTop"/>
251 <xs:element ref="xs:annotation" minOccurs="0" maxOccurs="unbounded"/>
252 </xs:sequence>
253 </xs:sequence>
254 <xs:attribute name="targetNamespace" type="xs:anyURI"/>
255 <xs:attribute name="version" type="xs:token"/>
256 <xs:attribute name="finalDefault" type="xs:fullDerivationSet" use="optional" default=""/>
257 <xs:attribute name="blockDefault" type="xs:blockSet" use="optional" default=""/>
258 <xs:attribute name="attributeFormDefault" type="xs:formChoice" use="optional" default="unqualified"/>
259 <xs:attribute name="elementFormDefault" type="xs:formChoice" use="optional" default="unqualified"/>
260 <xs:attribute name="id" type="xs:ID"/>
261 <xs:attribute ref="xml:lang"/>
262 </xs:extension>
263 </xs:complexContent>
264 </xs:complexType>
265
266 <xs:key name="element">
267 <xs:selector xpath="xs:element"/>
268 <xs:field xpath="@name"/>
269 </xs:key>
270
271 <xs:key name="attribute">
272 <xs:selector xpath="xs:attribute"/>
273 <xs:field xpath="@name"/>
274 </xs:key>
275
276 <xs:key name="type">
277 <xs:selector xpath="xs:complexType|xs:simpleType"/>
278 <xs:field xpath="@name"/>
279 </xs:key>
280
281 <xs:key name="group">
282 <xs:selector xpath="xs:group"/>
283 <xs:field xpath="@name"/>
284 </xs:key>
285
286 <xs:key name="attributeGroup">
287 <xs:selector xpath="xs:attributeGroup"/>
288 <xs:field xpath="@name"/>
289 </xs:key>
290
291 <xs:key name="notation">
292 <xs:selector xpath="xs:notation"/>
293 <xs:field xpath="@name"/>
294 </xs:key>
295
296 <xs:key name="identityConstraint">
297 <xs:selector xpath=".//xs:key|.//xs:unique|.//xs:keyref"/>
298 <xs:field xpath="@name"/>
299 </xs:key>
300
301 </xs:element>
302
303 <xs:simpleType name="allNNI">
304 <xs:annotation><xs:documentation>
305 for maxOccurs</xs:documentation></xs:annotation>
306 <xs:union memberTypes="xs:nonNegativeInteger">
307 <xs:simpleType>
308 <xs:restriction base="xs:NMTOKEN">
309 <xs:enumeration value="unbounded"/>
310 </xs:restriction>
311 </xs:simpleType>
312 </xs:union>
313 </xs:simpleType>
314
315 <xs:attributeGroup name="occurs">
316 <xs:annotation><xs:documentation>
317 for all particles</xs:documentation></xs:annotation>
318 <xs:attribute name="minOccurs" type="xs:nonNegativeInteger" use="optional" default="1"/>
319 <xs:attribute name="maxOccurs" type="xs:allNNI" use="optional" default="1"/>
320 </xs:attributeGroup>
321
322 <xs:attributeGroup name="defRef">
323 <xs:annotation><xs:documentation>
324 for element, group and attributeGroup,
325 which both define and reference</xs:documentation></xs:annotation>
326 <xs:attribute name="name" type="xs:NCName"/>
327 <xs:attribute name="ref" type="xs:QName"/>
328 </xs:attributeGroup>
329
330 <xs:group name="typeDefParticle">
331 <xs:annotation>
332 <xs:documentation>
333 'complexType' uses this</xs:documentation></xs:annotation>
334 <xs:choice>
335 <xs:element name="group" type="xs:groupRef"/>
336 <xs:element ref="xs:all"/>
337 <xs:element ref="xs:choice"/>
338 <xs:element ref="xs:sequence"/>
339 </xs:choice>
340 </xs:group>
341
342
343
344 <xs:group name="nestedParticle">
345 <xs:choice>
346 <xs:element name="element" type="xs:localElement"/>
347 <xs:element name="group" type="xs:groupRef"/>
348 <xs:element ref="xs:choice"/>
349 <xs:element ref="xs:sequence"/>
350 <xs:element ref="xs:any"/>
351 </xs:choice>
352 </xs:group>
353
354 <xs:group name="particle">
355 <xs:choice>
356 <xs:element name="element" type="xs:localElement"/>
357 <xs:element name="group" type="xs:groupRef"/>
358 <xs:element ref="xs:all"/>
359 <xs:element ref="xs:choice"/>
360 <xs:element ref="xs:sequence"/>
361 <xs:element ref="xs:any"/>
362 </xs:choice>
363 </xs:group>
364
365 <xs:complexType name="attribute">
366 <xs:complexContent>
367 <xs:extension base="xs:annotated">
368 <xs:sequence>
369 <xs:element name="simpleType" minOccurs="0" type="xs:localSimpleType"/>
370 </xs:sequence>
371 <xs:attributeGroup ref="xs:defRef"/>
372 <xs:attribute name="type" type="xs:QName"/>
373 <xs:attribute name="use" use="optional" default="optional">
374 <xs:simpleType>
375 <xs:restriction base="xs:NMTOKEN">
376 <xs:enumeration value="prohibited"/>
377 <xs:enumeration value="optional"/>
378 <xs:enumeration value="required"/>
379 </xs:restriction>
380 </xs:simpleType>
381 </xs:attribute>
382 <xs:attribute name="default" type="xs:string"/>
383 <xs:attribute name="fixed" type="xs:string"/>
384 <xs:attribute name="form" type="xs:formChoice"/>
385 </xs:extension>
386 </xs:complexContent>
387 </xs:complexType>
388
389 <xs:complexType name="topLevelAttribute">
390 <xs:complexContent>
391 <xs:restriction base="xs:attribute">
392 <xs:sequence>
393 <xs:element ref="xs:annotation" minOccurs="0"/>
394 <xs:element name="simpleType" minOccurs="0" type="xs:localSimpleType"/>
395 </xs:sequence>
396 <xs:attribute name="ref" use="prohibited"/>
397 <xs:attribute name="form" use="prohibited"/>
398 <xs:attribute name="use" use="prohibited"/>
399 <xs:attribute name="name" use="required" type="xs:NCName"/>
400 <xs:anyAttribute namespace="##other" processContents="lax"/>
401 </xs:restriction>
402 </xs:complexContent>
403 </xs:complexType>
404
405 <xs:group name="attrDecls">
406 <xs:sequence>
407 <xs:choice minOccurs="0" maxOccurs="unbounded">
408 <xs:element name="attribute" type="xs:attribute"/>
409 <xs:element name="attributeGroup" type="xs:attributeGroupRef"/>
410 </xs:choice>
411 <xs:element ref="xs:anyAttribute" minOccurs="0"/>
412 </xs:sequence>
413 </xs:group>
414
415 <xs:element name="anyAttribute" type="xs:wildcard" id="anyAttribute">
416 <xs:annotation>
417 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-anyAttribute"/>
418 </xs:annotation>
419 </xs:element>
420
421 <xs:group name="complexTypeModel">
422 <xs:choice>
423 <xs:element ref="xs:simpleContent"/>
424 <xs:element ref="xs:complexContent"/>
425 <xs:sequence>
426 <xs:annotation>
427 <xs:documentation>
428 This branch is short for
429 &lt;complexContent>
430 &lt;restriction base="xs:anyType">
431 ...
432 &lt;/restriction>
433 &lt;/complexContent></xs:documentation>
434 </xs:annotation>
435 <xs:group ref="xs:typeDefParticle" minOccurs="0"/>
436 <xs:group ref="xs:attrDecls"/>
437 </xs:sequence>
438 </xs:choice>
439 </xs:group>
440
441 <xs:complexType name="complexType" abstract="true">
442 <xs:complexContent>
443 <xs:extension base="xs:annotated">
444 <xs:group ref="xs:complexTypeModel"/>
445 <xs:attribute name="name" type="xs:NCName">
446 <xs:annotation>
447 <xs:documentation>
448 Will be restricted to required or forbidden</xs:documentation>
449 </xs:annotation>
450 </xs:attribute>
451 <xs:attribute name="mixed" type="xs:boolean" use="optional" default="false">
452 <xs:annotation>
453 <xs:documentation>
454 Not allowed if simpleContent child is chosen.
455 May be overridden by setting on complexContent child.</xs:documentation>
456 </xs:annotation>
457 </xs:attribute>
458 <xs:attribute name="abstract" type="xs:boolean" use="optional" default="false"/>
459 <xs:attribute name="final" type="xs:derivationSet"/>
460 <xs:attribute name="block" type="xs:derivationSet"/>
461 </xs:extension>
462 </xs:complexContent>
463 </xs:complexType>
464
465 <xs:complexType name="topLevelComplexType">
466 <xs:complexContent>
467 <xs:restriction base="xs:complexType">
468 <xs:sequence>
469 <xs:element ref="xs:annotation" minOccurs="0"/>
470 <xs:group ref="xs:complexTypeModel"/>
471 </xs:sequence>
472 <xs:attribute name="name" type="xs:NCName" use="required"/>
473 <xs:anyAttribute namespace="##other" processContents="lax"/>
474 </xs:restriction>
475 </xs:complexContent>
476 </xs:complexType>
477
478 <xs:complexType name="localComplexType">
479 <xs:complexContent>
480 <xs:restriction base="xs:complexType">
481 <xs:sequence>
482 <xs:element ref="xs:annotation" minOccurs="0"/>
483 <xs:group ref="xs:complexTypeModel"/>
484 </xs:sequence>
485 <xs:attribute name="name" use="prohibited"/>
486 <xs:attribute name="abstract" use="prohibited"/>
487 <xs:attribute name="final" use="prohibited"/>
488 <xs:attribute name="block" use="prohibited"/>
489 <xs:anyAttribute namespace="##other" processContents="lax"/>
490 </xs:restriction>
491 </xs:complexContent>
492 </xs:complexType>
493
494 <xs:complexType name="restrictionType">
495 <xs:complexContent>
496 <xs:extension base="xs:annotated">
497 <xs:sequence>
498 <xs:choice minOccurs="0">
499 <xs:group ref="xs:typeDefParticle"/>
500 <xs:group ref="xs:simpleRestrictionModel"/>
501 </xs:choice>
502 <xs:group ref="xs:attrDecls"/>
503 </xs:sequence>
504 <xs:attribute name="base" type="xs:QName" use="required"/>
505 </xs:extension>
506 </xs:complexContent>
507 </xs:complexType>
508
509 <xs:complexType name="complexRestrictionType">
510 <xs:complexContent>
511 <xs:restriction base="xs:restrictionType">
512 <xs:sequence>
513 <xs:element ref="xs:annotation" minOccurs="0"/>
514 <xs:choice minOccurs="0">
515 <xs:annotation>
516 <xs:documentation>This choice is added simply to
517 make this a valid restriction per the REC</xs:documentation>
518 </xs:annotation>
519 <xs:group ref="xs:typeDefParticle"/>
520 </xs:choice>
521 <xs:group ref="xs:attrDecls"/>
522 </xs:sequence>
523 <xs:anyAttribute namespace="##other" processContents="lax"/>
524 </xs:restriction>
525 </xs:complexContent>
526 </xs:complexType>
527
528 <xs:complexType name="extensionType">
529 <xs:complexContent>
530 <xs:extension base="xs:annotated">
531 <xs:sequence>
532 <xs:group ref="xs:typeDefParticle" minOccurs="0"/>
533 <xs:group ref="xs:attrDecls"/>
534 </xs:sequence>
535 <xs:attribute name="base" type="xs:QName" use="required"/>
536 </xs:extension>
537 </xs:complexContent>
538 </xs:complexType>
539
540 <xs:element name="complexContent" id="complexContent">
541 <xs:annotation>
542 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-complexContent"/>
543 </xs:annotation>
544 <xs:complexType>
545 <xs:complexContent>
546 <xs:extension base="xs:annotated">
547 <xs:choice>
548 <xs:element name="restriction" type="xs:complexRestrictionType"/>
549 <xs:element name="extension" type="xs:extensionType"/>
550 </xs:choice>
551 <xs:attribute name="mixed" type="xs:boolean">
552 <xs:annotation>
553 <xs:documentation>
554 Overrides any setting on complexType parent.</xs:documentation>
555 </xs:annotation>
556 </xs:attribute>
557 </xs:extension>
558 </xs:complexContent>
559 </xs:complexType>
560 </xs:element>
561
562 <xs:complexType name="simpleRestrictionType">
563 <xs:complexContent>
564 <xs:restriction base="xs:restrictionType">
565 <xs:sequence>
566 <xs:element ref="xs:annotation" minOccurs="0"/>
567 <xs:choice minOccurs="0">
568 <xs:annotation>
569 <xs:documentation>This choice is added simply to
570 make this a valid restriction per the REC</xs:documentation>
571 </xs:annotation>
572 <xs:group ref="xs:simpleRestrictionModel"/>
573 </xs:choice>
574 <xs:group ref="xs:attrDecls"/>
575 </xs:sequence>
576 <xs:anyAttribute namespace="##other" processContents="lax"/>
577 </xs:restriction>
578 </xs:complexContent>
579 </xs:complexType>
580
581 <xs:complexType name="simpleExtensionType">
582 <xs:complexContent>
583 <xs:restriction base="xs:extensionType">
584 <xs:sequence>
585 <xs:annotation>
586 <xs:documentation>
587 No typeDefParticle group reference</xs:documentation>
588 </xs:annotation>
589 <xs:element ref="xs:annotation" minOccurs="0"/>
590 <xs:group ref="xs:attrDecls"/>
591 </xs:sequence>
592 <xs:anyAttribute namespace="##other" processContents="lax"/>
593 </xs:restriction>
594 </xs:complexContent>
595 </xs:complexType>
596
597 <xs:element name="simpleContent" id="simpleContent">
598 <xs:annotation>
599 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-simpleContent"/>
600 </xs:annotation>
601 <xs:complexType>
602 <xs:complexContent>
603 <xs:extension base="xs:annotated">
604 <xs:choice>
605 <xs:element name="restriction" type="xs:simpleRestrictionType"/>
606 <xs:element name="extension" type="xs:simpleExtensionType"/>
607 </xs:choice>
608 </xs:extension>
609 </xs:complexContent>
610 </xs:complexType>
611 </xs:element>
612
613 <xs:element name="complexType" type="xs:topLevelComplexType" id="complexType">
614 <xs:annotation>
615 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-complexType"/>
616 </xs:annotation>
617 </xs:element>
618
619
620 <xs:simpleType name="blockSet">
621 <xs:annotation>
622 <xs:documentation>
623 A utility type, not for public use</xs:documentation>
624 <xs:documentation>
625 #all or (possibly empty) subset of {substitution, extension,
626 restriction}</xs:documentation>
627 </xs:annotation>
628 <xs:union>
629 <xs:simpleType>
630 <xs:restriction base="xs:token">
631 <xs:enumeration value="#all"/>
632 </xs:restriction>
633 </xs:simpleType>
634 <xs:simpleType>
635 <xs:list>
636 <xs:simpleType>
637 <xs:restriction base="xs:derivationControl">
638 <xs:enumeration value="extension"/>
639 <xs:enumeration value="restriction"/>
640 <xs:enumeration value="substitution"/>
641 </xs:restriction>
642 </xs:simpleType>
643 </xs:list>
644 </xs:simpleType>
645 </xs:union>
646 </xs:simpleType>
647
648 <xs:complexType name="element" abstract="true">
649 <xs:annotation>
650 <xs:documentation>
651 The element element can be used either
652 at the top level to define an element-type binding globally,
653 or within a content model to either reference a globally-defined
654 element or type or declare an element-type binding locally.
655 The ref form is not allowed at the top level.</xs:documentation>
656 </xs:annotation>
657
658 <xs:complexContent>
659 <xs:extension base="xs:annotated">
660 <xs:sequence>
661 <xs:choice minOccurs="0">
662 <xs:element name="simpleType" type="xs:localSimpleType"/>
663 <xs:element name="complexType" type="xs:localComplexType"/>
664 </xs:choice>
665 <xs:group ref="xs:identityConstraint" minOccurs="0" maxOccurs="unbounded"/>
666 </xs:sequence>
667 <xs:attributeGroup ref="xs:defRef"/>
668 <xs:attribute name="type" type="xs:QName"/>
669 <xs:attribute name="substitutionGroup" type="xs:QName"/>
670 <xs:attributeGroup ref="xs:occurs"/>
671 <xs:attribute name="default" type="xs:string"/>
672 <xs:attribute name="fixed" type="xs:string"/>
673 <xs:attribute name="nillable" type="xs:boolean" use="optional" default="false"/>
674 <xs:attribute name="abstract" type="xs:boolean" use="optional" default="false"/>
675 <xs:attribute name="final" type="xs:derivationSet"/>
676 <xs:attribute name="block" type="xs:blockSet"/>
677 <xs:attribute name="form" type="xs:formChoice"/>
678 </xs:extension>
679 </xs:complexContent>
680 </xs:complexType>
681
682 <xs:complexType name="topLevelElement">
683 <xs:complexContent>
684 <xs:restriction base="xs:element">
685 <xs:sequence>
686 <xs:element ref="xs:annotation" minOccurs="0"/>
687 <xs:choice minOccurs="0">
688 <xs:element name="simpleType" type="xs:localSimpleType"/>
689 <xs:element name="complexType" type="xs:localComplexType"/>
690 </xs:choice>
691 <xs:group ref="xs:identityConstraint" minOccurs="0" maxOccurs="unbounded"/>
692 </xs:sequence>
693 <xs:attribute name="ref" use="prohibited"/>
694 <xs:attribute name="form" use="prohibited"/>
695 <xs:attribute name="minOccurs" use="prohibited"/>
696 <xs:attribute name="maxOccurs" use="prohibited"/>
697 <xs:attribute name="name" use="required" type="xs:NCName"/>
698 <xs:anyAttribute namespace="##other" processContents="lax"/>
699 </xs:restriction>
700 </xs:complexContent>
701 </xs:complexType>
702
703 <xs:complexType name="localElement">
704 <xs:complexContent>
705 <xs:restriction base="xs:element">
706 <xs:sequence>
707 <xs:element ref="xs:annotation" minOccurs="0"/>
708 <xs:choice minOccurs="0">
709 <xs:element name="simpleType" type="xs:localSimpleType"/>
710 <xs:element name="complexType" type="xs:localComplexType"/>
711 </xs:choice>
712 <xs:group ref="xs:identityConstraint" minOccurs="0" maxOccurs="unbounded"/>
713 </xs:sequence>
714 <xs:attribute name="substitutionGroup" use="prohibited"/>
715 <xs:attribute name="final" use="prohibited"/>
716 <xs:attribute name="abstract" use="prohibited"/>
717 <xs:anyAttribute namespace="##other" processContents="lax"/>
718 </xs:restriction>
719 </xs:complexContent>
720 </xs:complexType>
721
722 <xs:element name="element" type="xs:topLevelElement" id="element">
723 <xs:annotation>
724 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-element"/>
725 </xs:annotation>
726 </xs:element>
727
728 <xs:complexType name="group" abstract="true">
729 <xs:annotation>
730 <xs:documentation>
731 group type for explicit groups, named top-level groups and
732 group references</xs:documentation>
733 </xs:annotation>
734 <xs:complexContent>
735 <xs:extension base="xs:annotated">
736 <xs:group ref="xs:particle" minOccurs="0" maxOccurs="unbounded"/>
737 <xs:attributeGroup ref="xs:defRef"/>
738 <xs:attributeGroup ref="xs:occurs"/>
739 </xs:extension>
740 </xs:complexContent>
741 </xs:complexType>
742
743 <xs:complexType name="realGroup">
744 <xs:complexContent>
745 <xs:restriction base="xs:group">
746 <xs:sequence>
747 <xs:element ref="xs:annotation" minOccurs="0"/>
748 <xs:choice minOccurs="0" maxOccurs="1">
749 <xs:element ref="xs:all"/>
750 <xs:element ref="xs:choice"/>
751 <xs:element ref="xs:sequence"/>
752 </xs:choice>
753 </xs:sequence>
754 <xs:anyAttribute namespace="##other" processContents="lax"/>
755 </xs:restriction>
756 </xs:complexContent>
757 </xs:complexType>
758
759 <xs:complexType name="namedGroup">
760 <xs:complexContent>
761 <xs:restriction base="xs:realGroup">
762 <xs:sequence>
763 <xs:element ref="xs:annotation" minOccurs="0"/>
764 <xs:choice minOccurs="1" maxOccurs="1">
765 <xs:element name="all">
766 <xs:complexType>
767 <xs:complexContent>
768 <xs:restriction base="xs:all">
769 <xs:group ref="xs:allModel"/>
770 <xs:attribute name="minOccurs" use="prohibited"/>
771 <xs:attribute name="maxOccurs" use="prohibited"/>
772 <xs:anyAttribute namespace="##other" processContents="lax"/>
773 </xs:restriction>
774 </xs:complexContent>
775 </xs:complexType>
776 </xs:element>
777 <xs:element name="choice" type="xs:simpleExplicitGroup"/>
778 <xs:element name="sequence" type="xs:simpleExplicitGroup"/>
779 </xs:choice>
780 </xs:sequence>
781 <xs:attribute name="name" use="required" type="xs:NCName"/>
782 <xs:attribute name="ref" use="prohibited"/>
783 <xs:attribute name="minOccurs" use="prohibited"/>
784 <xs:attribute name="maxOccurs" use="prohibited"/>
785 <xs:anyAttribute namespace="##other" processContents="lax"/>
786 </xs:restriction>
787 </xs:complexContent>
788 </xs:complexType>
789
790 <xs:complexType name="groupRef">
791 <xs:complexContent>
792 <xs:restriction base="xs:realGroup">
793 <xs:sequence>
794 <xs:element ref="xs:annotation" minOccurs="0"/>
795 </xs:sequence>
796 <xs:attribute name="ref" use="required" type="xs:QName"/>
797 <xs:attribute name="name" use="prohibited"/>
798 <xs:anyAttribute namespace="##other" processContents="lax"/>
799 </xs:restriction>
800 </xs:complexContent>
801 </xs:complexType>
802
803 <xs:complexType name="explicitGroup">
804 <xs:annotation>
805 <xs:documentation>
806 group type for the three kinds of group</xs:documentation>
807 </xs:annotation>
808 <xs:complexContent>
809 <xs:restriction base="xs:group">
810 <xs:sequence>
811 <xs:element ref="xs:annotation" minOccurs="0"/>
812 <xs:group ref="xs:nestedParticle" minOccurs="0" maxOccurs="unbounded"/>
813 </xs:sequence>
814 <xs:attribute name="name" type="xs:NCName" use="prohibited"/>
815 <xs:attribute name="ref" type="xs:QName" use="prohibited"/>
816 <xs:anyAttribute namespace="##other" processContents="lax"/>
817 </xs:restriction>
818 </xs:complexContent>
819 </xs:complexType>
820
821 <xs:complexType name="simpleExplicitGroup">
822 <xs:complexContent>
823 <xs:restriction base="xs:explicitGroup">
824 <xs:sequence>
825 <xs:element ref="xs:annotation" minOccurs="0"/>
826 <xs:group ref="xs:nestedParticle" minOccurs="0" maxOccurs="unbounded"/>
827 </xs:sequence>
828 <xs:attribute name="minOccurs" use="prohibited"/>
829 <xs:attribute name="maxOccurs" use="prohibited"/>
830 <xs:anyAttribute namespace="##other" processContents="lax"/>
831 </xs:restriction>
832 </xs:complexContent>
833 </xs:complexType>
834
835 <xs:group name="allModel">
836 <xs:sequence>
837 <xs:element ref="xs:annotation" minOccurs="0"/>
838 <xs:choice minOccurs="0" maxOccurs="unbounded">
839 <xs:annotation>
840 <xs:documentation>This choice with min/max is here to
841 avoid a pblm with the Elt:All/Choice/Seq
842 Particle derivation constraint</xs:documentation>
843 </xs:annotation>
844 <xs:element name="element" type="xs:narrowMaxMin"/>
845 </xs:choice>
846 </xs:sequence>
847 </xs:group>
848
849
850 <xs:complexType name="narrowMaxMin">
851 <xs:annotation>
852 <xs:documentation>restricted max/min</xs:documentation>
853 </xs:annotation>
854 <xs:complexContent>
855 <xs:restriction base="xs:localElement">
856 <xs:sequence>
857 <xs:element ref="xs:annotation" minOccurs="0"/>
858 <xs:choice minOccurs="0">
859 <xs:element name="simpleType" type="xs:localSimpleType"/>
860 <xs:element name="complexType" type="xs:localComplexType"/>
861 </xs:choice>
862 <xs:group ref="xs:identityConstraint" minOccurs="0" maxOccurs="unbounded"/>
863 </xs:sequence>
864 <xs:attribute name="minOccurs" use="optional" default="1">
865 <xs:simpleType>
866 <xs:restriction base="xs:nonNegativeInteger">
867 <xs:enumeration value="0"/>
868 <xs:enumeration value="1"/>
869 </xs:restriction>
870 </xs:simpleType>
871 </xs:attribute>
872 <xs:attribute name="maxOccurs" use="optional" default="1">
873 <xs:simpleType>
874 <xs:restriction base="xs:allNNI">
875 <xs:enumeration value="0"/>
876 <xs:enumeration value="1"/>
877 </xs:restriction>
878 </xs:simpleType>
879 </xs:attribute>
880 <xs:anyAttribute namespace="##other" processContents="lax"/>
881 </xs:restriction>
882 </xs:complexContent>
883 </xs:complexType>
884
885 <xs:complexType name="all">
886 <xs:annotation>
887 <xs:documentation>
888 Only elements allowed inside</xs:documentation>
889 </xs:annotation>
890 <xs:complexContent>
891 <xs:restriction base="xs:explicitGroup">
892 <xs:group ref="xs:allModel"/>
893 <xs:attribute name="minOccurs" use="optional" default="1">
894 <xs:simpleType>
895 <xs:restriction base="xs:nonNegativeInteger">
896 <xs:enumeration value="0"/>
897 <xs:enumeration value="1"/>
898 </xs:restriction>
899 </xs:simpleType>
900 </xs:attribute>
901 <xs:attribute name="maxOccurs" use="optional" default="1">
902 <xs:simpleType>
903 <xs:restriction base="xs:allNNI">
904 <xs:enumeration value="1"/>
905 </xs:restriction>
906 </xs:simpleType>
907 </xs:attribute>
908 <xs:anyAttribute namespace="##other" processContents="lax"/>
909 </xs:restriction>
910 </xs:complexContent>
911 </xs:complexType>
912
913 <xs:element name="all" id="all" type="xs:all">
914 <xs:annotation>
915 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-all"/>
916 </xs:annotation>
917 </xs:element>
918
919 <xs:element name="choice" type="xs:explicitGroup" id="choice">
920 <xs:annotation>
921 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-choice"/>
922 </xs:annotation>
923 </xs:element>
924
925 <xs:element name="sequence" type="xs:explicitGroup" id="sequence">
926 <xs:annotation>
927 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-sequence"/>
928 </xs:annotation>
929 </xs:element>
930
931 <xs:element name="group" type="xs:namedGroup" id="group">
932 <xs:annotation>
933 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-group"/>
934 </xs:annotation>
935 </xs:element>
936
937 <xs:complexType name="wildcard">
938 <xs:complexContent>
939 <xs:extension base="xs:annotated">
940 <xs:attribute name="namespace" type="xs:namespaceList" use="optional" default="##any"/>
941 <xs:attribute name="processContents" use="optional" default="strict">
942 <xs:simpleType>
943 <xs:restriction base="xs:NMTOKEN">
944 <xs:enumeration value="skip"/>
945 <xs:enumeration value="lax"/>
946 <xs:enumeration value="strict"/>
947 </xs:restriction>
948 </xs:simpleType>
949 </xs:attribute>
950 </xs:extension>
951 </xs:complexContent>
952 </xs:complexType>
953
954 <xs:element name="any" id="any">
955 <xs:annotation>
956 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-any"/>
957 </xs:annotation>
958 <xs:complexType>
959 <xs:complexContent>
960 <xs:extension base="xs:wildcard">
961 <xs:attributeGroup ref="xs:occurs"/>
962 </xs:extension>
963 </xs:complexContent>
964 </xs:complexType>
965 </xs:element>
966
967 <xs:annotation>
968 <xs:documentation>
969 simple type for the value of the 'namespace' attr of
970 'any' and 'anyAttribute'</xs:documentation>
971 </xs:annotation>
972 <xs:annotation>
973 <xs:documentation>
974 Value is
975 ##any - - any non-conflicting WFXML/attribute at all
976
977 ##other - - any non-conflicting WFXML/attribute from
978 namespace other than targetNS
979
980 ##local - - any unqualified non-conflicting WFXML/attribute
981
982 one or - - any non-conflicting WFXML/attribute from
983 more URI the listed namespaces
984 references
985 (space separated)
986
987 ##targetNamespace or ##local may appear in the above list, to
988 refer to the targetNamespace of the enclosing
989 schema or an absent targetNamespace respectively</xs:documentation>
990 </xs:annotation>
991
992 <xs:simpleType name="namespaceList">
993 <xs:annotation>
994 <xs:documentation>
995 A utility type, not for public use</xs:documentation>
996 </xs:annotation>
997 <xs:union>
998 <xs:simpleType>
999 <xs:restriction base="xs:token">
1000 <xs:enumeration value="##any"/>
1001 <xs:enumeration value="##other"/>
1002 </xs:restriction>
1003 </xs:simpleType>
1004 <xs:simpleType>
1005 <xs:list>
1006 <xs:simpleType>
1007 <xs:union memberTypes="xs:anyURI">
1008 <xs:simpleType>
1009 <xs:restriction base="xs:token">
1010 <xs:enumeration value="##targetNamespace"/>
1011 <xs:enumeration value="##local"/>
1012 </xs:restriction>
1013 </xs:simpleType>
1014 </xs:union>
1015 </xs:simpleType>
1016 </xs:list>
1017 </xs:simpleType>
1018 </xs:union>
1019 </xs:simpleType>
1020
1021 <xs:element name="attribute" type="xs:topLevelAttribute" id="attribute">
1022 <xs:annotation>
1023 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-attribute"/>
1024 </xs:annotation>
1025 </xs:element>
1026
1027 <xs:complexType name="attributeGroup" abstract="true">
1028 <xs:complexContent>
1029 <xs:extension base="xs:annotated">
1030 <xs:group ref="xs:attrDecls"/>
1031 <xs:attributeGroup ref="xs:defRef"/>
1032 </xs:extension>
1033 </xs:complexContent>
1034 </xs:complexType>
1035
1036 <xs:complexType name="namedAttributeGroup">
1037 <xs:complexContent>
1038 <xs:restriction base="xs:attributeGroup">
1039 <xs:sequence>
1040 <xs:element ref="xs:annotation" minOccurs="0"/>
1041 <xs:group ref="xs:attrDecls"/>
1042 </xs:sequence>
1043 <xs:attribute name="name" use="required" type="xs:NCName"/>
1044 <xs:attribute name="ref" use="prohibited"/>
1045 <xs:anyAttribute namespace="##other" processContents="lax"/>
1046 </xs:restriction>
1047 </xs:complexContent>
1048 </xs:complexType>
1049
1050 <xs:complexType name="attributeGroupRef">
1051 <xs:complexContent>
1052 <xs:restriction base="xs:attributeGroup">
1053 <xs:sequence>
1054 <xs:element ref="xs:annotation" minOccurs="0"/>
1055 </xs:sequence>
1056 <xs:attribute name="ref" use="required" type="xs:QName"/>
1057 <xs:attribute name="name" use="prohibited"/>
1058 <xs:anyAttribute namespace="##other" processContents="lax"/>
1059 </xs:restriction>
1060 </xs:complexContent>
1061 </xs:complexType>
1062
1063 <xs:element name="attributeGroup" type="xs:namedAttributeGroup" id="attributeGroup">
1064 <xs:annotation>
1065 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-attributeGroup"/>
1066 </xs:annotation>
1067 </xs:element>
1068
1069 <xs:element name="include" id="include">
1070 <xs:annotation>
1071 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-include"/>
1072 </xs:annotation>
1073 <xs:complexType>
1074 <xs:complexContent>
1075 <xs:extension base="xs:annotated">
1076 <xs:attribute name="schemaLocation" type="xs:anyURI" use="required"/>
1077 </xs:extension>
1078 </xs:complexContent>
1079 </xs:complexType>
1080 </xs:element>
1081
1082 <xs:element name="redefine" id="redefine">
1083 <xs:annotation>
1084 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-redefine"/>
1085 </xs:annotation>
1086 <xs:complexType>
1087 <xs:complexContent>
1088 <xs:extension base="xs:openAttrs">
1089 <xs:choice minOccurs="0" maxOccurs="unbounded">
1090 <xs:element ref="xs:annotation"/>
1091 <xs:group ref="xs:redefinable"/>
1092 </xs:choice>
1093 <xs:attribute name="schemaLocation" type="xs:anyURI" use="required"/>
1094 <xs:attribute name="id" type="xs:ID"/>
1095 </xs:extension>
1096 </xs:complexContent>
1097 </xs:complexType>
1098 </xs:element>
1099
1100 <xs:element name="import" id="import">
1101 <xs:annotation>
1102 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-import"/>
1103 </xs:annotation>
1104 <xs:complexType>
1105 <xs:complexContent>
1106 <xs:extension base="xs:annotated">
1107 <xs:attribute name="namespace" type="xs:anyURI"/>
1108 <xs:attribute name="schemaLocation" type="xs:anyURI"/>
1109 </xs:extension>
1110 </xs:complexContent>
1111 </xs:complexType>
1112 </xs:element>
1113
1114 <xs:element name="selector" id="selector">
1115 <xs:annotation>
1116 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-selector"/>
1117 </xs:annotation>
1118 <xs:complexType>
1119 <xs:complexContent>
1120 <xs:extension base="xs:annotated">
1121 <xs:attribute name="xpath" use="required">
1122 <xs:simpleType>
1123 <xs:annotation>
1124 <xs:documentation>A subset of XPath expressions for use
1125 in selectors</xs:documentation>
1126 <xs:documentation>A utility type, not for public
1127 use</xs:documentation>
1128 </xs:annotation>
1129 <xs:restriction base="xs:token">
1130 <xs:annotation>
1131 <xs:documentation>The following pattern is intended to allow XPath
1132 expressions per the following EBNF:
1133 Selector ::= Path ( '|' Path )*
1134 Path ::= ('.//')? Step ( '/' Step )*
1135 Step ::= '.' | NameTest
1136 NameTest ::= QName | '*' | NCName ':' '*'
1137 child:: is also allowed
1138 </xs:documentation>
1139 </xs:annotation>
1140 <xs:pattern value="(\.//)?(((child::)?((\i\c*:)?(\i\c*|\*)))|\.)(/(((child::)?((\i\c*:)?(\i\c*|\*)))|\.))*(\|(\.//)?(((child::)?((\i\c*:)?(\i\c*|\*)))|\.)(/(((child::)?((\i\c*:)?(\i\c*|\*)))|\.))*)*">
1141 </xs:pattern>
1142 </xs:restriction>
1143 </xs:simpleType>
1144 </xs:attribute>
1145 </xs:extension>
1146 </xs:complexContent>
1147 </xs:complexType>
1148 </xs:element>
1149
1150 <xs:element name="field" id="field">
1151 <xs:annotation>
1152 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-field"/>
1153 </xs:annotation>
1154 <xs:complexType>
1155 <xs:complexContent>
1156 <xs:extension base="xs:annotated">
1157 <xs:attribute name="xpath" use="required">
1158 <xs:simpleType>
1159 <xs:annotation>
1160 <xs:documentation>A subset of XPath expressions for use
1161 in fields</xs:documentation>
1162 <xs:documentation>A utility type, not for public
1163 use</xs:documentation>
1164 </xs:annotation>
1165 <xs:restriction base="xs:token">
1166 <xs:annotation>
1167 <xs:documentation>The following pattern is intended to allow XPath
1168 expressions per the same EBNF as for selector,
1169 with the following change:
1170 Path ::= ('.//')? ( Step '/' )* ( Step | '@' NameTest )
1171 </xs:documentation>
1172 </xs:annotation>
1173 <xs:pattern value="(\.//)?((((child::)?((\i\c*:)?(\i\c*|\*)))|\.)/)*((((child::)?((\i\c*:)?(\i\c*|\*)))|\.)|((attribute::|@)((\i\c*:)?(\i\c*|\*))))(\|(\.//)?((((child::)?((\i\c*:)?(\i\c*|\*)))|\.)/)*((((child::)?((\i\c*:)?(\i\c*|\*)))|\.)|((attribute::|@)((\i\c*:)?(\i\c*|\*)))))*">
1174 </xs:pattern>
1175 </xs:restriction>
1176 </xs:simpleType>
1177 </xs:attribute>
1178 </xs:extension>
1179 </xs:complexContent>
1180 </xs:complexType>
1181 </xs:element>
1182
1183 <xs:complexType name="keybase">
1184 <xs:complexContent>
1185 <xs:extension base="xs:annotated">
1186 <xs:sequence>
1187 <xs:element ref="xs:selector"/>
1188 <xs:element ref="xs:field" minOccurs="1" maxOccurs="unbounded"/>
1189 </xs:sequence>
1190 <xs:attribute name="name" type="xs:NCName" use="required"/>
1191 </xs:extension>
1192 </xs:complexContent>
1193 </xs:complexType>
1194
1195 <xs:group name="identityConstraint">
1196 <xs:annotation>
1197 <xs:documentation>The three kinds of identity constraints, all with
1198 type of or derived from 'keybase'.
1199 </xs:documentation>
1200 </xs:annotation>
1201 <xs:choice>
1202 <xs:element ref="xs:unique"/>
1203 <xs:element ref="xs:key"/>
1204 <xs:element ref="xs:keyref"/>
1205 </xs:choice>
1206 </xs:group>
1207
1208 <xs:element name="unique" type="xs:keybase" id="unique">
1209 <xs:annotation>
1210 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-unique"/>
1211 </xs:annotation>
1212 </xs:element>
1213 <xs:element name="key" type="xs:keybase" id="key">
1214 <xs:annotation>
1215 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-key"/>
1216 </xs:annotation>
1217 </xs:element>
1218 <xs:element name="keyref" id="keyref">
1219 <xs:annotation>
1220 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-keyref"/>
1221 </xs:annotation>
1222 <xs:complexType>
1223 <xs:complexContent>
1224 <xs:extension base="xs:keybase">
1225 <xs:attribute name="refer" type="xs:QName" use="required"/>
1226 </xs:extension>
1227 </xs:complexContent>
1228 </xs:complexType>
1229 </xs:element>
1230
1231 <xs:element name="notation" id="notation">
1232 <xs:annotation>
1233 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-notation"/>
1234 </xs:annotation>
1235 <xs:complexType>
1236 <xs:complexContent>
1237 <xs:extension base="xs:annotated">
1238 <xs:attribute name="name" type="xs:NCName" use="required"/>
1239 <xs:attribute name="public" type="xs:public"/>
1240 <xs:attribute name="system" type="xs:anyURI"/>
1241 </xs:extension>
1242 </xs:complexContent>
1243 </xs:complexType>
1244 </xs:element>
1245
1246 <xs:simpleType name="public">
1247 <xs:annotation>
1248 <xs:documentation>
1249 A utility type, not for public use</xs:documentation>
1250 <xs:documentation>
1251 A public identifier, per ISO 8879</xs:documentation>
1252 </xs:annotation>
1253 <xs:restriction base="xs:token"/>
1254 </xs:simpleType>
1255
1256 <xs:element name="appinfo" id="appinfo">
1257 <xs:annotation>
1258 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-appinfo"/>
1259 </xs:annotation>
1260 <xs:complexType mixed="true">
1261 <xs:sequence minOccurs="0" maxOccurs="unbounded">
1262 <xs:any processContents="lax"/>
1263 </xs:sequence>
1264 <xs:attribute name="source" type="xs:anyURI"/>
1265 <xs:anyAttribute namespace="##other" processContents="lax"/>
1266 </xs:complexType>
1267 </xs:element>
1268
1269 <xs:element name="documentation" id="documentation">
1270 <xs:annotation>
1271 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-documentation"/>
1272 </xs:annotation>
1273 <xs:complexType mixed="true">
1274 <xs:sequence minOccurs="0" maxOccurs="unbounded">
1275 <xs:any processContents="lax"/>
1276 </xs:sequence>
1277 <xs:attribute name="source" type="xs:anyURI"/>
1278 <xs:attribute ref="xml:lang"/>
1279 <xs:anyAttribute namespace="##other" processContents="lax"/>
1280 </xs:complexType>
1281 </xs:element>
1282
1283 <xs:element name="annotation" id="annotation">
1284 <xs:annotation>
1285 <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-annotation"/>
1286 </xs:annotation>
1287 <xs:complexType>
1288 <xs:complexContent>
1289 <xs:extension base="xs:openAttrs">
1290 <xs:choice minOccurs="0" maxOccurs="unbounded">
1291 <xs:element ref="xs:appinfo"/>
1292 <xs:element ref="xs:documentation"/>
1293 </xs:choice>
1294 <xs:attribute name="id" type="xs:ID"/>
1295 </xs:extension>
1296 </xs:complexContent>
1297 </xs:complexType>
1298 </xs:element>
1299
1300 <xs:annotation>
1301 <xs:documentation>
1302 notations for use within XML Schema schemas</xs:documentation>
1303 </xs:annotation>
1304
1305 <xs:notation name="XMLSchemaStructures" public="structures" system="http://www.w3.org/2000/08/XMLSchema.xsd"/>
1306 <xs:notation name="XML" public="REC-xml-19980210" system="http://www.w3.org/TR/1998/REC-xml-19980210"/>
1307
1308 <xs:complexType name="anyType" mixed="true">
1309 <xs:annotation>
1310 <xs:documentation>
1311 Not the real urType, but as close an approximation as we can
1312 get in the XML representation</xs:documentation>
1313 </xs:annotation>
1314 <xs:sequence>
1315 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
1316 </xs:sequence>
1317 <xs:anyAttribute processContents="lax"/>
1318 </xs:complexType>
1319
1320 <xs:annotation>
1321 <xs:documentation>
1322 First the built-in primitive datatypes. These definitions are for
1323 information only, the real built-in definitions are magic.
1324 </xs:documentation>
1325
1326 <xs:documentation>
1327 For each built-in datatype in this schema (both primitive and
1328 derived) can be uniquely addressed via a URI constructed
1329 as follows:
1330 1) the base URI is the URI of the XML Schema namespace
1331 2) the fragment identifier is the name of the datatype
1332
1333 For example, to address the int datatype, the URI is:
1334
1335 http://www.w3.org/2001/XMLSchema#int
1336
1337 Additionally, each facet definition element can be uniquely
1338 addressed via a URI constructed as follows:
1339 1) the base URI is the URI of the XML Schema namespace
1340 2) the fragment identifier is the name of the facet
1341
1342 For example, to address the maxInclusive facet, the URI is:
1343
1344 http://www.w3.org/2001/XMLSchema#maxInclusive
1345
1346 Additionally, each facet usage in a built-in datatype definition
1347 can be uniquely addressed via a URI constructed as follows:
1348 1) the base URI is the URI of the XML Schema namespace
1349 2) the fragment identifier is the name of the datatype, followed
1350 by a period (".") followed by the name of the facet
1351
1352 For example, to address the usage of the maxInclusive facet in
1353 the definition of int, the URI is:
1354
1355 http://www.w3.org/2001/XMLSchema#int.maxInclusive
1356
1357 </xs:documentation>
1358 </xs:annotation>
1359
1360 <xs:simpleType name="string" id="string">
1361 <xs:annotation>
1362 <xs:appinfo>
1363 <hfp:hasFacet name="length"/>
1364 <hfp:hasFacet name="minLength"/>
1365 <hfp:hasFacet name="maxLength"/>
1366 <hfp:hasFacet name="pattern"/>
1367 <hfp:hasFacet name="enumeration"/>
1368 <hfp:hasFacet name="whiteSpace"/>
1369 <hfp:hasProperty name="ordered" value="false"/>
1370 <hfp:hasProperty name="bounded" value="false"/>
1371 <hfp:hasProperty name="cardinality" value="countably infinite"/>
1372 <hfp:hasProperty name="numeric" value="false"/>
1373 </xs:appinfo>
1374 <xs:documentation
1375 source="http://www.w3.org/TR/xmlschema-2/#string"/>
1376 </xs:annotation>
1377 <xs:restriction base="xs:anySimpleType">
1378 <xs:whiteSpace value="preserve" id="string.preserve"/>
1379 </xs:restriction>
1380 </xs:simpleType>
1381
1382 <xs:simpleType name="boolean" id="boolean">
1383 <xs:annotation>
1384 <xs:appinfo>
1385 <hfp:hasFacet name="pattern"/>
1386 <hfp:hasFacet name="whiteSpace"/>
1387 <hfp:hasProperty name="ordered" value="false"/>
1388 <hfp:hasProperty name="bounded" value="false"/>
1389 <hfp:hasProperty name="cardinality" value="finite"/>
1390 <hfp:hasProperty name="numeric" value="false"/>
1391 </xs:appinfo>
1392 <xs:documentation
1393 source="http://www.w3.org/TR/xmlschema-2/#boolean"/>
1394 </xs:annotation>
1395 <xs:restriction base="xs:anySimpleType">
1396 <xs:whiteSpace value="collapse" fixed="true"
1397 id="boolean.whiteSpace"/>
1398 </xs:restriction>
1399 </xs:simpleType>
1400
1401 <xs:simpleType name="float" id="float">
1402 <xs:annotation>
1403 <xs:appinfo>
1404 <hfp:hasFacet name="pattern"/>
1405 <hfp:hasFacet name="enumeration"/>
1406 <hfp:hasFacet name="whiteSpace"/>
1407 <hfp:hasFacet name="maxInclusive"/>
1408 <hfp:hasFacet name="maxExclusive"/>
1409 <hfp:hasFacet name="minInclusive"/>
1410 <hfp:hasFacet name="minExclusive"/>
1411 <hfp:hasProperty name="ordered" value="total"/>
1412 <hfp:hasProperty name="bounded" value="true"/>
1413 <hfp:hasProperty name="cardinality" value="finite"/>
1414 <hfp:hasProperty name="numeric" value="true"/>
1415 </xs:appinfo>
1416 <xs:documentation
1417 source="http://www.w3.org/TR/xmlschema-2/#float"/>
1418 </xs:annotation>
1419 <xs:restriction base="xs:anySimpleType">
1420 <xs:whiteSpace value="collapse" fixed="true"
1421 id="float.whiteSpace"/>
1422 </xs:restriction>
1423 </xs:simpleType>
1424
1425 <xs:simpleType name="double" id="double">
1426 <xs:annotation>
1427 <xs:appinfo>
1428 <hfp:hasFacet name="pattern"/>
1429 <hfp:hasFacet name="enumeration"/>
1430 <hfp:hasFacet name="whiteSpace"/>
1431 <hfp:hasFacet name="maxInclusive"/>
1432 <hfp:hasFacet name="maxExclusive"/>
1433 <hfp:hasFacet name="minInclusive"/>
1434 <hfp:hasFacet name="minExclusive"/>
1435 <hfp:hasProperty name="ordered" value="total"/>
1436 <hfp:hasProperty name="bounded" value="true"/>
1437 <hfp:hasProperty name="cardinality" value="finite"/>
1438 <hfp:hasProperty name="numeric" value="true"/>
1439 </xs:appinfo>
1440 <xs:documentation
1441 source="http://www.w3.org/TR/xmlschema-2/#double"/>
1442 </xs:annotation>
1443 <xs:restriction base="xs:anySimpleType">
1444 <xs:whiteSpace value="collapse" fixed="true"
1445 id="double.whiteSpace"/>
1446 </xs:restriction>
1447 </xs:simpleType>
1448
1449 <xs:simpleType name="decimal" id="decimal">
1450 <xs:annotation>
1451 <xs:appinfo>
1452 <hfp:hasFacet name="totalDigits"/>
1453 <hfp:hasFacet name="fractionDigits"/>
1454 <hfp:hasFacet name="pattern"/>
1455 <hfp:hasFacet name="whiteSpace"/>
1456 <hfp:hasFacet name="enumeration"/>
1457 <hfp:hasFacet name="maxInclusive"/>
1458 <hfp:hasFacet name="maxExclusive"/>
1459 <hfp:hasFacet name="minInclusive"/>
1460 <hfp:hasFacet name="minExclusive"/>
1461 <hfp:hasProperty name="ordered" value="total"/>
1462 <hfp:hasProperty name="bounded" value="false"/>
1463 <hfp:hasProperty name="cardinality"
1464 value="countably infinite"/>
1465 <hfp:hasProperty name="numeric" value="true"/>
1466 </xs:appinfo>
1467 <xs:documentation
1468 source="http://www.w3.org/TR/xmlschema-2/#decimal"/>
1469 </xs:annotation>
1470 <xs:restriction base="xs:anySimpleType">
1471 <xs:whiteSpace value="collapse" fixed="true"
1472 id="decimal.whiteSpace"/>
1473 </xs:restriction>
1474 </xs:simpleType>
1475
1476 <xs:simpleType name="duration" id="duration">
1477 <xs:annotation>
1478 <xs:appinfo>
1479 <hfp:hasFacet name="pattern"/>
1480 <hfp:hasFacet name="enumeration"/>
1481 <hfp:hasFacet name="whiteSpace"/>
1482 <hfp:hasFacet name="maxInclusive"/>
1483 <hfp:hasFacet name="maxExclusive"/>
1484 <hfp:hasFacet name="minInclusive"/>
1485 <hfp:hasFacet name="minExclusive"/>
1486 <hfp:hasProperty name="ordered" value="partial"/>
1487 <hfp:hasProperty name="bounded" value="false"/>
1488 <hfp:hasProperty name="cardinality"
1489 value="countably infinite"/>
1490 <hfp:hasProperty name="numeric" value="false"/>
1491 </xs:appinfo>
1492 <xs:documentation
1493 source="http://www.w3.org/TR/xmlschema-2/#duration"/>
1494 </xs:annotation>
1495 <xs:restriction base="xs:anySimpleType">
1496 <xs:whiteSpace value="collapse" fixed="true"
1497 id="duration.whiteSpace"/>
1498 </xs:restriction>
1499 </xs:simpleType>
1500
1501 <xs:simpleType name="dateTime" id="dateTime">
1502 <xs:annotation>
1503 <xs:appinfo>
1504 <hfp:hasFacet name="pattern"/>
1505 <hfp:hasFacet name="enumeration"/>
1506 <hfp:hasFacet name="whiteSpace"/>
1507 <hfp:hasFacet name="maxInclusive"/>
1508 <hfp:hasFacet name="maxExclusive"/>
1509 <hfp:hasFacet name="minInclusive"/>
1510 <hfp:hasFacet name="minExclusive"/>
1511 <hfp:hasProperty name="ordered" value="partial"/>
1512 <hfp:hasProperty name="bounded" value="false"/>
1513 <hfp:hasProperty name="cardinality"
1514 value="countably infinite"/>
1515 <hfp:hasProperty name="numeric" value="false"/>
1516 </xs:appinfo>
1517 <xs:documentation
1518 source="http://www.w3.org/TR/xmlschema-2/#dateTime"/>
1519 </xs:annotation>
1520 <xs:restriction base="xs:anySimpleType">
1521 <xs:whiteSpace value="collapse" fixed="true"
1522 id="dateTime.whiteSpace"/>
1523 </xs:restriction>
1524 </xs:simpleType>
1525
1526 <xs:simpleType name="time" id="time">
1527 <xs:annotation>
1528 <xs:appinfo>
1529 <hfp:hasFacet name="pattern"/>
1530 <hfp:hasFacet name="enumeration"/>
1531 <hfp:hasFacet name="whiteSpace"/>
1532 <hfp:hasFacet name="maxInclusive"/>
1533 <hfp:hasFacet name="maxExclusive"/>
1534 <hfp:hasFacet name="minInclusive"/>
1535 <hfp:hasFacet name="minExclusive"/>
1536 <hfp:hasProperty name="ordered" value="partial"/>
1537 <hfp:hasProperty name="bounded" value="false"/>
1538 <hfp:hasProperty name="cardinality"
1539 value="countably infinite"/>
1540 <hfp:hasProperty name="numeric" value="false"/>
1541 </xs:appinfo>
1542 <xs:documentation
1543 source="http://www.w3.org/TR/xmlschema-2/#time"/>
1544 </xs:annotation>
1545 <xs:restriction base="xs:anySimpleType">
1546 <xs:whiteSpace value="collapse" fixed="true"
1547 id="time.whiteSpace"/>
1548 </xs:restriction>
1549 </xs:simpleType>
1550
1551 <xs:simpleType name="date" id="date">
1552 <xs:annotation>
1553 <xs:appinfo>
1554 <hfp:hasFacet name="pattern"/>
1555 <hfp:hasFacet name="enumeration"/>
1556 <hfp:hasFacet name="whiteSpace"/>
1557 <hfp:hasFacet name="maxInclusive"/>
1558 <hfp:hasFacet name="maxExclusive"/>
1559 <hfp:hasFacet name="minInclusive"/>
1560 <hfp:hasFacet name="minExclusive"/>
1561 <hfp:hasProperty name="ordered" value="partial"/>
1562 <hfp:hasProperty name="bounded" value="false"/>
1563 <hfp:hasProperty name="cardinality"
1564 value="countably infinite"/>
1565 <hfp:hasProperty name="numeric" value="false"/>
1566 </xs:appinfo>
1567 <xs:documentation
1568 source="http://www.w3.org/TR/xmlschema-2/#date"/>
1569 </xs:annotation>
1570 <xs:restriction base="xs:anySimpleType">
1571 <xs:whiteSpace value="collapse" fixed="true"
1572 id="date.whiteSpace"/>
1573 </xs:restriction>
1574 </xs:simpleType>
1575
1576 <xs:simpleType name="gYearMonth" id="gYearMonth">
1577 <xs:annotation>
1578 <xs:appinfo>
1579 <hfp:hasFacet name="pattern"/>
1580 <hfp:hasFacet name="enumeration"/>
1581 <hfp:hasFacet name="whiteSpace"/>
1582 <hfp:hasFacet name="maxInclusive"/>
1583 <hfp:hasFacet name="maxExclusive"/>
1584 <hfp:hasFacet name="minInclusive"/>
1585 <hfp:hasFacet name="minExclusive"/>
1586 <hfp:hasProperty name="ordered" value="partial"/>
1587 <hfp:hasProperty name="bounded" value="false"/>
1588 <hfp:hasProperty name="cardinality"
1589 value="countably infinite"/>
1590 <hfp:hasProperty name="numeric" value="false"/>
1591 </xs:appinfo>
1592 <xs:documentation
1593 source="http://www.w3.org/TR/xmlschema-2/#gYearMonth"/>
1594 </xs:annotation>
1595 <xs:restriction base="xs:anySimpleType">
1596 <xs:whiteSpace value="collapse" fixed="true"
1597 id="gYearMonth.whiteSpace"/>
1598 </xs:restriction>
1599 </xs:simpleType>
1600
1601 <xs:simpleType name="gYear" id="gYear">
1602 <xs:annotation>
1603 <xs:appinfo>
1604 <hfp:hasFacet name="pattern"/>
1605 <hfp:hasFacet name="enumeration"/>
1606 <hfp:hasFacet name="whiteSpace"/>
1607 <hfp:hasFacet name="maxInclusive"/>
1608 <hfp:hasFacet name="maxExclusive"/>
1609 <hfp:hasFacet name="minInclusive"/>
1610 <hfp:hasFacet name="minExclusive"/>
1611 <hfp:hasProperty name="ordered" value="partial"/>
1612 <hfp:hasProperty name="bounded" value="false"/>
1613 <hfp:hasProperty name="cardinality"
1614 value="countably infinite"/>
1615 <hfp:hasProperty name="numeric" value="false"/>
1616 </xs:appinfo>
1617 <xs:documentation
1618 source="http://www.w3.org/TR/xmlschema-2/#gYear"/>
1619 </xs:annotation>
1620 <xs:restriction base="xs:anySimpleType">
1621 <xs:whiteSpace value="collapse" fixed="true"
1622 id="gYear.whiteSpace"/>
1623 </xs:restriction>
1624 </xs:simpleType>
1625
1626 <xs:simpleType name="gMonthDay" id="gMonthDay">
1627 <xs:annotation>
1628 <xs:appinfo>
1629 <hfp:hasFacet name="pattern"/>
1630 <hfp:hasFacet name="enumeration"/>
1631 <hfp:hasFacet name="whiteSpace"/>
1632 <hfp:hasFacet name="maxInclusive"/>
1633 <hfp:hasFacet name="maxExclusive"/>
1634 <hfp:hasFacet name="minInclusive"/>
1635 <hfp:hasFacet name="minExclusive"/>
1636 <hfp:hasProperty name="ordered" value="partial"/>
1637 <hfp:hasProperty name="bounded" value="false"/>
1638 <hfp:hasProperty name="cardinality"
1639 value="countably infinite"/>
1640 <hfp:hasProperty name="numeric" value="false"/>
1641 </xs:appinfo>
1642 <xs:documentation
1643 source="http://www.w3.org/TR/xmlschema-2/#gMonthDay"/>
1644 </xs:annotation>
1645 <xs:restriction base="xs:anySimpleType">
1646 <xs:whiteSpace value="collapse" fixed="true"
1647 id="gMonthDay.whiteSpace"/>
1648 </xs:restriction>
1649 </xs:simpleType>
1650
1651 <xs:simpleType name="gDay" id="gDay">
1652 <xs:annotation>
1653 <xs:appinfo>
1654 <hfp:hasFacet name="pattern"/>
1655 <hfp:hasFacet name="enumeration"/>
1656 <hfp:hasFacet name="whiteSpace"/>
1657 <hfp:hasFacet name="maxInclusive"/>
1658 <hfp:hasFacet name="maxExclusive"/>
1659 <hfp:hasFacet name="minInclusive"/>
1660 <hfp:hasFacet name="minExclusive"/>
1661 <hfp:hasProperty name="ordered" value="partial"/>
1662 <hfp:hasProperty name="bounded" value="false"/>
1663 <hfp:hasProperty name="cardinality"
1664 value="countably infinite"/>
1665 <hfp:hasProperty name="numeric" value="false"/>
1666 </xs:appinfo>
1667 <xs:documentation
1668 source="http://www.w3.org/TR/xmlschema-2/#gDay"/>
1669 </xs:annotation>
1670 <xs:restriction base="xs:anySimpleType">
1671 <xs:whiteSpace value="collapse" fixed="true"
1672 id="gDay.whiteSpace"/>
1673 </xs:restriction>
1674 </xs:simpleType>
1675
1676 <xs:simpleType name="gMonth" id="gMonth">
1677 <xs:annotation>
1678 <xs:appinfo>
1679 <hfp:hasFacet name="pattern"/>
1680 <hfp:hasFacet name="enumeration"/>
1681 <hfp:hasFacet name="whiteSpace"/>
1682 <hfp:hasFacet name="maxInclusive"/>
1683 <hfp:hasFacet name="maxExclusive"/>
1684 <hfp:hasFacet name="minInclusive"/>
1685 <hfp:hasFacet name="minExclusive"/>
1686 <hfp:hasProperty name="ordered" value="partial"/>
1687 <hfp:hasProperty name="bounded" value="false"/>
1688 <hfp:hasProperty name="cardinality"
1689 value="countably infinite"/>
1690 <hfp:hasProperty name="numeric" value="false"/>
1691 </xs:appinfo>
1692 <xs:documentation
1693 source="http://www.w3.org/TR/xmlschema-2/#gMonth"/>
1694 </xs:annotation>
1695 <xs:restriction base="xs:anySimpleType">
1696 <xs:whiteSpace value="collapse" fixed="true"
1697 id="gMonth.whiteSpace"/>
1698 </xs:restriction>
1699 </xs:simpleType>
1700
1701 <xs:simpleType name="hexBinary" id="hexBinary">
1702 <xs:annotation>
1703 <xs:appinfo>
1704 <hfp:hasFacet name="length"/>
1705 <hfp:hasFacet name="minLength"/>
1706 <hfp:hasFacet name="maxLength"/>
1707 <hfp:hasFacet name="pattern"/>
1708 <hfp:hasFacet name="enumeration"/>
1709 <hfp:hasFacet name="whiteSpace"/>
1710 <hfp:hasProperty name="ordered" value="false"/>
1711 <hfp:hasProperty name="bounded" value="false"/>
1712 <hfp:hasProperty name="cardinality"
1713 value="countably infinite"/>
1714 <hfp:hasProperty name="numeric" value="false"/>
1715 </xs:appinfo>
1716 <xs:documentation
1717 source="http://www.w3.org/TR/xmlschema-2/#binary"/>
1718 </xs:annotation>
1719 <xs:restriction base="xs:anySimpleType">
1720 <xs:whiteSpace value="collapse" fixed="true"
1721 id="hexBinary.whiteSpace"/>
1722 </xs:restriction>
1723 </xs:simpleType>
1724
1725 <xs:simpleType name="base64Binary" id="base64Binary">
1726 <xs:annotation>
1727 <xs:appinfo>
1728 <hfp:hasFacet name="length"/>
1729 <hfp:hasFacet name="minLength"/>
1730 <hfp:hasFacet name="maxLength"/>
1731 <hfp:hasFacet name="pattern"/>
1732 <hfp:hasFacet name="enumeration"/>
1733 <hfp:hasFacet name="whiteSpace"/>
1734 <hfp:hasProperty name="ordered" value="false"/>
1735 <hfp:hasProperty name="bounded" value="false"/>
1736 <hfp:hasProperty name="cardinality"
1737 value="countably infinite"/>
1738 <hfp:hasProperty name="numeric" value="false"/>
1739 </xs:appinfo>
1740 <xs:documentation
1741 source="http://www.w3.org/TR/xmlschema-2/#base64Binary"/>
1742 </xs:annotation>
1743 <xs:restriction base="xs:anySimpleType">
1744 <xs:whiteSpace value="collapse" fixed="true"
1745 id="base64Binary.whiteSpace"/>
1746 </xs:restriction>
1747 </xs:simpleType>
1748
1749 <xs:simpleType name="anyURI" id="anyURI">
1750 <xs:annotation>
1751 <xs:appinfo>
1752 <hfp:hasFacet name="length"/>
1753 <hfp:hasFacet name="minLength"/>
1754 <hfp:hasFacet name="maxLength"/>
1755 <hfp:hasFacet name="pattern"/>
1756 <hfp:hasFacet name="enumeration"/>
1757 <hfp:hasFacet name="whiteSpace"/>
1758 <hfp:hasProperty name="ordered" value="false"/>
1759 <hfp:hasProperty name="bounded" value="false"/>
1760 <hfp:hasProperty name="cardinality"
1761 value="countably infinite"/>
1762 <hfp:hasProperty name="numeric" value="false"/>
1763 </xs:appinfo>
1764 <xs:documentation
1765 source="http://www.w3.org/TR/xmlschema-2/#anyURI"/>
1766 </xs:annotation>
1767 <xs:restriction base="xs:anySimpleType">
1768 <xs:whiteSpace value="collapse" fixed="true"
1769 id="anyURI.whiteSpace"/>
1770 </xs:restriction>
1771 </xs:simpleType>
1772
1773 <xs:simpleType name="QName" id="QName">
1774 <xs:annotation>
1775 <xs:appinfo>
1776 <hfp:hasFacet name="length"/>
1777 <hfp:hasFacet name="minLength"/>
1778 <hfp:hasFacet name="maxLength"/>
1779 <hfp:hasFacet name="pattern"/>
1780 <hfp:hasFacet name="enumeration"/>
1781 <hfp:hasFacet name="whiteSpace"/>
1782 <hfp:hasProperty name="ordered" value="false"/>
1783 <hfp:hasProperty name="bounded" value="false"/>
1784 <hfp:hasProperty name="cardinality"
1785 value="countably infinite"/>
1786 <hfp:hasProperty name="numeric" value="false"/>
1787 </xs:appinfo>
1788 <xs:documentation
1789 source="http://www.w3.org/TR/xmlschema-2/#QName"/>
1790 </xs:annotation>
1791 <xs:restriction base="xs:anySimpleType">
1792 <xs:whiteSpace value="collapse" fixed="true"
1793 id="QName.whiteSpace"/>
1794 </xs:restriction>
1795 </xs:simpleType>
1796
1797 <xs:simpleType name="NOTATION" id="NOTATION">
1798 <xs:annotation>
1799 <xs:appinfo>
1800 <hfp:hasFacet name="length"/>
1801 <hfp:hasFacet name="minLength"/>
1802 <hfp:hasFacet name="maxLength"/>
1803 <hfp:hasFacet name="pattern"/>
1804 <hfp:hasFacet name="enumeration"/>
1805 <hfp:hasFacet name="whiteSpace"/>
1806 <hfp:hasProperty name="ordered" value="false"/>
1807 <hfp:hasProperty name="bounded" value="false"/>
1808 <hfp:hasProperty name="cardinality"
1809 value="countably infinite"/>
1810 <hfp:hasProperty name="numeric" value="false"/>
1811 </xs:appinfo>
1812 <xs:documentation
1813 source="http://www.w3.org/TR/xmlschema-2/#NOTATION"/>
1814 <xs:documentation>
1815 NOTATION cannot be used directly in a schema; rather a type
1816 must be derived from it by specifying at least one enumeration
1817 facet whose value is the name of a NOTATION declared in the
1818 schema.
1819 </xs:documentation>
1820 </xs:annotation>
1821 <xs:restriction base="xs:anySimpleType">
1822 <xs:whiteSpace value="collapse" fixed="true"
1823 id="NOTATION.whiteSpace"/>
1824 </xs:restriction>
1825 </xs:simpleType>
1826
1827 <xs:annotation>
1828 <xs:documentation>
1829 Now the derived primitive types
1830 </xs:documentation>
1831 </xs:annotation>
1832
1833 <xs:simpleType name="normalizedString" id="normalizedString">
1834 <xs:annotation>
1835 <xs:documentation
1836 source="http://www.w3.org/TR/xmlschema-2/#normalizedString"/>
1837 </xs:annotation>
1838 <xs:restriction base="xs:string">
1839 <xs:whiteSpace value="replace"
1840 id="normalizedString.whiteSpace"/>
1841 </xs:restriction>
1842 </xs:simpleType>
1843
1844 <xs:simpleType name="token" id="token">
1845 <xs:annotation>
1846 <xs:documentation
1847 source="http://www.w3.org/TR/xmlschema-2/#token"/>
1848 </xs:annotation>
1849 <xs:restriction base="xs:normalizedString">
1850 <xs:whiteSpace value="collapse" id="token.whiteSpace"/>
1851 </xs:restriction>
1852 </xs:simpleType>
1853
1854 <xs:simpleType name="language" id="language">
1855 <xs:annotation>
1856 <xs:documentation
1857 source="http://www.w3.org/TR/xmlschema-2/#language"/>
1858 </xs:annotation>
1859 <xs:restriction base="xs:token">
1860 <xs:pattern
1861 value="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
1862 id="language.pattern">
1863 <xs:annotation>
1864 <xs:documentation
1865 source="http://www.ietf.org/rfc/rfc3066.txt">
1866 pattern specifies the content of section 2.12 of XML 1.0e2
1867 and RFC 3066 (Revised version of RFC 1766).
1868 </xs:documentation>
1869 </xs:annotation>
1870 </xs:pattern>
1871 </xs:restriction>
1872 </xs:simpleType>
1873
1874 <xs:simpleType name="IDREFS" id="IDREFS">
1875 <xs:annotation>
1876 <xs:appinfo>
1877 <hfp:hasFacet name="length"/>
1878 <hfp:hasFacet name="minLength"/>
1879 <hfp:hasFacet name="maxLength"/>
1880 <hfp:hasFacet name="enumeration"/>
1881 <hfp:hasFacet name="whiteSpace"/>
1882 <hfp:hasFacet name="pattern"/>
1883 <hfp:hasProperty name="ordered" value="false"/>
1884 <hfp:hasProperty name="bounded" value="false"/>
1885 <hfp:hasProperty name="cardinality"
1886 value="countably infinite"/>
1887 <hfp:hasProperty name="numeric" value="false"/>
1888 </xs:appinfo>
1889 <xs:documentation
1890 source="http://www.w3.org/TR/xmlschema-2/#IDREFS"/>
1891 </xs:annotation>
1892 <xs:restriction>
1893 <xs:simpleType>
1894 <xs:list itemType="xs:IDREF"/>
1895 </xs:simpleType>
1896 <xs:minLength value="1" id="IDREFS.minLength"/>
1897 </xs:restriction>
1898 </xs:simpleType>
1899
1900 <xs:simpleType name="ENTITIES" id="ENTITIES">
1901 <xs:annotation>
1902 <xs:appinfo>
1903 <hfp:hasFacet name="length"/>
1904 <hfp:hasFacet name="minLength"/>
1905 <hfp:hasFacet name="maxLength"/>
1906 <hfp:hasFacet name="enumeration"/>
1907 <hfp:hasFacet name="whiteSpace"/>
1908 <hfp:hasFacet name="pattern"/>
1909 <hfp:hasProperty name="ordered" value="false"/>
1910 <hfp:hasProperty name="bounded" value="false"/>
1911 <hfp:hasProperty name="cardinality"
1912 value="countably infinite"/>
1913 <hfp:hasProperty name="numeric" value="false"/>
1914 </xs:appinfo>
1915 <xs:documentation
1916 source="http://www.w3.org/TR/xmlschema-2/#ENTITIES"/>
1917 </xs:annotation>
1918 <xs:restriction>
1919 <xs:simpleType>
1920 <xs:list itemType="xs:ENTITY"/>
1921 </xs:simpleType>
1922 <xs:minLength value="1" id="ENTITIES.minLength"/>
1923 </xs:restriction>
1924 </xs:simpleType>
1925
1926 <xs:simpleType name="NMTOKEN" id="NMTOKEN">
1927 <xs:annotation>
1928 <xs:documentation
1929 source="http://www.w3.org/TR/xmlschema-2/#NMTOKEN"/>
1930 </xs:annotation>
1931 <xs:restriction base="xs:token">
1932 <xs:pattern value="\c+" id="NMTOKEN.pattern">
1933 <xs:annotation>
1934 <xs:documentation
1935 source="http://www.w3.org/TR/REC-xml#NT-Nmtoken">
1936 pattern matches production 7 from the XML spec
1937 </xs:documentation>
1938 </xs:annotation>
1939 </xs:pattern>
1940 </xs:restriction>
1941 </xs:simpleType>
1942
1943 <xs:simpleType name="NMTOKENS" id="NMTOKENS">
1944 <xs:annotation>
1945 <xs:appinfo>
1946 <hfp:hasFacet name="length"/>
1947 <hfp:hasFacet name="minLength"/>
1948 <hfp:hasFacet name="maxLength"/>
1949 <hfp:hasFacet name="enumeration"/>
1950 <hfp:hasFacet name="whiteSpace"/>
1951 <hfp:hasFacet name="pattern"/>
1952 <hfp:hasProperty name="ordered" value="false"/>
1953 <hfp:hasProperty name="bounded" value="false"/>
1954 <hfp:hasProperty name="cardinality"
1955 value="countably infinite"/>
1956 <hfp:hasProperty name="numeric" value="false"/>
1957 </xs:appinfo>
1958 <xs:documentation
1959 source="http://www.w3.org/TR/xmlschema-2/#NMTOKENS"/>
1960 </xs:annotation>
1961 <xs:restriction>
1962 <xs:simpleType>
1963 <xs:list itemType="xs:NMTOKEN"/>
1964 </xs:simpleType>
1965 <xs:minLength value="1" id="NMTOKENS.minLength"/>
1966 </xs:restriction>
1967 </xs:simpleType>
1968
1969 <xs:simpleType name="Name" id="Name">
1970 <xs:annotation>
1971 <xs:documentation
1972 source="http://www.w3.org/TR/xmlschema-2/#Name"/>
1973 </xs:annotation>
1974 <xs:restriction base="xs:token">
1975 <xs:pattern value="\i\c*" id="Name.pattern">
1976 <xs:annotation>
1977 <xs:documentation
1978 source="http://www.w3.org/TR/REC-xml#NT-Name">
1979 pattern matches production 5 from the XML spec
1980 </xs:documentation>
1981 </xs:annotation>
1982 </xs:pattern>
1983 </xs:restriction>
1984 </xs:simpleType>
1985
1986 <xs:simpleType name="NCName" id="NCName">
1987 <xs:annotation>
1988 <xs:documentation
1989 source="http://www.w3.org/TR/xmlschema-2/#NCName"/>
1990 </xs:annotation>
1991 <xs:restriction base="xs:Name">
1992 <xs:pattern value="[\i-[:]][\c-[:]]*" id="NCName.pattern">
1993 <xs:annotation>
1994 <xs:documentation
1995 source="http://www.w3.org/TR/REC-xml-names/#NT-NCName">
1996 pattern matches production 4 from the Namespaces in XML spec
1997 </xs:documentation>
1998 </xs:annotation>
1999 </xs:pattern>
2000 </xs:restriction>
2001 </xs:simpleType>
2002
2003 <xs:simpleType name="ID" id="ID">
2004 <xs:annotation>
2005 <xs:documentation
2006 source="http://www.w3.org/TR/xmlschema-2/#ID"/>
2007 </xs:annotation>
2008 <xs:restriction base="xs:NCName"/>
2009 </xs:simpleType>
2010
2011 <xs:simpleType name="IDREF" id="IDREF">
2012 <xs:annotation>
2013 <xs:documentation
2014 source="http://www.w3.org/TR/xmlschema-2/#IDREF"/>
2015 </xs:annotation>
2016 <xs:restriction base="xs:NCName"/>
2017 </xs:simpleType>
2018
2019 <xs:simpleType name="ENTITY" id="ENTITY">
2020 <xs:annotation>
2021 <xs:documentation
2022 source="http://www.w3.org/TR/xmlschema-2/#ENTITY"/>
2023 </xs:annotation>
2024 <xs:restriction base="xs:NCName"/>
2025 </xs:simpleType>
2026
2027 <xs:simpleType name="integer" id="integer">
2028 <xs:annotation>
2029 <xs:documentation
2030 source="http://www.w3.org/TR/xmlschema-2/#integer"/>
2031 </xs:annotation>
2032 <xs:restriction base="xs:decimal">
2033 <xs:fractionDigits value="0" fixed="true" id="integer.fractionDigits"/>
2034 <xs:pattern value="[\-+]?[0-9]+"/>
2035 </xs:restriction>
2036 </xs:simpleType>
2037
2038 <xs:simpleType name="nonPositiveInteger" id="nonPositiveInteger">
2039 <xs:annotation>
2040 <xs:documentation
2041 source="http://www.w3.org/TR/xmlschema-2/#nonPositiveInteger"/>
2042 </xs:annotation>
2043 <xs:restriction base="xs:integer">
2044 <xs:maxInclusive value="0" id="nonPositiveInteger.maxInclusive"/>
2045 </xs:restriction>
2046 </xs:simpleType>
2047
2048 <xs:simpleType name="negativeInteger" id="negativeInteger">
2049 <xs:annotation>
2050 <xs:documentation
2051 source="http://www.w3.org/TR/xmlschema-2/#negativeInteger"/>
2052 </xs:annotation>
2053 <xs:restriction base="xs:nonPositiveInteger">
2054 <xs:maxInclusive value="-1" id="negativeInteger.maxInclusive"/>
2055 </xs:restriction>
2056 </xs:simpleType>
2057
2058 <xs:simpleType name="long" id="long">
2059 <xs:annotation>
2060 <xs:appinfo>
2061 <hfp:hasProperty name="bounded" value="true"/>
2062 <hfp:hasProperty name="cardinality" value="finite"/>
2063 </xs:appinfo>
2064 <xs:documentation
2065 source="http://www.w3.org/TR/xmlschema-2/#long"/>
2066 </xs:annotation>
2067 <xs:restriction base="xs:integer">
2068 <xs:minInclusive value="-9223372036854775808" id="long.minInclusive"/>
2069 <xs:maxInclusive value="9223372036854775807" id="long.maxInclusive"/>
2070 </xs:restriction>
2071 </xs:simpleType>
2072
2073 <xs:simpleType name="int" id="int">
2074 <xs:annotation>
2075 <xs:documentation
2076 source="http://www.w3.org/TR/xmlschema-2/#int"/>
2077 </xs:annotation>
2078 <xs:restriction base="xs:long">
2079 <xs:minInclusive value="-2147483648" id="int.minInclusive"/>
2080 <xs:maxInclusive value="2147483647" id="int.maxInclusive"/>
2081 </xs:restriction>
2082 </xs:simpleType>
2083
2084 <xs:simpleType name="short" id="short">
2085 <xs:annotation>
2086 <xs:documentation
2087 source="http://www.w3.org/TR/xmlschema-2/#short"/>
2088 </xs:annotation>
2089 <xs:restriction base="xs:int">
2090 <xs:minInclusive value="-32768" id="short.minInclusive"/>
2091 <xs:maxInclusive value="32767" id="short.maxInclusive"/>
2092 </xs:restriction>
2093 </xs:simpleType>
2094
2095 <xs:simpleType name="byte" id="byte">
2096 <xs:annotation>
2097 <xs:documentation
2098 source="http://www.w3.org/TR/xmlschema-2/#byte"/>
2099 </xs:annotation>
2100 <xs:restriction base="xs:short">
2101 <xs:minInclusive value="-128" id="byte.minInclusive"/>
2102 <xs:maxInclusive value="127" id="byte.maxInclusive"/>
2103 </xs:restriction>
2104 </xs:simpleType>
2105
2106 <xs:simpleType name="nonNegativeInteger" id="nonNegativeInteger">
2107 <xs:annotation>
2108 <xs:documentation
2109 source="http://www.w3.org/TR/xmlschema-2/#nonNegativeInteger"/>
2110 </xs:annotation>
2111 <xs:restriction base="xs:integer">
2112 <xs:minInclusive value="0" id="nonNegativeInteger.minInclusive"/>
2113 </xs:restriction>
2114 </xs:simpleType>
2115
2116 <xs:simpleType name="unsignedLong" id="unsignedLong">
2117 <xs:annotation>
2118 <xs:appinfo>
2119 <hfp:hasProperty name="bounded" value="true"/>
2120 <hfp:hasProperty name="cardinality" value="finite"/>
2121 </xs:appinfo>
2122 <xs:documentation
2123 source="http://www.w3.org/TR/xmlschema-2/#unsignedLong"/>
2124 </xs:annotation>
2125 <xs:restriction base="xs:nonNegativeInteger">
2126 <xs:maxInclusive value="18446744073709551615"
2127 id="unsignedLong.maxInclusive"/>
2128 </xs:restriction>
2129 </xs:simpleType>
2130
2131 <xs:simpleType name="unsignedInt" id="unsignedInt">
2132 <xs:annotation>
2133 <xs:documentation
2134 source="http://www.w3.org/TR/xmlschema-2/#unsignedInt"/>
2135 </xs:annotation>
2136 <xs:restriction base="xs:unsignedLong">
2137 <xs:maxInclusive value="4294967295"
2138 id="unsignedInt.maxInclusive"/>
2139 </xs:restriction>
2140 </xs:simpleType>
2141
2142 <xs:simpleType name="unsignedShort" id="unsignedShort">
2143 <xs:annotation>
2144 <xs:documentation
2145 source="http://www.w3.org/TR/xmlschema-2/#unsignedShort"/>
2146 </xs:annotation>
2147 <xs:restriction base="xs:unsignedInt">
2148 <xs:maxInclusive value="65535"
2149 id="unsignedShort.maxInclusive"/>
2150 </xs:restriction>
2151 </xs:simpleType>
2152
2153 <xs:simpleType name="unsignedByte" id="unsignedByte">
2154 <xs:annotation>
2155 <xs:documentation
2156 source="http://www.w3.org/TR/xmlschema-2/#unsignedByte"/>
2157 </xs:annotation>
2158 <xs:restriction base="xs:unsignedShort">
2159 <xs:maxInclusive value="255" id="unsignedByte.maxInclusive"/>
2160 </xs:restriction>
2161 </xs:simpleType>
2162
2163 <xs:simpleType name="positiveInteger" id="positiveInteger">
2164 <xs:annotation>
2165 <xs:documentation
2166 source="http://www.w3.org/TR/xmlschema-2/#positiveInteger"/>
2167 </xs:annotation>
2168 <xs:restriction base="xs:nonNegativeInteger">
2169 <xs:minInclusive value="1" id="positiveInteger.minInclusive"/>
2170 </xs:restriction>
2171 </xs:simpleType>
2172
2173 <xs:simpleType name="derivationControl">
2174 <xs:annotation>
2175 <xs:documentation>
2176 A utility type, not for public use</xs:documentation>
2177 </xs:annotation>
2178 <xs:restriction base="xs:NMTOKEN">
2179 <xs:enumeration value="substitution"/>
2180 <xs:enumeration value="extension"/>
2181 <xs:enumeration value="restriction"/>
2182 <xs:enumeration value="list"/>
2183 <xs:enumeration value="union"/>
2184 </xs:restriction>
2185 </xs:simpleType>
2186
2187 <xs:group name="simpleDerivation">
2188 <xs:choice>
2189 <xs:element ref="xs:restriction"/>
2190 <xs:element ref="xs:list"/>
2191 <xs:element ref="xs:union"/>
2192 </xs:choice>
2193 </xs:group>
2194
2195 <xs:simpleType name="simpleDerivationSet">
2196 <xs:annotation>
2197 <xs:documentation>
2198 #all or (possibly empty) subset of {restriction, union, list}
2199 </xs:documentation>
2200 <xs:documentation>
2201 A utility type, not for public use</xs:documentation>
2202 </xs:annotation>
2203 <xs:union>
2204 <xs:simpleType>
2205 <xs:restriction base="xs:token">
2206 <xs:enumeration value="#all"/>
2207 </xs:restriction>
2208 </xs:simpleType>
2209 <xs:simpleType>
2210 <xs:list>
2211 <xs:simpleType>
2212 <xs:restriction base="xs:derivationControl">
2213 <xs:enumeration value="list"/>
2214 <xs:enumeration value="union"/>
2215 <xs:enumeration value="restriction"/>
2216 </xs:restriction>
2217 </xs:simpleType>
2218 </xs:list>
2219 </xs:simpleType>
2220 </xs:union>
2221 </xs:simpleType>
2222
2223 <xs:complexType name="simpleType" abstract="true">
2224 <xs:complexContent>
2225 <xs:extension base="xs:annotated">
2226 <xs:group ref="xs:simpleDerivation"/>
2227 <xs:attribute name="final" type="xs:simpleDerivationSet"/>
2228 <xs:attribute name="name" type="xs:NCName">
2229 <xs:annotation>
2230 <xs:documentation>
2231 Can be restricted to required or forbidden
2232 </xs:documentation>
2233 </xs:annotation>
2234 </xs:attribute>
2235 </xs:extension>
2236 </xs:complexContent>
2237 </xs:complexType>
2238
2239 <xs:complexType name="topLevelSimpleType">
2240 <xs:complexContent>
2241 <xs:restriction base="xs:simpleType">
2242 <xs:sequence>
2243 <xs:element ref="xs:annotation" minOccurs="0"/>
2244 <xs:group ref="xs:simpleDerivation"/>
2245 </xs:sequence>
2246 <xs:attribute name="name" use="required"
2247 type="xs:NCName">
2248 <xs:annotation>
2249 <xs:documentation>
2250 Required at the top level
2251 </xs:documentation>
2252 </xs:annotation>
2253 </xs:attribute>
2254 <xs:anyAttribute namespace="##other" processContents="lax"/>
2255 </xs:restriction>
2256 </xs:complexContent>
2257 </xs:complexType>
2258
2259 <xs:complexType name="localSimpleType">
2260 <xs:complexContent>
2261 <xs:restriction base="xs:simpleType">
2262 <xs:sequence>
2263 <xs:element ref="xs:annotation" minOccurs="0"/>
2264 <xs:group ref="xs:simpleDerivation"/>
2265 </xs:sequence>
2266 <xs:attribute name="name" use="prohibited">
2267 <xs:annotation>
2268 <xs:documentation>
2269 Forbidden when nested
2270 </xs:documentation>
2271 </xs:annotation>
2272 </xs:attribute>
2273 <xs:attribute name="final" use="prohibited"/>
2274 <xs:anyAttribute namespace="##other" processContents="lax"/>
2275 </xs:restriction>
2276 </xs:complexContent>
2277 </xs:complexType>
2278
2279 <xs:element name="simpleType" type="xs:topLevelSimpleType" id="simpleType">
2280 <xs:annotation>
2281 <xs:documentation
2282 source="http://www.w3.org/TR/xmlschema-2/#element-simpleType"/>
2283 </xs:annotation>
2284 </xs:element>
2285
2286 <xs:group name="facets">
2287 <xs:annotation>
2288 <xs:documentation>
2289 We should use a substitution group for facets, but
2290 that's ruled out because it would allow users to
2291 add their own, which we're not ready for yet.
2292 </xs:documentation>
2293 </xs:annotation>
2294 <xs:choice>
2295 <xs:element ref="xs:minExclusive"/>
2296 <xs:element ref="xs:minInclusive"/>
2297 <xs:element ref="xs:maxExclusive"/>
2298 <xs:element ref="xs:maxInclusive"/>
2299 <xs:element ref="xs:totalDigits"/>
2300 <xs:element ref="xs:fractionDigits"/>
2301 <xs:element ref="xs:length"/>
2302 <xs:element ref="xs:minLength"/>
2303 <xs:element ref="xs:maxLength"/>
2304 <xs:element ref="xs:enumeration"/>
2305 <xs:element ref="xs:whiteSpace"/>
2306 <xs:element ref="xs:pattern"/>
2307 </xs:choice>
2308 </xs:group>
2309
2310 <xs:group name="simpleRestrictionModel">
2311 <xs:sequence>
2312 <xs:element name="simpleType" type="xs:localSimpleType" minOccurs="0"/>
2313 <xs:group ref="xs:facets" minOccurs="0" maxOccurs="unbounded"/>
2314 </xs:sequence>
2315 </xs:group>
2316
2317 <xs:element name="restriction" id="restriction">
2318 <xs:complexType>
2319 <xs:annotation>
2320 <xs:documentation
2321 source="http://www.w3.org/TR/xmlschema-2/#element-restriction">
2322 base attribute and simpleType child are mutually
2323 exclusive, but one or other is required
2324 </xs:documentation>
2325 </xs:annotation>
2326 <xs:complexContent>
2327 <xs:extension base="xs:annotated">
2328 <xs:group ref="xs:simpleRestrictionModel"/>
2329 <xs:attribute name="base" type="xs:QName" use="optional"/>
2330 </xs:extension>
2331 </xs:complexContent>
2332 </xs:complexType>
2333 </xs:element>
2334
2335 <xs:element name="list" id="list">
2336 <xs:complexType>
2337 <xs:annotation>
2338 <xs:documentation
2339 source="http://www.w3.org/TR/xmlschema-2/#element-list">
2340 itemType attribute and simpleType child are mutually
2341 exclusive, but one or other is required
2342 </xs:documentation>
2343 </xs:annotation>
2344 <xs:complexContent>
2345 <xs:extension base="xs:annotated">
2346 <xs:sequence>
2347 <xs:element name="simpleType" type="xs:localSimpleType"
2348 minOccurs="0"/>
2349 </xs:sequence>
2350 <xs:attribute name="itemType" type="xs:QName" use="optional"/>
2351 </xs:extension>
2352 </xs:complexContent>
2353 </xs:complexType>
2354 </xs:element>
2355
2356 <xs:element name="union" id="union">
2357 <xs:complexType>
2358 <xs:annotation>
2359 <xs:documentation
2360 source="http://www.w3.org/TR/xmlschema-2/#element-union">
2361 memberTypes attribute must be non-empty or there must be
2362 at least one simpleType child
2363 </xs:documentation>
2364 </xs:annotation>
2365 <xs:complexContent>
2366 <xs:extension base="xs:annotated">
2367 <xs:sequence>
2368 <xs:element name="simpleType" type="xs:localSimpleType"
2369 minOccurs="0" maxOccurs="unbounded"/>
2370 </xs:sequence>
2371 <xs:attribute name="memberTypes" use="optional">
2372 <xs:simpleType>
2373 <xs:list itemType="xs:QName"/>
2374 </xs:simpleType>
2375 </xs:attribute>
2376 </xs:extension>
2377 </xs:complexContent>
2378 </xs:complexType>
2379 </xs:element>
2380
2381 <xs:complexType name="facet">
2382 <xs:complexContent>
2383 <xs:extension base="xs:annotated">
2384 <xs:attribute name="value" use="required"/>
2385 <xs:attribute name="fixed" type="xs:boolean" use="optional"
2386 default="false"/>
2387 </xs:extension>
2388 </xs:complexContent>
2389 </xs:complexType>
2390
2391 <xs:complexType name="noFixedFacet">
2392 <xs:complexContent>
2393 <xs:restriction base="xs:facet">
2394 <xs:sequence>
2395 <xs:element ref="xs:annotation" minOccurs="0"/>
2396 </xs:sequence>
2397 <xs:attribute name="fixed" use="prohibited"/>
2398 <xs:anyAttribute namespace="##other" processContents="lax"/>
2399 </xs:restriction>
2400 </xs:complexContent>
2401 </xs:complexType>
2402
2403 <xs:element name="minExclusive" id="minExclusive" type="xs:facet">
2404 <xs:annotation>
2405 <xs:documentation
2406 source="http://www.w3.org/TR/xmlschema-2/#element-minExclusive"/>
2407 </xs:annotation>
2408 </xs:element>
2409 <xs:element name="minInclusive" id="minInclusive" type="xs:facet">
2410 <xs:annotation>
2411 <xs:documentation
2412 source="http://www.w3.org/TR/xmlschema-2/#element-minInclusive"/>
2413 </xs:annotation>
2414 </xs:element>
2415
2416 <xs:element name="maxExclusive" id="maxExclusive" type="xs:facet">
2417 <xs:annotation>
2418 <xs:documentation
2419 source="http://www.w3.org/TR/xmlschema-2/#element-maxExclusive"/>
2420 </xs:annotation>
2421 </xs:element>
2422 <xs:element name="maxInclusive" id="maxInclusive" type="xs:facet">
2423 <xs:annotation>
2424 <xs:documentation
2425 source="http://www.w3.org/TR/xmlschema-2/#element-maxInclusive"/>
2426 </xs:annotation>
2427 </xs:element>
2428
2429 <xs:complexType name="numFacet">
2430 <xs:complexContent>
2431 <xs:restriction base="xs:facet">
2432 <xs:sequence>
2433 <xs:element ref="xs:annotation" minOccurs="0"/>
2434 </xs:sequence>
2435 <xs:attribute name="value" type="xs:nonNegativeInteger" use="required"/>
2436 <xs:anyAttribute namespace="##other" processContents="lax"/>
2437 </xs:restriction>
2438 </xs:complexContent>
2439 </xs:complexType>
2440
2441 <xs:element name="totalDigits" id="totalDigits">
2442 <xs:annotation>
2443 <xs:documentation
2444 source="http://www.w3.org/TR/xmlschema-2/#element-totalDigits"/>
2445 </xs:annotation>
2446 <xs:complexType>
2447 <xs:complexContent>
2448 <xs:restriction base="xs:numFacet">
2449 <xs:sequence>
2450 <xs:element ref="xs:annotation" minOccurs="0"/>
2451 </xs:sequence>
2452 <xs:attribute name="value" type="xs:positiveInteger" use="required"/>
2453 <xs:anyAttribute namespace="##other" processContents="lax"/>
2454 </xs:restriction>
2455 </xs:complexContent>
2456 </xs:complexType>
2457 </xs:element>
2458 <xs:element name="fractionDigits" id="fractionDigits" type="xs:numFacet">
2459 <xs:annotation>
2460 <xs:documentation
2461 source="http://www.w3.org/TR/xmlschema-2/#element-fractionDigits"/>
2462 </xs:annotation>
2463 </xs:element>
2464
2465 <xs:element name="length" id="length" type="xs:numFacet">
2466 <xs:annotation>
2467 <xs:documentation
2468 source="http://www.w3.org/TR/xmlschema-2/#element-length"/>
2469 </xs:annotation>
2470 </xs:element>
2471 <xs:element name="minLength" id="minLength" type="xs:numFacet">
2472 <xs:annotation>
2473 <xs:documentation
2474 source="http://www.w3.org/TR/xmlschema-2/#element-minLength"/>
2475 </xs:annotation>
2476 </xs:element>
2477 <xs:element name="maxLength" id="maxLength" type="xs:numFacet">
2478 <xs:annotation>
2479 <xs:documentation
2480 source="http://www.w3.org/TR/xmlschema-2/#element-maxLength"/>
2481 </xs:annotation>
2482 </xs:element>
2483
2484 <xs:element name="enumeration" id="enumeration" type="xs:noFixedFacet">
2485 <xs:annotation>
2486 <xs:documentation
2487 source="http://www.w3.org/TR/xmlschema-2/#element-enumeration"/>
2488 </xs:annotation>
2489 </xs:element>
2490
2491 <xs:element name="whiteSpace" id="whiteSpace">
2492 <xs:annotation>
2493 <xs:documentation
2494 source="http://www.w3.org/TR/xmlschema-2/#element-whiteSpace"/>
2495 </xs:annotation>
2496 <xs:complexType>
2497 <xs:complexContent>
2498 <xs:restriction base="xs:facet">
2499 <xs:sequence>
2500 <xs:element ref="xs:annotation" minOccurs="0"/>
2501 </xs:sequence>
2502 <xs:attribute name="value" use="required">
2503 <xs:simpleType>
2504 <xs:restriction base="xs:NMTOKEN">
2505 <xs:enumeration value="preserve"/>
2506 <xs:enumeration value="replace"/>
2507 <xs:enumeration value="collapse"/>
2508 </xs:restriction>
2509 </xs:simpleType>
2510 </xs:attribute>
2511 <xs:anyAttribute namespace="##other" processContents="lax"/>
2512 </xs:restriction>
2513 </xs:complexContent>
2514 </xs:complexType>
2515 </xs:element>
2516
2517 <xs:element name="pattern" id="pattern">
2518 <xs:annotation>
2519 <xs:documentation
2520 source="http://www.w3.org/TR/xmlschema-2/#element-pattern"/>
2521 </xs:annotation>
2522 <xs:complexType>
2523 <xs:complexContent>
2524 <xs:restriction base="xs:noFixedFacet">
2525 <xs:sequence>
2526 <xs:element ref="xs:annotation" minOccurs="0"/>
2527 </xs:sequence>
2528 <xs:attribute name="value" type="xs:string" use="required"/>
2529 <xs:anyAttribute namespace="##other" processContents="lax"/>
2530 </xs:restriction>
2531 </xs:complexContent>
2532 </xs:complexType>
2533 </xs:element>
2534
2535 </xs:schema>