Debian Codegraph @

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