xml-schema-primitives.xsl 184 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  4. xmlns:p5Type="https://biuro.biall-net.pl/wfs/p5Type"
  5. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  6. xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty"
  7. exclude-result-prefixes="xs"
  8. version="2.0">
  9. <xsl:include href="../Types/types.variable.xsl"/>
  10. <xsl:include href="../Types/p5.variable.xsl"/>
  11. <xsl:include href="../Types/SVG.variable.xsl"/>
  12. <xsl:include href="../Types/xlink.variable.xsl"/>
  13. <xsl:include href="../SystemObjects/xml.variable.xsl"/>
  14. <xsl:variable name="system_cache__appinfo:primitives.xsd">
  15. <!-- xmlns:p5="https://biuro.biall-net.pl/wfs" and xmlns:p5Type="https://biuro.biall-net.pl/wfs/p5Type" -->
  16. <xs:schema xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty"
  17. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  18. elementFormDefault="qualified"
  19. xml:lang="en"
  20. targetNamespace="http://www.w3.org/2001/XMLSchema">
  21. <xs:annotation>
  22. <xs:documentation>
  23. This document contains XML elements which look like
  24. definitions for the primitive datatypes. These definitions are for
  25. information only; the real built-in definitions are magic.
  26. </xs:documentation>
  27. <xs:documentation>
  28. For each built-in datatype in this schema (both primitive and
  29. derived) can be uniquely addressed via a URI constructed
  30. as follows:
  31. 1) the base URI is the URI of the XML Schema namespace
  32. 2) the fragment identifier is the name of the datatype
  33. For example, to address the int datatype, the URI is:
  34. http://www.w3.org/2001/XMLSchema#int
  35. Additionally, each facet definition element can be uniquely
  36. addressed via a URI constructed as follows:
  37. 1) the base URI is the URI of the XML Schema namespace
  38. 2) the fragment identifier is the name of the facet
  39. For example, to address the maxInclusive facet, the URI is:
  40. http://www.w3.org/2001/XMLSchema#maxInclusive
  41. Additionally, each facet usage in a built-in datatype definition
  42. can be uniquely addressed via a URI constructed as follows:
  43. 1) the base URI is the URI of the XML Schema namespace
  44. 2) the fragment identifier is the name of the datatype, followed
  45. by a period (".") followed by the name of the facet
  46. For example, to address the usage of the maxInclusive facet in
  47. the definition of int, the URI is:
  48. http://www.w3.org/2001/XMLSchema#int.maxInclusive
  49. </xs:documentation>
  50. </xs:annotation>
  51. <xs:simpleType name="string" id="string">
  52. <xs:annotation>
  53. <xs:appinfo>
  54. <hfp:hasFacet name="length"/>
  55. <hfp:hasFacet name="minLength"/>
  56. <hfp:hasFacet name="maxLength"/>
  57. <hfp:hasFacet name="pattern"/>
  58. <hfp:hasFacet name="enumeration"/>
  59. <hfp:hasFacet name="whiteSpace"/>
  60. <hfp:hasFacet name="assertions"/>
  61. <hfp:hasProperty name="ordered" value="false"/>
  62. <hfp:hasProperty name="bounded" value="false"/>
  63. <hfp:hasProperty name="cardinality" value="countably infinite"/>
  64. <hfp:hasProperty name="numeric" value="false"/>
  65. </xs:appinfo>
  66. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#string">Built-in primitive type.
  67. The string datatype represents character strings in XML.</xs:documentation>
  68. </xs:annotation>
  69. <xs:restriction base="xs:anyAtomicType">
  70. <xs:whiteSpace value="preserve" id="string.whiteSpace"/>
  71. </xs:restriction>
  72. </xs:simpleType>
  73. <xs:simpleType name="boolean" id="boolean">
  74. <xs:annotation>
  75. <xs:appinfo>
  76. <hfp:hasFacet name="pattern"/>
  77. <hfp:hasFacet name="whiteSpace"/>
  78. <hfp:hasFacet name="assertions"/>
  79. <hfp:hasProperty name="ordered" value="false"/>
  80. <hfp:hasProperty name="bounded" value="false"/>
  81. <hfp:hasProperty name="cardinality" value="finite"/>
  82. <hfp:hasProperty name="numeric" value="false"/>
  83. </xs:appinfo>
  84. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#boolean">Built-in primitive type.
  85. It defines the boolean values true and false.</xs:documentation>
  86. </xs:annotation>
  87. <xs:restriction base="xs:anyAtomicType">
  88. <xs:whiteSpace fixed="true" value="collapse" id="boolean.whiteSpace"/>
  89. </xs:restriction>
  90. </xs:simpleType>
  91. <xs:simpleType name="float" id="float">
  92. <xs:annotation>
  93. <xs:appinfo>
  94. <hfp:hasFacet name="pattern"/>
  95. <hfp:hasFacet name="enumeration"/>
  96. <hfp:hasFacet name="whiteSpace"/>
  97. <hfp:hasFacet name="maxInclusive"/>
  98. <hfp:hasFacet name="maxExclusive"/>
  99. <hfp:hasFacet name="minInclusive"/>
  100. <hfp:hasFacet name="minExclusive"/>
  101. <hfp:hasFacet name="assertions"/>
  102. <hfp:hasProperty name="ordered" value="partial"/>
  103. <hfp:hasProperty name="bounded" value="true"/>
  104. <hfp:hasProperty name="cardinality" value="finite"/>
  105. <hfp:hasProperty name="numeric" value="true"/>
  106. </xs:appinfo>
  107. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#float">Built-in primitive type.
  108. Corresponds to the IEEE single-precision 32-bit floating point type [IEEE 754-1985].</xs:documentation>
  109. </xs:annotation>
  110. <xs:restriction base="xs:anyAtomicType">
  111. <xs:whiteSpace fixed="true" value="collapse" id="float.whiteSpace"/>
  112. </xs:restriction>
  113. </xs:simpleType>
  114. <xs:simpleType name="double" id="double">
  115. <xs:annotation>
  116. <xs:appinfo>
  117. <hfp:hasFacet name="pattern"/>
  118. <hfp:hasFacet name="enumeration"/>
  119. <hfp:hasFacet name="whiteSpace"/>
  120. <hfp:hasFacet name="maxInclusive"/>
  121. <hfp:hasFacet name="maxExclusive"/>
  122. <hfp:hasFacet name="minInclusive"/>
  123. <hfp:hasFacet name="minExclusive"/>
  124. <hfp:hasFacet name="assertions"/>
  125. <hfp:hasProperty name="ordered" value="partial"/>
  126. <hfp:hasProperty name="bounded" value="true"/>
  127. <hfp:hasProperty name="cardinality" value="finite"/>
  128. <hfp:hasProperty name="numeric" value="true"/>
  129. </xs:appinfo>
  130. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#double">Built-in primitive type.
  131. The double datatype corresponds to IEEE double-precision 64-bit floating point type [IEEE 754-1985].</xs:documentation>
  132. </xs:annotation>
  133. <xs:restriction base="xs:anyAtomicType">
  134. <xs:whiteSpace fixed="true" value="collapse" id="double.whiteSpace"/>
  135. </xs:restriction>
  136. </xs:simpleType>
  137. <xs:simpleType name="decimal" id="decimal">
  138. <xs:annotation>
  139. <xs:appinfo>
  140. <hfp:hasFacet name="totalDigits"/>
  141. <hfp:hasFacet name="fractionDigits"/>
  142. <hfp:hasFacet name="pattern"/>
  143. <hfp:hasFacet name="whiteSpace"/>
  144. <hfp:hasFacet name="enumeration"/>
  145. <hfp:hasFacet name="maxInclusive"/>
  146. <hfp:hasFacet name="maxExclusive"/>
  147. <hfp:hasFacet name="minInclusive"/>
  148. <hfp:hasFacet name="minExclusive"/>
  149. <hfp:hasFacet name="assertions"/>
  150. <hfp:hasProperty name="ordered" value="total"/>
  151. <hfp:hasProperty name="bounded" value="false"/>
  152. <hfp:hasProperty name="cardinality" value="countably infinite"/>
  153. <hfp:hasProperty name="numeric" value="true"/>
  154. </xs:appinfo>
  155. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#decimal">Built-in primitive type.
  156. The decimal datatype represents arbitrary precision decimal numbers.</xs:documentation>
  157. </xs:annotation>
  158. <xs:restriction base="xs:anyAtomicType">
  159. <xs:whiteSpace fixed="true" value="collapse" id="decimal.whiteSpace"/>
  160. </xs:restriction>
  161. </xs:simpleType>
  162. <xs:simpleType name="duration" id="duration">
  163. <xs:annotation>
  164. <xs:appinfo>
  165. <hfp:hasFacet name="pattern"/>
  166. <hfp:hasFacet name="enumeration"/>
  167. <hfp:hasFacet name="whiteSpace"/>
  168. <hfp:hasFacet name="maxInclusive"/>
  169. <hfp:hasFacet name="maxExclusive"/>
  170. <hfp:hasFacet name="minInclusive"/>
  171. <hfp:hasFacet name="minExclusive"/>
  172. <hfp:hasFacet name="assertions"/>
  173. <hfp:hasProperty name="ordered" value="partial"/>
  174. <hfp:hasProperty name="bounded" value="false"/>
  175. <hfp:hasProperty name="cardinality" value="countably infinite"/>
  176. <hfp:hasProperty name="numeric" value="false"/>
  177. </xs:appinfo>
  178. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#duration">Built-in primitive type.
  179. The duration datatype represents a duration of time.</xs:documentation>
  180. </xs:annotation>
  181. <xs:restriction base="xs:anyAtomicType">
  182. <xs:whiteSpace fixed="true" value="collapse" id="duration.whiteSpace"/>
  183. </xs:restriction>
  184. </xs:simpleType>
  185. <xs:simpleType name="dateTime" id="dateTime">
  186. <xs:annotation>
  187. <xs:appinfo>
  188. <hfp:hasFacet name="pattern"/>
  189. <hfp:hasFacet name="enumeration"/>
  190. <hfp:hasFacet name="whiteSpace"/>
  191. <hfp:hasFacet name="maxInclusive"/>
  192. <hfp:hasFacet name="maxExclusive"/>
  193. <hfp:hasFacet name="minInclusive"/>
  194. <hfp:hasFacet name="minExclusive"/>
  195. <hfp:hasFacet name="assertions"/>
  196. <hfp:hasFacet name="explicitTimezone"/>
  197. <hfp:hasProperty name="ordered" value="partial"/>
  198. <hfp:hasProperty name="bounded" value="false"/>
  199. <hfp:hasProperty name="cardinality" value="countably infinite"/>
  200. <hfp:hasProperty name="numeric" value="false"/>
  201. </xs:appinfo>
  202. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#dateTime">Built-in primitive type.
  203. The dateTime datatype represents a specific instant of time.</xs:documentation>
  204. </xs:annotation>
  205. <xs:restriction base="xs:anyAtomicType">
  206. <xs:whiteSpace fixed="true" value="collapse" id="dateTime.whiteSpace"/>
  207. <xs:explicitTimezone value="optional" id="dateTime.explicitTimezone"/>
  208. </xs:restriction>
  209. </xs:simpleType>
  210. <xs:simpleType name="time" id="time">
  211. <xs:annotation>
  212. <xs:appinfo>
  213. <hfp:hasFacet name="pattern"/>
  214. <hfp:hasFacet name="enumeration"/>
  215. <hfp:hasFacet name="whiteSpace"/>
  216. <hfp:hasFacet name="maxInclusive"/>
  217. <hfp:hasFacet name="maxExclusive"/>
  218. <hfp:hasFacet name="minInclusive"/>
  219. <hfp:hasFacet name="minExclusive"/>
  220. <hfp:hasFacet name="assertions"/>
  221. <hfp:hasFacet name="explicitTimezone"/>
  222. <hfp:hasProperty name="ordered" value="partial"/>
  223. <hfp:hasProperty name="bounded" value="false"/>
  224. <hfp:hasProperty name="cardinality" value="countably infinite"/>
  225. <hfp:hasProperty name="numeric" value="false"/>
  226. </xs:appinfo>
  227. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#time">Built-in primitive type.
  228. The time datatype represents an instant of time that recurs every day.</xs:documentation>
  229. </xs:annotation>
  230. <xs:restriction base="xs:anyAtomicType">
  231. <xs:whiteSpace fixed="true" value="collapse" id="time.whiteSpace"/>
  232. <xs:explicitTimezone value="optional" id="time.explicitTimezone"/>
  233. </xs:restriction>
  234. </xs:simpleType>
  235. <xs:simpleType name="date" id="date">
  236. <xs:annotation>
  237. <xs:appinfo>
  238. <hfp:hasFacet name="pattern"/>
  239. <hfp:hasFacet name="enumeration"/>
  240. <hfp:hasFacet name="whiteSpace"/>
  241. <hfp:hasFacet name="maxInclusive"/>
  242. <hfp:hasFacet name="maxExclusive"/>
  243. <hfp:hasFacet name="minInclusive"/>
  244. <hfp:hasFacet name="minExclusive"/>
  245. <hfp:hasFacet name="assertions"/>
  246. <hfp:hasFacet name="explicitTimezone"/>
  247. <hfp:hasProperty name="ordered" value="partial"/>
  248. <hfp:hasProperty name="bounded" value="false"/>
  249. <hfp:hasProperty name="cardinality" value="countably infinite"/>
  250. <hfp:hasProperty name="numeric" value="false"/>
  251. </xs:appinfo>
  252. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#date">Built-in primitive type.
  253. The date datatype represents a calendar date.</xs:documentation>
  254. </xs:annotation>
  255. <xs:restriction base="xs:anyAtomicType">
  256. <xs:whiteSpace fixed="true" value="collapse" id="date.whiteSpace"/>
  257. <xs:explicitTimezone value="optional" id="date.explicitTimezone"/>
  258. </xs:restriction>
  259. </xs:simpleType>
  260. <xs:simpleType name="gYearMonth" id="gYearMonth">
  261. <xs:annotation>
  262. <xs:appinfo>
  263. <hfp:hasFacet name="pattern"/>
  264. <hfp:hasFacet name="enumeration"/>
  265. <hfp:hasFacet name="whiteSpace"/>
  266. <hfp:hasFacet name="maxInclusive"/>
  267. <hfp:hasFacet name="maxExclusive"/>
  268. <hfp:hasFacet name="minInclusive"/>
  269. <hfp:hasFacet name="minExclusive"/>
  270. <hfp:hasFacet name="assertions"/>
  271. <hfp:hasFacet name="explicitTimezone"/>
  272. <hfp:hasProperty name="ordered" value="partial"/>
  273. <hfp:hasProperty name="bounded" value="false"/>
  274. <hfp:hasProperty name="cardinality" value="countably infinite"/>
  275. <hfp:hasProperty name="numeric" value="false"/>
  276. </xs:appinfo>
  277. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#gYearMonth">Built-in primitive type.
  278. The gYearMonth datatype represents a specific gregorian month in a specific gregorian year.</xs:documentation>
  279. </xs:annotation>
  280. <xs:restriction base="xs:anyAtomicType">
  281. <xs:whiteSpace fixed="true" value="collapse" id="gYearMonth.whiteSpace"/>
  282. <xs:explicitTimezone value="optional" id="gYearMonth.explicitTimezone"/>
  283. </xs:restriction>
  284. </xs:simpleType>
  285. <xs:simpleType name="gYear" id="gYear">
  286. <xs:annotation>
  287. <xs:appinfo>
  288. <hfp:hasFacet name="pattern"/>
  289. <hfp:hasFacet name="enumeration"/>
  290. <hfp:hasFacet name="whiteSpace"/>
  291. <hfp:hasFacet name="maxInclusive"/>
  292. <hfp:hasFacet name="maxExclusive"/>
  293. <hfp:hasFacet name="minInclusive"/>
  294. <hfp:hasFacet name="minExclusive"/>
  295. <hfp:hasFacet name="assertions"/>
  296. <hfp:hasFacet name="explicitTimezone"/>
  297. <hfp:hasProperty name="ordered" value="partial"/>
  298. <hfp:hasProperty name="bounded" value="false"/>
  299. <hfp:hasProperty name="cardinality" value="countably infinite"/>
  300. <hfp:hasProperty name="numeric" value="false"/>
  301. </xs:appinfo>
  302. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#gYear">Built-in primitive type.
  303. The gYear datatype represents a gregorian calendar year.</xs:documentation>
  304. </xs:annotation>
  305. <xs:restriction base="xs:anyAtomicType">
  306. <xs:whiteSpace fixed="true" value="collapse" id="gYear.whiteSpace"/>
  307. <xs:explicitTimezone value="optional" id="gYear.explicitTimezone"/>
  308. </xs:restriction>
  309. </xs:simpleType>
  310. <xs:simpleType name="gMonthDay" id="gMonthDay">
  311. <xs:annotation>
  312. <xs:appinfo>
  313. <hfp:hasFacet name="pattern"/>
  314. <hfp:hasFacet name="enumeration"/>
  315. <hfp:hasFacet name="whiteSpace"/>
  316. <hfp:hasFacet name="maxInclusive"/>
  317. <hfp:hasFacet name="maxExclusive"/>
  318. <hfp:hasFacet name="minInclusive"/>
  319. <hfp:hasFacet name="minExclusive"/>
  320. <hfp:hasFacet name="assertions"/>
  321. <hfp:hasFacet name="explicitTimezone"/>
  322. <hfp:hasProperty name="ordered" value="partial"/>
  323. <hfp:hasProperty name="bounded" value="false"/>
  324. <hfp:hasProperty name="cardinality" value="countably infinite"/>
  325. <hfp:hasProperty name="numeric" value="false"/>
  326. </xs:appinfo>
  327. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#gMonthDay">Built-in primitive type.
  328. The gMonthDay datatype is a gregorian date that recurs, specifically a day of the year such as the third of May.Arbitrary recurring dates are not supported by this datatype.</xs:documentation>
  329. </xs:annotation>
  330. <xs:restriction base="xs:anyAtomicType">
  331. <xs:whiteSpace fixed="true" value="collapse" id="gMonthDay.whiteSpace"/>
  332. <xs:explicitTimezone value="optional" id="gMonthDay.explicitTimezone"/>
  333. </xs:restriction>
  334. </xs:simpleType>
  335. <xs:simpleType name="gDay" id="gDay">
  336. <xs:annotation>
  337. <xs:appinfo>
  338. <hfp:hasFacet name="pattern"/>
  339. <hfp:hasFacet name="enumeration"/>
  340. <hfp:hasFacet name="whiteSpace"/>
  341. <hfp:hasFacet name="maxInclusive"/>
  342. <hfp:hasFacet name="maxExclusive"/>
  343. <hfp:hasFacet name="minInclusive"/>
  344. <hfp:hasFacet name="minExclusive"/>
  345. <hfp:hasFacet name="assertions"/>
  346. <hfp:hasFacet name="explicitTimezone"/>
  347. <hfp:hasProperty name="ordered" value="partial"/>
  348. <hfp:hasProperty name="bounded" value="false"/>
  349. <hfp:hasProperty name="cardinality" value="countably infinite"/>
  350. <hfp:hasProperty name="numeric" value="false"/>
  351. </xs:appinfo>
  352. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#gDay">Built-in primitive type.
  353. The gDay datatype is a gregorian day that recurs, specifically a day of the month such as the 5th of the month. Arbitrary recurring days are not supported by this datatype.</xs:documentation>
  354. </xs:annotation>
  355. <xs:restriction base="xs:anyAtomicType">
  356. <xs:whiteSpace fixed="true" value="collapse" id="gDay.whiteSpace"/>
  357. <xs:explicitTimezone value="optional" id="gDay.explicitTimezone"/>
  358. </xs:restriction>
  359. </xs:simpleType>
  360. <xs:simpleType name="gMonth" id="gMonth">
  361. <xs:annotation>
  362. <xs:appinfo>
  363. <hfp:hasFacet name="pattern"/>
  364. <hfp:hasFacet name="enumeration"/>
  365. <hfp:hasFacet name="whiteSpace"/>
  366. <hfp:hasFacet name="maxInclusive"/>
  367. <hfp:hasFacet name="maxExclusive"/>
  368. <hfp:hasFacet name="minInclusive"/>
  369. <hfp:hasFacet name="minExclusive"/>
  370. <hfp:hasFacet name="assertions"/>
  371. <hfp:hasFacet name="explicitTimezone"/>
  372. <hfp:hasProperty name="ordered" value="partial"/>
  373. <hfp:hasProperty name="bounded" value="false"/>
  374. <hfp:hasProperty name="cardinality" value="countably infinite"/>
  375. <hfp:hasProperty name="numeric" value="false"/>
  376. </xs:appinfo>
  377. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#gMonth">Built-in primitive type.
  378. The gMonth datatype is a gregorian month that recurs every year.</xs:documentation>
  379. </xs:annotation>
  380. <xs:restriction base="xs:anyAtomicType">
  381. <xs:whiteSpace fixed="true" value="collapse" id="gMonth.whiteSpace"/>
  382. <xs:explicitTimezone value="optional" id="gMonth.explicitTimezone"/>
  383. </xs:restriction>
  384. </xs:simpleType>
  385. <xs:simpleType name="hexBinary" id="hexBinary">
  386. <xs:annotation>
  387. <xs:appinfo>
  388. <hfp:hasFacet name="length"/>
  389. <hfp:hasFacet name="minLength"/>
  390. <hfp:hasFacet name="maxLength"/>
  391. <hfp:hasFacet name="pattern"/>
  392. <hfp:hasFacet name="enumeration"/>
  393. <hfp:hasFacet name="whiteSpace"/>
  394. <hfp:hasFacet name="assertions"/>
  395. <hfp:hasProperty name="ordered" value="false"/>
  396. <hfp:hasProperty name="bounded" value="false"/>
  397. <hfp:hasProperty name="cardinality" value="countably infinite"/>
  398. <hfp:hasProperty name="numeric" value="false"/>
  399. </xs:appinfo>
  400. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#binary">Built-in primitive type.
  401. The hexBinary datatype represents arbitrary hex-encoded binary data.</xs:documentation>
  402. </xs:annotation>
  403. <xs:restriction base="xs:anyAtomicType">
  404. <xs:whiteSpace fixed="true" value="collapse" id="hexBinary.whiteSpace"/>
  405. </xs:restriction>
  406. </xs:simpleType>
  407. <xs:simpleType name="base64Binary" id="base64Binary">
  408. <xs:annotation>
  409. <xs:appinfo>
  410. <hfp:hasFacet name="length"/>
  411. <hfp:hasFacet name="minLength"/>
  412. <hfp:hasFacet name="maxLength"/>
  413. <hfp:hasFacet name="pattern"/>
  414. <hfp:hasFacet name="enumeration"/>
  415. <hfp:hasFacet name="whiteSpace"/>
  416. <hfp:hasFacet name="assertions"/>
  417. <hfp:hasProperty name="ordered" value="false"/>
  418. <hfp:hasProperty name="bounded" value="false"/>
  419. <hfp:hasProperty name="cardinality" value="countably infinite"/>
  420. <hfp:hasProperty name="numeric" value="false"/>
  421. </xs:appinfo>
  422. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#base64Binary">Built-in primitive type.
  423. The base64Binary datatype represents Base64-encoded arbitrary binary data.</xs:documentation>
  424. </xs:annotation>
  425. <xs:restriction base="xs:anyAtomicType">
  426. <xs:whiteSpace fixed="true" value="collapse" id="base64Binary.whiteSpace"/>
  427. </xs:restriction>
  428. </xs:simpleType>
  429. <xs:simpleType name="anyURI" id="anyURI">
  430. <xs:annotation>
  431. <xs:appinfo>
  432. <hfp:hasFacet name="length"/>
  433. <hfp:hasFacet name="minLength"/>
  434. <hfp:hasFacet name="maxLength"/>
  435. <hfp:hasFacet name="pattern"/>
  436. <hfp:hasFacet name="enumeration"/>
  437. <hfp:hasFacet name="whiteSpace"/>
  438. <hfp:hasFacet name="assertions"/>
  439. <hfp:hasProperty name="ordered" value="false"/>
  440. <hfp:hasProperty name="bounded" value="false"/>
  441. <hfp:hasProperty name="cardinality" value="countably infinite"/>
  442. <hfp:hasProperty name="numeric" value="false"/>
  443. </xs:appinfo>
  444. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#anyURI">Built-in primitive type.
  445. The anyURI datatype represents a Uniform Resource Identifier Reference (URI).</xs:documentation>
  446. </xs:annotation>
  447. <xs:restriction base="xs:anyAtomicType">
  448. <xs:whiteSpace fixed="true" value="collapse" id="anyURI.whiteSpace"/>
  449. </xs:restriction>
  450. </xs:simpleType>
  451. <xs:simpleType name="QName" id="QName">
  452. <xs:annotation>
  453. <xs:appinfo>
  454. <hfp:hasFacet name="length"/>
  455. <hfp:hasFacet name="minLength"/>
  456. <hfp:hasFacet name="maxLength"/>
  457. <hfp:hasFacet name="pattern"/>
  458. <hfp:hasFacet name="enumeration"/>
  459. <hfp:hasFacet name="whiteSpace"/>
  460. <hfp:hasFacet name="assertions"/>
  461. <hfp:hasProperty name="ordered" value="false"/>
  462. <hfp:hasProperty name="bounded" value="false"/>
  463. <hfp:hasProperty name="cardinality" value="countably infinite"/>
  464. <hfp:hasProperty name="numeric" value="false"/>
  465. </xs:appinfo>
  466. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#QName">Built-in primitive type.
  467. QName represents XML qualified names.</xs:documentation>
  468. </xs:annotation>
  469. <xs:restriction base="xs:anyAtomicType">
  470. <xs:whiteSpace fixed="true" value="collapse" id="QName.whiteSpace"/>
  471. </xs:restriction>
  472. </xs:simpleType>
  473. <xs:simpleType name="NOTATION" id="NOTATION">
  474. <xs:annotation>
  475. <xs:appinfo>
  476. <hfp:hasFacet name="length"/>
  477. <hfp:hasFacet name="minLength"/>
  478. <hfp:hasFacet name="maxLength"/>
  479. <hfp:hasFacet name="pattern"/>
  480. <hfp:hasFacet name="enumeration"/>
  481. <hfp:hasFacet name="whiteSpace"/>
  482. <hfp:hasFacet name="assertions"/>
  483. <hfp:hasProperty name="ordered" value="false"/>
  484. <hfp:hasProperty name="bounded" value="false"/>
  485. <hfp:hasProperty name="cardinality" value="countably infinite"/>
  486. <hfp:hasProperty name="numeric" value="false"/>
  487. </xs:appinfo>
  488. <xs:documentation source="http://www.w3.org/TR/xmlschema11-2/#NOTATION"/>
  489. <xs:documentation>
  490. NOTATION cannot be used directly in a schema; rather a type
  491. must be derived from it by specifying at least one enumeration
  492. facet whose value is the name of a NOTATION declared in the
  493. schema.
  494. </xs:documentation>
  495. </xs:annotation>
  496. <xs:restriction base="xs:anyAtomicType">
  497. <xs:whiteSpace fixed="true" value="collapse" id="NOTATION.whiteSpace"/>
  498. </xs:restriction>
  499. </xs:simpleType>
  500. </xs:schema>
  501. </xsl:variable>
  502. <xsl:variable name="system_cache__appinfo:derived.xsd">
  503. <xs:schema xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty"
  504. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  505. elementFormDefault="qualified"
  506. xml:lang="en"
  507. targetNamespace="http://www.w3.org/2001/XMLSchema">
  508. <xs:annotation>
  509. <xs:documentation>
  510. This document contains XML representations for the
  511. ordinary non-primitive built-in datatypes
  512. </xs:documentation>
  513. </xs:annotation>
  514. <xs:simpleType name="normalizedString" id="normalizedString">
  515. <xs:annotation>
  516. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#normalizedString">Built-in derived type.
  517. The normalizedString datatype represents white space normalized strings.
  518. The base type of normalizedString is string.</xs:documentation>
  519. </xs:annotation>
  520. <xs:restriction base="xs:string">
  521. <xs:whiteSpace value="replace" id="normalizedString.whiteSpace"/>
  522. </xs:restriction>
  523. </xs:simpleType>
  524. <xs:simpleType name="token" id="token">
  525. <xs:annotation>
  526. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#token">Built-in derived type.
  527. The token datatype represents tokenized strings.
  528. The base type of token is normalizedString.</xs:documentation>
  529. </xs:annotation>
  530. <xs:restriction base="xs:normalizedString">
  531. <xs:whiteSpace value="collapse" id="token.whiteSpace"/>
  532. </xs:restriction>
  533. </xs:simpleType>
  534. <xs:simpleType name="language" id="language">
  535. <xs:annotation>
  536. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#language">Built-in derived type.
  537. The language datatype represents natural language identifiers as defined by [RFC 1766].
  538. The base type of language is token.</xs:documentation>
  539. </xs:annotation>
  540. <xs:restriction base="xs:token">
  541. <xs:pattern value="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*" id="language.pattern">
  542. <xs:annotation>
  543. <xs:documentation source="http://www.ietf.org/rfc/bcp/bcp47.txt">
  544. pattern specifies the content of section 2.12 of XML 1.0e2
  545. and RFC 3066 (Revised version of RFC 1766). N.B. RFC 3066 is now
  546. obsolete; the grammar of RFC4646 is more restrictive. So strict
  547. conformance to the rules for language codes requires extra checking
  548. beyond validation against this type.
  549. </xs:documentation>
  550. </xs:annotation>
  551. </xs:pattern>
  552. </xs:restriction>
  553. </xs:simpleType>
  554. <xs:simpleType name="IDREFS" id="IDREFS">
  555. <xs:annotation>
  556. <xs:appinfo>
  557. <hfp:hasFacet name="length"/>
  558. <hfp:hasFacet name="minLength"/>
  559. <hfp:hasFacet name="maxLength"/>
  560. <hfp:hasFacet name="enumeration"/>
  561. <hfp:hasFacet name="whiteSpace"/>
  562. <hfp:hasFacet name="pattern"/>
  563. <hfp:hasFacet name="assertions"/>
  564. <hfp:hasProperty name="ordered" value="false"/>
  565. <hfp:hasProperty name="bounded" value="false"/>
  566. <hfp:hasProperty name="cardinality" value="countably infinite"/>
  567. <hfp:hasProperty name="numeric" value="false"/>
  568. </xs:appinfo>
  569. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#IDREFS">Built-in derived type.
  570. IDREFS represents the IDREFS attribute type.
  571. The itemType of IDREFS is IDREF.</xs:documentation>
  572. </xs:annotation>
  573. <xs:restriction>
  574. <xs:simpleType>
  575. <xs:list itemType="xs:IDREF"/>
  576. </xs:simpleType>
  577. <xs:minLength value="1" id="IDREFS.minLength"/>
  578. </xs:restriction>
  579. </xs:simpleType>
  580. <xs:simpleType name="ENTITIES" id="ENTITIES">
  581. <xs:annotation>
  582. <xs:appinfo>
  583. <hfp:hasFacet name="length"/>
  584. <hfp:hasFacet name="minLength"/>
  585. <hfp:hasFacet name="maxLength"/>
  586. <hfp:hasFacet name="enumeration"/>
  587. <hfp:hasFacet name="whiteSpace"/>
  588. <hfp:hasFacet name="pattern"/>
  589. <hfp:hasFacet name="assertions"/>
  590. <hfp:hasProperty name="ordered" value="false"/>
  591. <hfp:hasProperty name="bounded" value="false"/>
  592. <hfp:hasProperty name="cardinality" value="countably infinite"/>
  593. <hfp:hasProperty name="numeric" value="false"/>
  594. </xs:appinfo>
  595. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#ENTITIES">Built-in derived type.
  596. ENTITIES represents the ENTITIES attribute type.
  597. The itemType of ENTITIES is ENTITY.</xs:documentation>
  598. </xs:annotation>
  599. <xs:restriction>
  600. <xs:simpleType>
  601. <xs:list itemType="xs:ENTITY"/>
  602. </xs:simpleType>
  603. <xs:minLength value="1" id="ENTITIES.minLength"/>
  604. </xs:restriction>
  605. </xs:simpleType>
  606. <xs:simpleType name="NMTOKEN" id="NMTOKEN">
  607. <xs:annotation>
  608. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#NMTOKEN">Built-in derived type.
  609. NMTOKEN represents the NMTOKEN attribute type.
  610. The base type of NMTOKEN is token.</xs:documentation>
  611. </xs:annotation>
  612. <xs:restriction base="xs:token">
  613. <xs:pattern value="\c+" id="NMTOKEN.pattern">
  614. <xs:annotation>
  615. <xs:documentation source="http://www.w3.org/TR/REC-xml#NT-Nmtoken">
  616. pattern matches production 7 from the XML spec
  617. </xs:documentation>
  618. </xs:annotation>
  619. </xs:pattern>
  620. </xs:restriction>
  621. </xs:simpleType>
  622. <xs:simpleType name="NMTOKENS" id="NMTOKENS">
  623. <xs:annotation>
  624. <xs:appinfo>
  625. <hfp:hasFacet name="length"/>
  626. <hfp:hasFacet name="minLength"/>
  627. <hfp:hasFacet name="maxLength"/>
  628. <hfp:hasFacet name="enumeration"/>
  629. <hfp:hasFacet name="whiteSpace"/>
  630. <hfp:hasFacet name="pattern"/>
  631. <hfp:hasFacet name="assertions"/>
  632. <hfp:hasProperty name="ordered" value="false"/>
  633. <hfp:hasProperty name="bounded" value="false"/>
  634. <hfp:hasProperty name="cardinality" value="countably infinite"/>
  635. <hfp:hasProperty name="numeric" value="false"/>
  636. </xs:appinfo>
  637. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#NMTOKENS">Built-in derived type.
  638. NMTOKENS represents the NMTOKENS attribute type.
  639. The itemType of NMTOKENS is NMTOKEN.</xs:documentation>
  640. </xs:annotation>
  641. <xs:restriction>
  642. <xs:simpleType>
  643. <xs:list itemType="xs:NMTOKEN"/>
  644. </xs:simpleType>
  645. <xs:minLength value="1" id="NMTOKENS.minLength"/>
  646. </xs:restriction>
  647. </xs:simpleType>
  648. <xs:simpleType name="Name" id="Name">
  649. <xs:annotation>
  650. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#Name">Built-in derived type.
  651. Name represents XML Names.
  652. The base type of Name is token.</xs:documentation>
  653. </xs:annotation>
  654. <xs:restriction base="xs:token">
  655. <xs:pattern value="\i\c*" id="Name.pattern">
  656. <xs:annotation>
  657. <xs:documentation source="http://www.w3.org/TR/REC-xml#NT-Name">
  658. pattern matches production 5 from the XML spec
  659. </xs:documentation>
  660. </xs:annotation>
  661. </xs:pattern>
  662. </xs:restriction>
  663. </xs:simpleType>
  664. <xs:simpleType name="NCName" id="NCName">
  665. <xs:annotation>
  666. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#NCName">Built-in derived type.
  667. NCName represents XML "non-colonized" Names.
  668. The base type of NCName is Name.</xs:documentation>
  669. </xs:annotation>
  670. <xs:restriction base="xs:Name">
  671. <xs:pattern value="[\i-[:]][\c-[:]]*" id="NCName.pattern">
  672. <xs:annotation>
  673. <xs:documentation source="http://www.w3.org/TR/REC-xml-names/#NT-NCName">
  674. pattern matches production 4 from the Namespaces in XML spec
  675. </xs:documentation>
  676. </xs:annotation>
  677. </xs:pattern>
  678. </xs:restriction>
  679. </xs:simpleType>
  680. <xs:simpleType name="ID" id="ID">
  681. <xs:annotation>
  682. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#ID">Built-in derived type.
  683. ID represents the ID attribute type.
  684. The base type of ID is NCName.</xs:documentation>
  685. </xs:annotation>
  686. <xs:restriction base="xs:NCName"/>
  687. </xs:simpleType>
  688. <xs:simpleType name="IDREF" id="IDREF">
  689. <xs:annotation>
  690. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#IDREF">Built-in derived type.
  691. IDREF represents the IDREF attribute type.
  692. The base type of IDREF is NCName.</xs:documentation>
  693. </xs:annotation>
  694. <xs:restriction base="xs:NCName"/>
  695. </xs:simpleType>
  696. <xs:simpleType name="ENTITY" id="ENTITY">
  697. <xs:annotation>
  698. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#ENTITY">Built-in derived type.
  699. ENTITY represents the ENTITY attribute type.
  700. The base type of ENTITY is NCName.</xs:documentation>
  701. </xs:annotation>
  702. <xs:restriction base="xs:NCName"/>
  703. </xs:simpleType>
  704. <xs:simpleType name="integer" id="integer">
  705. <xs:annotation>
  706. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#integer">Built-in derived type.
  707. The integer datatype is derived from decimal by fixing the value of fractionDigits to be 0.
  708. This results in the standard mathematical concept of the integer numbers.</xs:documentation>
  709. </xs:annotation>
  710. <xs:restriction base="xs:decimal">
  711. <xs:fractionDigits fixed="true" value="0" id="integer.fractionDigits"/>
  712. <xs:pattern value="[\-+]?[0-9]+" id="integer.pattern"/>
  713. </xs:restriction>
  714. </xs:simpleType>
  715. <xs:simpleType name="nonPositiveInteger" id="nonPositiveInteger">
  716. <xs:annotation>
  717. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#nonPositiveInteger">Built-in derived type.
  718. The nonPositiveInteger datatype is derived from integer by setting the value of maxInclusive to be 0.
  719. This results in the standard mathematical concept of the non-positive integers.</xs:documentation>
  720. </xs:annotation>
  721. <xs:restriction base="xs:integer">
  722. <xs:maxInclusive value="0" id="nonPositiveInteger.maxInclusive"/>
  723. </xs:restriction>
  724. </xs:simpleType>
  725. <xs:simpleType name="negativeInteger" id="negativeInteger">
  726. <xs:annotation>
  727. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#negativeInteger">Built-in derived type.
  728. The negativeInteger datatype is derived from nonPositiveInteger by setting the value of maxInclusive to be -1. This results in the standard mathematical concept of the negative integers.</xs:documentation>
  729. </xs:annotation>
  730. <xs:restriction base="xs:nonPositiveInteger">
  731. <xs:maxInclusive value="-1" id="negativeInteger.maxInclusive"/>
  732. </xs:restriction>
  733. </xs:simpleType>
  734. <xs:simpleType name="long" id="long">
  735. <xs:annotation>
  736. <xs:appinfo>
  737. <hfp:hasProperty name="bounded" value="true"/>
  738. <hfp:hasProperty name="cardinality" value="finite"/>
  739. </xs:appinfo>
  740. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#long">Built-in derived type.
  741. The long datatype is derived from integer by setting the value of maxInclusive to be 9223372036854775807 and minInclusive to be -9223372036854775808.</xs:documentation>
  742. </xs:annotation>
  743. <xs:restriction base="xs:integer">
  744. <xs:minInclusive value="-9223372036854775808" id="long.minInclusive"/>
  745. <xs:maxInclusive value="9223372036854775807" id="long.maxInclusive"/>
  746. </xs:restriction>
  747. </xs:simpleType>
  748. <xs:simpleType name="int" id="int">
  749. <xs:annotation>
  750. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#int">Built-in derived type.
  751. The int datatype is derived from long by setting the value of maxInclusive to be 2147483647 and minInclusive to be -2147483648.</xs:documentation>
  752. </xs:annotation>
  753. <xs:restriction base="xs:long">
  754. <xs:minInclusive value="-2147483648" id="int.minInclusive"/>
  755. <xs:maxInclusive value="2147483647" id="int.maxInclusive"/>
  756. </xs:restriction>
  757. </xs:simpleType>
  758. <xs:simpleType name="short" id="short">
  759. <xs:annotation>
  760. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#short">Built-in derived type.
  761. The short datatype is derived from int by setting the value of maxInclusive to be 32767 and minInclusive to be -32768.</xs:documentation>
  762. </xs:annotation>
  763. <xs:restriction base="xs:int">
  764. <xs:minInclusive value="-32768" id="short.minInclusive"/>
  765. <xs:maxInclusive value="32767" id="short.maxInclusive"/>
  766. </xs:restriction>
  767. </xs:simpleType>
  768. <xs:simpleType name="byte" id="byte">
  769. <xs:annotation>
  770. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#byte">Built-in derived type.
  771. The byte datatype is derived from short by setting the value of maxInclusive to be 127 and minInclusive to be -128.</xs:documentation>
  772. </xs:annotation>
  773. <xs:restriction base="xs:short">
  774. <xs:minInclusive value="-128" id="byte.minInclusive"/>
  775. <xs:maxInclusive value="127" id="byte.maxInclusive"/>
  776. </xs:restriction>
  777. </xs:simpleType>
  778. <xs:simpleType name="nonNegativeInteger" id="nonNegativeInteger">
  779. <xs:annotation>
  780. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#nonNegativeInteger">Built-in derived type.
  781. The nonNegativeInteger datatype is derived from integer by setting the value of minInclusive to be 0.
  782. This results in the standard mathematical concept of the non-negative integers.</xs:documentation>
  783. </xs:annotation>
  784. <xs:restriction base="xs:integer">
  785. <xs:minInclusive value="0" id="nonNegativeInteger.minInclusive"/>
  786. </xs:restriction>
  787. </xs:simpleType>
  788. <xs:simpleType name="unsignedLong" id="unsignedLong">
  789. <xs:annotation>
  790. <xs:appinfo>
  791. <hfp:hasProperty name="bounded" value="true"/>
  792. <hfp:hasProperty name="cardinality" value="finite"/>
  793. </xs:appinfo>
  794. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#unsignedLong">Built-in derived type.
  795. The unsignedLong datatype is derived from nonNegativeInteger by setting the value of maxInclusive to be 18446744073709551615.</xs:documentation>
  796. </xs:annotation>
  797. <xs:restriction base="xs:nonNegativeInteger">
  798. <xs:maxInclusive value="18446744073709551615" id="unsignedLong.maxInclusive"/>
  799. </xs:restriction>
  800. </xs:simpleType>
  801. <xs:simpleType name="unsignedInt" id="unsignedInt">
  802. <xs:annotation>
  803. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#unsignedInt">Built-in derived type.
  804. The unsignedInt datatype is derived from unsignedLong by setting the value of maxInclusive to be 4294967295.</xs:documentation>
  805. </xs:annotation>
  806. <xs:restriction base="xs:unsignedLong">
  807. <xs:maxInclusive value="4294967295" id="unsignedInt.maxInclusive"/>
  808. </xs:restriction>
  809. </xs:simpleType>
  810. <xs:simpleType name="unsignedShort" id="unsignedShort">
  811. <xs:annotation>
  812. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#unsignedShort">Built-in derived type.
  813. The unsignedShort datatype is derived from unsignedInt by setting the value of maxInclusive to be 65535.</xs:documentation>
  814. </xs:annotation>
  815. <xs:restriction base="xs:unsignedInt">
  816. <xs:maxInclusive value="65535" id="unsignedShort.maxInclusive"/>
  817. </xs:restriction>
  818. </xs:simpleType>
  819. <xs:simpleType name="unsignedByte" id="unsignedByte">
  820. <xs:annotation>
  821. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#unsignedByte">Built-in derived type.
  822. The unsignedByte datatype is derived from unsignedShort by setting the value of maxInclusive to be 255.</xs:documentation>
  823. </xs:annotation>
  824. <xs:restriction base="xs:unsignedShort">
  825. <xs:maxInclusive value="255" id="unsignedByte.maxInclusive"/>
  826. </xs:restriction>
  827. </xs:simpleType>
  828. <xs:simpleType name="positiveInteger" id="positiveInteger">
  829. <xs:annotation>
  830. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#positiveInteger">Built-in derived type.
  831. The positiveInteger datatype is derived from nonNegativeInteger by setting the value of minInclusive to be 1.
  832. This results in the standard mathematical concept of the positive integer numbers.</xs:documentation>
  833. </xs:annotation>
  834. <xs:restriction base="xs:nonNegativeInteger">
  835. <xs:minInclusive value="1" id="positiveInteger.minInclusive"/>
  836. </xs:restriction>
  837. </xs:simpleType>
  838. <xs:simpleType name="yearMonthDuration">
  839. <xs:annotation>
  840. <xs:documentation source="http://www.w3.org/TR/xmlschema11-2/#yearMonthDuration">
  841. This type includes just those durations expressed in years and months.
  842. Since the pattern given excludes days, hours, minutes, and seconds,
  843. the values of this type have a seconds property of zero. They are
  844. totally ordered.
  845. </xs:documentation>
  846. </xs:annotation>
  847. <xs:restriction base="xs:duration">
  848. <xs:pattern id="yearMonthDuration.pattern" value="[^DT]*"/>
  849. </xs:restriction>
  850. </xs:simpleType>
  851. <xs:simpleType name="dayTimeDuration">
  852. <xs:annotation>
  853. <xs:documentation source="http://www.w3.org/TR/xmlschema11-2/#dayTimeDuration">
  854. This type includes just those durations expressed in days, hours, minutes, and seconds.
  855. The pattern given excludes years and months, so the values of this type
  856. have a months property of zero. They are totally ordered.
  857. </xs:documentation>
  858. </xs:annotation>
  859. <xs:restriction base="xs:duration">
  860. <xs:pattern id="dayTimeDuration.pattern" value="[^YM]*(T.*)?"/>
  861. </xs:restriction>
  862. </xs:simpleType>
  863. <xs:simpleType name="dateTimeStamp" id="dateTimeStamp">
  864. <xs:annotation>
  865. <xs:documentation source="http://www.w3.org/TR/xmlschema11-2/#dateTimeStamp">
  866. This datatype includes just those dateTime values Whose explicitTimezone
  867. is present. They are totally ordered.
  868. </xs:documentation>
  869. </xs:annotation>
  870. <xs:restriction base="xs:dateTime">
  871. <xs:explicitTimezone fixed="true" id="dateTimeStamp.explicitTimezone" value="required"/>
  872. </xs:restriction>
  873. </xs:simpleType>
  874. </xs:schema>
  875. </xsl:variable>
  876. <xsl:variable name="system_cache__appinfo:XMLSchema11.xsd">
  877. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  878. elementFormDefault="qualified"
  879. xml:lang="EN"
  880. targetNamespace="http://www.w3.org/2001/XMLSchema"
  881. version="1.0">
  882. <xs:annotation>
  883. <xs:documentation>
  884. Part 1 version: structures.xsd (rec-20120405)
  885. Part 2 version: datatypes.xsd (rec-20120405)
  886. </xs:documentation>
  887. </xs:annotation>
  888. <xs:annotation>
  889. <xs:documentation source="http://www.w3.org/TR/xmlschema11-1/structures.html">
  890. The schema corresponding to this document is normative,
  891. with respect to the syntactic constraints it expresses in the
  892. XML Schema Definition Language. The documentation (within 'documentation' elements)
  893. below, is not normative, but rather highlights important aspects of
  894. the W3C Recommendation of which this is a part.
  895. See below (at the bottom of this document) for information about
  896. the revision and namespace-versioning policy governing this
  897. schema document.
  898. </xs:documentation>
  899. </xs:annotation>
  900. <xs:annotation>
  901. <xs:documentation>
  902. The simpleType element and all of its members are defined
  903. towards the end of this schema document.</xs:documentation>
  904. </xs:annotation>
  905. <xs:include schemaLocation="primitives.xsd"/>
  906. <xs:include schemaLocation="derived.xsd"/>
  907. <xs:import namespace="http://www.w3.org/XML/1998/namespace"
  908. schemaLocation="xml.xsd">
  909. <xs:annotation>
  910. <xs:documentation>
  911. Get access to the xml: attribute groups for xml:lang
  912. as declared on 'schema' and 'documentation' below
  913. </xs:documentation>
  914. </xs:annotation>
  915. </xs:import>
  916. <xs:complexType name="openAttrs">
  917. <xs:annotation>
  918. <xs:documentation>
  919. This type is extended by almost all schema types
  920. to allow attributes from other namespaces to be
  921. added to user schemas.
  922. </xs:documentation>
  923. </xs:annotation>
  924. <xs:complexContent>
  925. <xs:restriction base="xs:anyType">
  926. <xs:anyAttribute namespace="##other" processContents="lax"/>
  927. </xs:restriction>
  928. </xs:complexContent>
  929. </xs:complexType>
  930. <xs:complexType name="annotated">
  931. <xs:annotation>
  932. <xs:documentation>
  933. This type is extended by all types which allow annotation
  934. other than &lt;schema&gt; itself
  935. </xs:documentation>
  936. </xs:annotation>
  937. <xs:complexContent>
  938. <xs:extension base="xs:openAttrs">
  939. <xs:sequence>
  940. <xs:element ref="xs:annotation" minOccurs="0"/>
  941. </xs:sequence>
  942. <xs:attribute name="id" type="xs:ID">
  943. <xs:annotation>
  944. <xs:documentation>Specifies an ID.</xs:documentation>
  945. </xs:annotation>
  946. </xs:attribute>
  947. </xs:extension>
  948. </xs:complexContent>
  949. </xs:complexType>
  950. <xs:group name="composition">
  951. <xs:choice>
  952. <xs:element ref="xs:include"/>
  953. <xs:element ref="xs:import"/>
  954. <xs:element ref="xs:redefine"/>
  955. <xs:element ref="xs:override"/>
  956. <xs:element ref="xs:annotation"/>
  957. </xs:choice>
  958. </xs:group>
  959. <xs:group name="schemaTop">
  960. <xs:annotation>
  961. <xs:documentation>
  962. This group is for the
  963. elements which occur freely at the top level of schemas.
  964. All of their types are based on the "annotated" type by extension.</xs:documentation>
  965. </xs:annotation>
  966. <xs:choice>
  967. <xs:group ref="xs:redefinable"/>
  968. <xs:element ref="xs:element"/>
  969. <xs:element ref="xs:attribute"/>
  970. <xs:element ref="xs:notation"/>
  971. </xs:choice>
  972. </xs:group>
  973. <xs:group name="redefinable">
  974. <xs:annotation>
  975. <xs:documentation>
  976. This group is for the
  977. elements which can self-redefine (see &lt;redefine&gt; below).</xs:documentation>
  978. </xs:annotation>
  979. <xs:choice>
  980. <xs:element ref="xs:simpleType"/>
  981. <xs:element ref="xs:complexType"/>
  982. <xs:element ref="xs:group"/>
  983. <xs:element ref="xs:attributeGroup"/>
  984. </xs:choice>
  985. </xs:group>
  986. <xs:simpleType name="formChoice">
  987. <xs:annotation>
  988. <xs:documentation>
  989. A utility type, not for public use</xs:documentation>
  990. </xs:annotation>
  991. <xs:restriction base="xs:NMTOKEN">
  992. <xs:enumeration value="qualified"/>
  993. <xs:enumeration value="unqualified"/>
  994. </xs:restriction>
  995. </xs:simpleType>
  996. <xs:simpleType name="reducedDerivationControl">
  997. <xs:annotation>
  998. <xs:documentation>
  999. A utility type, not for public use</xs:documentation>
  1000. </xs:annotation>
  1001. <xs:restriction base="xs:derivationControl">
  1002. <xs:enumeration value="extension"/>
  1003. <xs:enumeration value="restriction"/>
  1004. </xs:restriction>
  1005. </xs:simpleType>
  1006. <xs:simpleType name="derivationSet">
  1007. <xs:annotation>
  1008. <xs:documentation>
  1009. A utility type, not for public use</xs:documentation>
  1010. <xs:documentation>
  1011. #all or (possibly empty) subset of {extension, restriction}</xs:documentation>
  1012. </xs:annotation>
  1013. <xs:union>
  1014. <xs:simpleType>
  1015. <xs:restriction base="xs:token">
  1016. <xs:enumeration value="#all"/>
  1017. </xs:restriction>
  1018. </xs:simpleType>
  1019. <xs:simpleType>
  1020. <xs:list itemType="xs:reducedDerivationControl"/>
  1021. </xs:simpleType>
  1022. </xs:union>
  1023. </xs:simpleType>
  1024. <xs:simpleType name="typeDerivationControl">
  1025. <xs:annotation>
  1026. <xs:documentation>
  1027. A utility type, not for public use</xs:documentation>
  1028. </xs:annotation>
  1029. <xs:restriction base="xs:derivationControl">
  1030. <xs:enumeration value="extension"/>
  1031. <xs:enumeration value="restriction"/>
  1032. <xs:enumeration value="list"/>
  1033. <xs:enumeration value="union"/>
  1034. </xs:restriction>
  1035. </xs:simpleType>
  1036. <xs:simpleType name="fullDerivationSet">
  1037. <xs:annotation>
  1038. <xs:documentation>
  1039. A utility type, not for public use</xs:documentation>
  1040. <xs:documentation>
  1041. #all or (possibly empty) subset of {extension, restriction, list, union}</xs:documentation>
  1042. </xs:annotation>
  1043. <xs:union>
  1044. <xs:simpleType>
  1045. <xs:restriction base="xs:token">
  1046. <xs:enumeration value="#all"/>
  1047. </xs:restriction>
  1048. </xs:simpleType>
  1049. <xs:simpleType>
  1050. <xs:list itemType="xs:typeDerivationControl"/>
  1051. </xs:simpleType>
  1052. </xs:union>
  1053. </xs:simpleType>
  1054. <xs:element name="schema" id="schema">
  1055. <xs:annotation>
  1056. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-schema"> Defines the
  1057. root element of a schema. A schema consists of a set of schema
  1058. components. A schema is represented in XML by one or more schema
  1059. documents, that is, one or more &lt;schema&gt; element information items. A schema
  1060. document contains representations for a collection of schema components, e.g. type
  1061. definitions and element declarations, which have a common target
  1062. namespace. <br/> See more info at
  1063. http://www.w3.org/TR/xmlschema-1/#element-schema</xs:documentation>
  1064. </xs:annotation>
  1065. <xs:complexType>
  1066. <xs:complexContent>
  1067. <xs:extension base="xs:openAttrs">
  1068. <xs:sequence>
  1069. <xs:group ref="xs:composition" minOccurs="0" maxOccurs="unbounded"/>
  1070. <xs:sequence minOccurs="0">
  1071. <xs:element ref="xs:defaultOpenContent"/>
  1072. <xs:element ref="xs:annotation" minOccurs="0" maxOccurs="unbounded"/>
  1073. </xs:sequence>
  1074. <xs:sequence minOccurs="0" maxOccurs="unbounded">
  1075. <xs:group ref="xs:schemaTop"/>
  1076. <xs:element ref="xs:annotation" minOccurs="0" maxOccurs="unbounded"/>
  1077. </xs:sequence>
  1078. </xs:sequence>
  1079. <xs:attribute name="targetNamespace" type="xs:anyURI">
  1080. <xs:annotation>
  1081. <xs:documentation>Most components corresponding to representations
  1082. within a given schema will have a
  1083. target namespace which corresponds to the targetNamespace attribute.
  1084. The appropriate form of schema
  1085. document corresponding to a schema whose components have no
  1086. target namespace is one which has no targetNamespace attribute
  1087. specified at all.</xs:documentation>
  1088. </xs:annotation>
  1089. </xs:attribute>
  1090. <xs:attribute name="version" type="xs:token">
  1091. <xs:annotation>
  1092. <xs:documentation> Optional. Specifies the version of the schema. It is
  1093. for user convenience, and the XML
  1094. Schema specification defines no semantics for
  1095. it.</xs:documentation>
  1096. </xs:annotation>
  1097. </xs:attribute>
  1098. <xs:attribute name="finalDefault"
  1099. type="xs:fullDerivationSet"
  1100. default=""
  1101. use="optional">
  1102. <xs:annotation>
  1103. <xs:documentation> Optional. Specifies the default value of the final
  1104. attribute on element, simpleType,
  1105. and complexType elements in the target namespace. The final
  1106. attribute prevents a specified type
  1107. of derivation of an element, simpleType, or complexType
  1108. element. For element and complexType elements, this value can
  1109. contain #all or a list that is a
  1110. subset of extension or restriction. For simpleType elements, this
  1111. value can additionally contain list
  1112. and union: <ul>
  1113. <li>extension - prevents derivation by extension</li>
  1114. <li>restriction - prevents derivation by restriction</li>
  1115. <li>list - prevents derivation by list </li>
  1116. <li>union - prevents derivation by union </li>
  1117. <li>#all - prevents all derivation.</li>
  1118. </ul>
  1119. </xs:documentation>
  1120. </xs:annotation>
  1121. </xs:attribute>
  1122. <xs:attribute name="blockDefault"
  1123. type="xs:blockSet"
  1124. default=""
  1125. use="optional">
  1126. <xs:annotation>
  1127. <xs:documentation> Optional. Specifies the default value of the block
  1128. attribute on element and complexType
  1129. elements in the target namespace. The block attribute prevents a
  1130. complex type (or element) that has a
  1131. specified type of derivation from being used in place of
  1132. this complex type. This value can contain #all or a list that is a
  1133. subset of extension, restriction, or
  1134. substitution: <ul>
  1135. <li>extension - prevents complex types derived by extension </li>
  1136. <li>restriction - prevents complex types derived by
  1137. restriction</li>
  1138. <li>substitution - prevents substitution of elements</li>
  1139. <li>#all - prevents all derived complex types.</li>
  1140. </ul>
  1141. </xs:documentation>
  1142. </xs:annotation>
  1143. </xs:attribute>
  1144. <xs:attribute name="attributeFormDefault"
  1145. type="xs:formChoice"
  1146. default="unqualified"
  1147. use="optional">
  1148. <xs:annotation>
  1149. <xs:documentation>Optional. The form for attributes declared in the
  1150. target namespace of this schema. The
  1151. value must be "qualified" or "unqualified". Default is
  1152. "unqualified". <ul>
  1153. <li>"unqualified" indicates that attributes from the target
  1154. namespace are not
  1155. required to be qualified with the namespace prefix.</li>
  1156. <li> "qualified" indicates that attributes from the target
  1157. namespace must be
  1158. qualified with the namespace prefix.</li>
  1159. </ul>
  1160. </xs:documentation>
  1161. </xs:annotation>
  1162. </xs:attribute>
  1163. <xs:attribute name="elementFormDefault"
  1164. type="xs:formChoice"
  1165. default="unqualified"
  1166. use="optional">
  1167. <xs:annotation>
  1168. <xs:documentation>Optional. The form for elements declared in the target
  1169. namespace of this schema. The value
  1170. must be "qualified" or "unqualified". Default is "unqualified". <ul>
  1171. <li>"unqualified" indicates that elements from the target
  1172. namespace are not required
  1173. to be qualified with the namespace prefix. </li>
  1174. <li>"qualified" indicates that elements from the target
  1175. namespace must be qualified
  1176. with the namespace prefix.</li>
  1177. </ul>
  1178. </xs:documentation>
  1179. </xs:annotation>
  1180. </xs:attribute>
  1181. <xs:attribute name="defaultAttributes" type="xs:QName">
  1182. <xs:annotation>
  1183. <xs:documentation>Specify a set of attributes that apply to every complexType in a schema document.</xs:documentation>
  1184. </xs:annotation>
  1185. </xs:attribute>
  1186. <xs:attribute name="xpathDefaultNamespace"
  1187. type="xs:xpathDefaultNamespace"
  1188. default="##local"
  1189. use="optional">
  1190. <xs:annotation>
  1191. <xs:documentation>The default namespace used when evalueates the XPath expression.</xs:documentation>
  1192. </xs:annotation>
  1193. </xs:attribute>
  1194. <xs:attribute name="id" type="xs:ID">
  1195. <xs:annotation>
  1196. <xs:documentation> Optional. Specifies a unique ID for the element. It
  1197. is for user convenience, and the XML
  1198. Schema specification defines no semantics for
  1199. it.</xs:documentation>
  1200. </xs:annotation>
  1201. </xs:attribute>
  1202. <xs:attribute ref="xml:lang"/>
  1203. </xs:extension>
  1204. </xs:complexContent>
  1205. </xs:complexType>
  1206. <xs:key name="element">
  1207. <xs:selector xpath="xs:element"/>
  1208. <xs:field xpath="@name"/>
  1209. </xs:key>
  1210. <xs:key name="attribute">
  1211. <xs:selector xpath="xs:attribute"/>
  1212. <xs:field xpath="@name"/>
  1213. </xs:key>
  1214. <xs:key name="type">
  1215. <xs:selector xpath="xs:complexType|xs:simpleType"/>
  1216. <xs:field xpath="@name"/>
  1217. </xs:key>
  1218. <xs:key name="group">
  1219. <xs:selector xpath="xs:group"/>
  1220. <xs:field xpath="@name"/>
  1221. </xs:key>
  1222. <xs:key name="attributeGroup">
  1223. <xs:selector xpath="xs:attributeGroup"/>
  1224. <xs:field xpath="@name"/>
  1225. </xs:key>
  1226. <xs:key name="notation">
  1227. <xs:selector xpath="xs:notation"/>
  1228. <xs:field xpath="@name"/>
  1229. </xs:key>
  1230. <xs:key name="identityConstraint">
  1231. <xs:selector xpath=".//xs:key|.//xs:unique|.//xs:keyref"/>
  1232. <xs:field xpath="@name"/>
  1233. </xs:key>
  1234. </xs:element>
  1235. <xs:simpleType name="allNNI">
  1236. <xs:annotation>
  1237. <xs:documentation>
  1238. for maxOccurs</xs:documentation>
  1239. </xs:annotation>
  1240. <xs:union memberTypes="xs:nonNegativeInteger">
  1241. <xs:simpleType>
  1242. <xs:restriction base="xs:NMTOKEN">
  1243. <xs:enumeration value="unbounded"/>
  1244. </xs:restriction>
  1245. </xs:simpleType>
  1246. </xs:union>
  1247. </xs:simpleType>
  1248. <xs:attributeGroup name="occurs">
  1249. <xs:annotation>
  1250. <xs:documentation>
  1251. for all particles</xs:documentation>
  1252. </xs:annotation>
  1253. <xs:attribute name="minOccurs"
  1254. type="xs:nonNegativeInteger"
  1255. default="1"
  1256. use="optional">
  1257. <xs:annotation>
  1258. <xs:documentation>Specifies the minimum number of occurrences for this particle.
  1259. Default is 1.</xs:documentation>
  1260. </xs:annotation>
  1261. </xs:attribute>
  1262. <xs:attribute name="maxOccurs" type="xs:allNNI" default="1" use="optional">
  1263. <xs:annotation>
  1264. <xs:documentation>Specifies the maximum number of occurrences for this particle.
  1265. Default is 1.</xs:documentation>
  1266. </xs:annotation>
  1267. </xs:attribute>
  1268. </xs:attributeGroup>
  1269. <xs:attributeGroup name="defRef">
  1270. <xs:annotation>
  1271. <xs:documentation>
  1272. for element, group and attributeGroup,
  1273. which both define and reference</xs:documentation>
  1274. </xs:annotation>
  1275. <xs:attribute name="name" type="xs:NCName">
  1276. <xs:annotation>
  1277. <xs:documentation>Specifies a name.</xs:documentation>
  1278. </xs:annotation>
  1279. </xs:attribute>
  1280. <xs:attribute name="ref" type="xs:QName">
  1281. <xs:annotation>
  1282. <xs:documentation>Specifies a reference.</xs:documentation>
  1283. </xs:annotation>
  1284. </xs:attribute>
  1285. </xs:attributeGroup>
  1286. <xs:group name="typeDefParticle">
  1287. <xs:annotation>
  1288. <xs:documentation>
  1289. 'complexType' uses this</xs:documentation>
  1290. </xs:annotation>
  1291. <xs:choice>
  1292. <xs:element name="group" type="xs:groupRef">
  1293. <xs:annotation>
  1294. <xs:documentation>Specifies a group reference.</xs:documentation>
  1295. </xs:annotation>
  1296. </xs:element>
  1297. <xs:element ref="xs:all"/>
  1298. <xs:element ref="xs:choice"/>
  1299. <xs:element ref="xs:sequence"/>
  1300. </xs:choice>
  1301. </xs:group>
  1302. <xs:group name="nestedParticle">
  1303. <xs:choice>
  1304. <xs:element name="element" type="xs:localElement">
  1305. <xs:annotation>
  1306. <xs:documentation>Specifies a local element or a reference to a global
  1307. element.</xs:documentation>
  1308. </xs:annotation>
  1309. </xs:element>
  1310. <xs:element name="group" type="xs:groupRef">
  1311. <xs:annotation>
  1312. <xs:documentation>Specifies a group reference.</xs:documentation>
  1313. </xs:annotation>
  1314. </xs:element>
  1315. <xs:element ref="xs:choice"/>
  1316. <xs:element ref="xs:sequence"/>
  1317. <xs:element ref="xs:any"/>
  1318. </xs:choice>
  1319. </xs:group>
  1320. <xs:group name="particle">
  1321. <xs:choice>
  1322. <xs:element name="element" type="xs:localElement">
  1323. <xs:annotation>
  1324. <xs:documentation>Specifies a local element or a reference to a global
  1325. element.</xs:documentation>
  1326. </xs:annotation>
  1327. </xs:element>
  1328. <xs:element name="group" type="xs:groupRef">
  1329. <xs:annotation>
  1330. <xs:documentation>Specifies a group reference.</xs:documentation>
  1331. </xs:annotation>
  1332. </xs:element>
  1333. <xs:element ref="xs:all"/>
  1334. <xs:element ref="xs:choice"/>
  1335. <xs:element ref="xs:sequence"/>
  1336. <xs:element ref="xs:any"/>
  1337. </xs:choice>
  1338. </xs:group>
  1339. <xs:complexType name="attribute">
  1340. <xs:complexContent>
  1341. <xs:extension base="xs:annotated">
  1342. <xs:sequence>
  1343. <xs:element name="simpleType" type="xs:localSimpleType" minOccurs="0">
  1344. <xs:annotation>
  1345. <xs:documentation>Specifies an anonymous local simple type for the
  1346. attribute in case the attribute does
  1347. not have the type attribute to specify a built-in or a pre-declared
  1348. type. The default when no simple
  1349. type definition is referenced or provided is the simple
  1350. ur-type definition, which imposes no constraints at
  1351. all.</xs:documentation>
  1352. </xs:annotation>
  1353. </xs:element>
  1354. </xs:sequence>
  1355. <xs:attributeGroup ref="xs:defRef"/>
  1356. <xs:attribute name="type" type="xs:QName">
  1357. <xs:annotation>
  1358. <xs:documentation>The type attribute is used when the declaration can use a
  1359. built-in or pre-declared simple type
  1360. definition. Otherwise an anonymous &lt;simpleType&gt; is
  1361. provided inline. The default when no simple type definition is
  1362. referenced or provided is the simple ur-type
  1363. definition, which imposes no constraints at all.</xs:documentation>
  1364. </xs:annotation>
  1365. </xs:attribute>
  1366. <xs:attribute name="use" default="optional" use="optional">
  1367. <xs:annotation>
  1368. <xs:documentation>Specifies the attribute use: prohibited, optional or
  1369. required, default is
  1370. optional.</xs:documentation>
  1371. </xs:annotation>
  1372. <xs:simpleType>
  1373. <xs:restriction base="xs:NMTOKEN">
  1374. <xs:enumeration value="prohibited"/>
  1375. <xs:enumeration value="optional"/>
  1376. <xs:enumeration value="required"/>
  1377. </xs:restriction>
  1378. </xs:simpleType>
  1379. </xs:attribute>
  1380. <xs:attribute name="default" type="xs:string">
  1381. <xs:annotation>
  1382. <xs:documentation>The default attribute specifies that the attribute is to
  1383. appear unconditionally in the
  1384. post-schema-validation infoset, with the supplied value used whenever
  1385. the attribute is not actually present.</xs:documentation>
  1386. </xs:annotation>
  1387. </xs:attribute>
  1388. <xs:attribute name="fixed" type="xs:string">
  1389. <xs:annotation>
  1390. <xs:documentation>The fixed attribute indicates that the attribute value if
  1391. present must equal the supplied constraint
  1392. value, and if absent receives the supplied value as for
  1393. default.</xs:documentation>
  1394. </xs:annotation>
  1395. </xs:attribute>
  1396. <xs:attribute name="form" type="xs:formChoice">
  1397. <xs:annotation>
  1398. <xs:documentation>Specifies if a local attribute belongs to the schema
  1399. target namespace or has no namespace. The
  1400. value must be "qualified" or "unqualified". The default value is
  1401. provided by the attributeFormDefault
  1402. attribute on the enclosing &lt;schema&gt;
  1403. element.</xs:documentation>
  1404. </xs:annotation>
  1405. </xs:attribute>
  1406. <xs:attribute name="targetNamespace" type="xs:anyURI">
  1407. <xs:annotation>
  1408. <xs:documentation>Specifies the target namespace for local attribute declarations.
  1409. The namespace URI may be different from the schema target namespace.</xs:documentation>
  1410. </xs:annotation>
  1411. </xs:attribute>
  1412. <xs:attribute name="inheritable" type="xs:boolean">
  1413. <xs:annotation>
  1414. <xs:documentation>Specifies if the attribute is inheritable. Inheritable attributes
  1415. can be used by &lt;alternative&gt; element on descendant elements.
  1416. </xs:documentation>
  1417. </xs:annotation>
  1418. </xs:attribute>
  1419. </xs:extension>
  1420. </xs:complexContent>
  1421. </xs:complexType>
  1422. <xs:complexType name="topLevelAttribute">
  1423. <xs:complexContent>
  1424. <xs:restriction base="xs:attribute">
  1425. <xs:sequence>
  1426. <xs:element ref="xs:annotation" minOccurs="0"/>
  1427. <xs:element name="simpleType" type="xs:localSimpleType" minOccurs="0">
  1428. <xs:annotation>
  1429. <xs:documentation> Specifies an anonymous local simple type for the
  1430. attribute in case the attribute does
  1431. not have the type attribute to specify a built-in or a pre-declared
  1432. type. The default when no simple
  1433. type definition is referenced or provided is the simple
  1434. ur-type definition, which imposes no constraints at all.
  1435. </xs:documentation>
  1436. </xs:annotation>
  1437. </xs:element>
  1438. </xs:sequence>
  1439. <xs:attribute name="ref" use="prohibited"/>
  1440. <xs:attribute name="form" use="prohibited"/>
  1441. <xs:attribute name="use" use="prohibited"/>
  1442. <xs:attribute name="targetNamespace" use="prohibited"/>
  1443. <xs:attribute name="name" type="xs:NCName" use="required">
  1444. <xs:annotation>
  1445. <xs:documentation>Specifies the required top level attribute
  1446. name.</xs:documentation>
  1447. </xs:annotation>
  1448. </xs:attribute>
  1449. <xs:attribute name="inheritable" type="xs:boolean">
  1450. <xs:annotation>
  1451. <xs:documentation>Specifies if the attribute is inheritable. Inheritable attributes
  1452. can be used by &lt;alternative&gt; element on descendant elements.
  1453. </xs:documentation>
  1454. </xs:annotation>
  1455. </xs:attribute>
  1456. <xs:anyAttribute namespace="##other" processContents="lax"/>
  1457. </xs:restriction>
  1458. </xs:complexContent>
  1459. </xs:complexType>
  1460. <xs:group name="attrDecls">
  1461. <xs:sequence>
  1462. <xs:choice minOccurs="0" maxOccurs="unbounded">
  1463. <xs:element name="attribute" type="xs:attribute">
  1464. <xs:annotation>
  1465. <xs:documentation>Specifies an attribute.</xs:documentation>
  1466. </xs:annotation>
  1467. </xs:element>
  1468. <xs:element name="attributeGroup" type="xs:attributeGroupRef">
  1469. <xs:annotation>
  1470. <xs:documentation>Specifies an attribute group reference.</xs:documentation>
  1471. </xs:annotation>
  1472. </xs:element>
  1473. </xs:choice>
  1474. <xs:element ref="xs:anyAttribute" minOccurs="0"/>
  1475. </xs:sequence>
  1476. </xs:group>
  1477. <xs:element name="anyAttribute" id="anyAttribute">
  1478. <xs:annotation>
  1479. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-anyAttribute">
  1480. Enables the author to extend the XML document with attributes not
  1481. specified by the schema.</xs:documentation>
  1482. </xs:annotation>
  1483. <xs:complexType>
  1484. <xs:complexContent>
  1485. <xs:extension base="xs:wildcard">
  1486. <xs:attribute name="notQName" type="xs:qnameListA" use="optional">
  1487. <xs:annotation>
  1488. <xs:documentation>Specify an element or attribute that is not allowed.</xs:documentation>
  1489. </xs:annotation>
  1490. </xs:attribute>
  1491. </xs:extension>
  1492. </xs:complexContent>
  1493. </xs:complexType>
  1494. </xs:element>
  1495. <xs:group name="assertions">
  1496. <xs:sequence>
  1497. <xs:element name="assert"
  1498. type="xs:assertion"
  1499. minOccurs="0"
  1500. maxOccurs="unbounded">
  1501. <xs:annotation>
  1502. <xs:documentation>The element is used to make assertions about element and attribute
  1503. values.</xs:documentation>
  1504. </xs:annotation>
  1505. </xs:element>
  1506. </xs:sequence>
  1507. </xs:group>
  1508. <xs:complexType name="assertion">
  1509. <xs:complexContent>
  1510. <xs:extension base="xs:annotated">
  1511. <xs:attribute name="test" type="xs:string">
  1512. <xs:annotation>
  1513. <xs:documentation>Specifies the XPath expression to be evaluated when the element is validated.</xs:documentation>
  1514. </xs:annotation>
  1515. </xs:attribute>
  1516. <xs:attribute name="xpathDefaultNamespace" type="xs:xpathDefaultNamespace">
  1517. <xs:annotation>
  1518. <xs:documentation>The default namespace used when evalueates the XPath expression.</xs:documentation>
  1519. </xs:annotation>
  1520. </xs:attribute>
  1521. </xs:extension>
  1522. </xs:complexContent>
  1523. </xs:complexType>
  1524. <xs:group name="complexTypeModel">
  1525. <xs:choice>
  1526. <xs:element ref="xs:simpleContent"/>
  1527. <xs:element ref="xs:complexContent"/>
  1528. <xs:sequence>
  1529. <xs:annotation>
  1530. <xs:documentation>
  1531. This branch is short for
  1532. &lt;complexContent&gt;
  1533. &lt;restriction base="xs:anyType"&gt;
  1534. ...
  1535. &lt;/restriction&gt;
  1536. &lt;/complexContent&gt;</xs:documentation>
  1537. </xs:annotation>
  1538. <xs:element ref="xs:openContent" minOccurs="0"/>
  1539. <xs:group ref="xs:typeDefParticle" minOccurs="0"/>
  1540. <xs:group ref="xs:attrDecls"/>
  1541. <xs:group ref="xs:assertions"/>
  1542. </xs:sequence>
  1543. </xs:choice>
  1544. </xs:group>
  1545. <xs:complexType name="complexType" abstract="true">
  1546. <xs:complexContent>
  1547. <xs:extension base="xs:annotated">
  1548. <xs:group ref="xs:complexTypeModel"/>
  1549. <xs:attribute name="name" type="xs:NCName">
  1550. <xs:annotation>
  1551. <xs:documentation>
  1552. Will be restricted to required or prohibited</xs:documentation>
  1553. </xs:annotation>
  1554. </xs:attribute>
  1555. <xs:attribute name="mixed" type="xs:boolean" use="optional">
  1556. <xs:annotation>
  1557. <xs:documentation>
  1558. Not allowed if simpleContent child is chosen.
  1559. May be overridden by setting on complexContent child.</xs:documentation>
  1560. </xs:annotation>
  1561. </xs:attribute>
  1562. <xs:attribute name="abstract"
  1563. type="xs:boolean"
  1564. default="false"
  1565. use="optional">
  1566. <xs:annotation>
  1567. <xs:documentation>Specifies whether the complex type is abstract or not.
  1568. Default is false. Complex types for which
  1569. abstract is true must not be used as the type definition for the
  1570. validation of element information items. Abstract complex types can be
  1571. used as base type definitions, or even as
  1572. the type definitions of element declarations, provided in every case
  1573. a concrete derived type definition is used for validation.
  1574. </xs:documentation>
  1575. </xs:annotation>
  1576. </xs:attribute>
  1577. <xs:attribute name="final" type="xs:derivationSet">
  1578. <xs:annotation>
  1579. <xs:documentation> A complex type with an empty specification for final can
  1580. be used as a base type definition for other
  1581. types derived by either of extension or restriction; the explicit
  1582. values extension, and restriction prevent further derivations by
  1583. extension and restriction respectively. If
  1584. all values are specified, then the complex type is said to be final,
  1585. because no further derivations are possible. Finality is not inherited,
  1586. that is, a type definition derived by
  1587. restriction from a type definition which is final for extension is not
  1588. itself, in the absence of any explicit final attribute of its own, final
  1589. for anything. </xs:documentation>
  1590. </xs:annotation>
  1591. </xs:attribute>
  1592. <xs:attribute name="block" type="xs:derivationSet">
  1593. <xs:annotation>
  1594. <xs:documentation> Specifies the value of the block attribute on this
  1595. complexType The block attribute prevents a
  1596. complex type that has a specified type of derivation from being used in
  1597. place of this complex type. This value can contain #all or a list that
  1598. is a subset of extension and restriction: <ul>
  1599. <li>extension - prevents complex types derived by extension </li>
  1600. <li>restriction - prevents complex types derived by restriction</li>
  1601. <li>#all - prevents all derived complex types.</li>
  1602. </ul>
  1603. </xs:documentation>
  1604. </xs:annotation>
  1605. </xs:attribute>
  1606. <xs:attribute name="defaultAttributesApply"
  1607. type="xs:boolean"
  1608. default="true"
  1609. use="optional">
  1610. <xs:annotation>
  1611. <xs:documentation>The &lt;schema&gt; element can carry a defaultAttributes attribute, which
  1612. identifies a named Attribute Group Definition; each complex type defined in the
  1613. schema document then automatically includes that attribute group, unless this is
  1614. overridden by the defaultAttributesApply attribute on the &lt;complexType&gt; element.
  1615. </xs:documentation>
  1616. </xs:annotation>
  1617. </xs:attribute>
  1618. </xs:extension>
  1619. </xs:complexContent>
  1620. </xs:complexType>
  1621. <xs:complexType name="topLevelComplexType">
  1622. <xs:complexContent>
  1623. <xs:restriction base="xs:complexType">
  1624. <xs:sequence>
  1625. <xs:element ref="xs:annotation" minOccurs="0"/>
  1626. <xs:group ref="xs:complexTypeModel"/>
  1627. </xs:sequence>
  1628. <xs:attribute name="name" type="xs:NCName" use="required">
  1629. <xs:annotation>
  1630. <xs:documentation>Defines the name of the top level complex type. No complex
  1631. type definition can have the same name as
  1632. another simple or complex type definition.</xs:documentation>
  1633. </xs:annotation>
  1634. </xs:attribute>
  1635. <xs:anyAttribute namespace="##other" processContents="lax"/>
  1636. </xs:restriction>
  1637. </xs:complexContent>
  1638. </xs:complexType>
  1639. <xs:complexType name="localComplexType">
  1640. <xs:complexContent>
  1641. <xs:restriction base="xs:complexType">
  1642. <xs:sequence>
  1643. <xs:element ref="xs:annotation" minOccurs="0"/>
  1644. <xs:group ref="xs:complexTypeModel"/>
  1645. </xs:sequence>
  1646. <xs:attribute name="name" use="prohibited"/>
  1647. <xs:attribute name="abstract" use="prohibited"/>
  1648. <xs:attribute name="final" use="prohibited"/>
  1649. <xs:attribute name="block" use="prohibited"/>
  1650. <xs:anyAttribute namespace="##other" processContents="lax"/>
  1651. </xs:restriction>
  1652. </xs:complexContent>
  1653. </xs:complexType>
  1654. <xs:complexType name="restrictionType">
  1655. <xs:complexContent>
  1656. <xs:extension base="xs:annotated">
  1657. <xs:sequence>
  1658. <xs:choice minOccurs="0">
  1659. <xs:sequence>
  1660. <xs:element ref="xs:openContent" minOccurs="0"/>
  1661. <xs:group ref="xs:typeDefParticle"/>
  1662. </xs:sequence>
  1663. <xs:group ref="xs:simpleRestrictionModel"/>
  1664. </xs:choice>
  1665. <xs:group ref="xs:attrDecls"/>
  1666. <xs:group ref="xs:assertions"/>
  1667. </xs:sequence>
  1668. <xs:attribute name="base" type="xs:QName" use="required">
  1669. <xs:annotation>
  1670. <xs:documentation>Specifies the base type for the
  1671. restriction.</xs:documentation>
  1672. </xs:annotation>
  1673. </xs:attribute>
  1674. </xs:extension>
  1675. </xs:complexContent>
  1676. </xs:complexType>
  1677. <xs:complexType name="complexRestrictionType">
  1678. <xs:complexContent>
  1679. <xs:restriction base="xs:restrictionType">
  1680. <xs:sequence>
  1681. <xs:element ref="xs:annotation" minOccurs="0"/>
  1682. <xs:choice minOccurs="0">
  1683. <xs:annotation>
  1684. <xs:documentation>This choice is added simply to
  1685. make this a valid restriction per the REC</xs:documentation>
  1686. </xs:annotation>
  1687. <xs:sequence>
  1688. <xs:element ref="xs:openContent" minOccurs="0"/>
  1689. <xs:group ref="xs:typeDefParticle"/>
  1690. </xs:sequence>
  1691. </xs:choice>
  1692. <xs:group ref="xs:attrDecls"/>
  1693. <xs:group ref="xs:assertions"/>
  1694. </xs:sequence>
  1695. <xs:anyAttribute namespace="##other" processContents="lax"/>
  1696. </xs:restriction>
  1697. </xs:complexContent>
  1698. </xs:complexType>
  1699. <xs:complexType name="extensionType">
  1700. <xs:complexContent>
  1701. <xs:extension base="xs:annotated">
  1702. <xs:sequence>
  1703. <xs:element ref="xs:openContent" minOccurs="0"/>
  1704. <xs:group ref="xs:typeDefParticle" minOccurs="0"/>
  1705. <xs:group ref="xs:attrDecls"/>
  1706. <xs:group ref="xs:assertions"/>
  1707. </xs:sequence>
  1708. <xs:attribute name="base" type="xs:QName" use="required">
  1709. <xs:annotation>
  1710. <xs:documentation>Specifies the base type for the
  1711. extension.</xs:documentation>
  1712. </xs:annotation>
  1713. </xs:attribute>
  1714. </xs:extension>
  1715. </xs:complexContent>
  1716. </xs:complexType>
  1717. <xs:element name="complexContent" id="complexContent">
  1718. <xs:annotation>
  1719. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-complexContent">
  1720. Defines extensions or restrictions on a complex type that contains
  1721. mixed content or elements only. </xs:documentation>
  1722. </xs:annotation>
  1723. <xs:complexType>
  1724. <xs:complexContent>
  1725. <xs:extension base="xs:annotated">
  1726. <xs:choice>
  1727. <xs:element name="restriction" type="xs:complexRestrictionType">
  1728. <xs:annotation>
  1729. <xs:documentation>Defines a restriction.</xs:documentation>
  1730. </xs:annotation>
  1731. </xs:element>
  1732. <xs:element name="extension" type="xs:extensionType">
  1733. <xs:annotation>
  1734. <xs:documentation>Defines an extension.</xs:documentation>
  1735. </xs:annotation>
  1736. </xs:element>
  1737. </xs:choice>
  1738. <xs:attribute name="mixed" type="xs:boolean">
  1739. <xs:annotation>
  1740. <xs:documentation>
  1741. Overrides any setting on complexType parent.</xs:documentation>
  1742. </xs:annotation>
  1743. </xs:attribute>
  1744. </xs:extension>
  1745. </xs:complexContent>
  1746. </xs:complexType>
  1747. </xs:element>
  1748. <xs:element name="openContent" id="openContent">
  1749. <xs:annotation>
  1750. <xs:documentation source="http://www.w3.org/TR/xmlschema11-1/structures.html#element-openContent">
  1751. Specifies that any element can appear interleaved among the declared elements.
  1752. </xs:documentation>
  1753. </xs:annotation>
  1754. <xs:complexType>
  1755. <xs:complexContent>
  1756. <xs:extension base="xs:annotated">
  1757. <xs:sequence>
  1758. <xs:element name="any" minOccurs="0" type="xs:wildcard">
  1759. <xs:annotation>
  1760. <xs:documentation>Wildcard used to specify the elements accepted by open content.</xs:documentation>
  1761. </xs:annotation>
  1762. </xs:element>
  1763. </xs:sequence>
  1764. <xs:attribute name="mode" default="interleave" use="optional">
  1765. <xs:annotation>
  1766. <xs:documentation>Specifies where the extension elements can be inserted.
  1767. The value must be "interleave", "suffix" or "none". Default is "interleave".</xs:documentation>
  1768. </xs:annotation>
  1769. <xs:simpleType>
  1770. <xs:restriction base="xs:NMTOKEN">
  1771. <xs:enumeration value="none"/>
  1772. <xs:enumeration value="interleave"/>
  1773. <xs:enumeration value="suffix"/>
  1774. </xs:restriction>
  1775. </xs:simpleType>
  1776. </xs:attribute>
  1777. </xs:extension>
  1778. </xs:complexContent>
  1779. </xs:complexType>
  1780. </xs:element>
  1781. <xs:element name="defaultOpenContent" id="defaultOpenContent">
  1782. <xs:annotation>
  1783. <xs:documentation source="http://www.w3.org/TR/xmlschema11-1/structures.html#element-defaultOpenContent">
  1784. Specifies that any element can appear interleaved among the declared elements.
  1785. </xs:documentation>
  1786. </xs:annotation>
  1787. <xs:complexType>
  1788. <xs:complexContent>
  1789. <xs:extension base="xs:annotated">
  1790. <xs:sequence>
  1791. <xs:element name="any" type="xs:wildcard">
  1792. <xs:annotation>
  1793. <xs:documentation>Wildcard used to specify the elements accepted by default open content.</xs:documentation>
  1794. </xs:annotation>
  1795. </xs:element>
  1796. </xs:sequence>
  1797. <xs:attribute name="appliesToEmpty"
  1798. type="xs:boolean"
  1799. default="false"
  1800. use="optional">
  1801. <xs:annotation>
  1802. <xs:documentation>Controls whether or not extension elements can be inserted into empty elements.</xs:documentation>
  1803. </xs:annotation>
  1804. </xs:attribute>
  1805. <xs:attribute name="mode" default="interleave" use="optional">
  1806. <xs:annotation>
  1807. <xs:documentation>Specifies where the extension elements can be inserted.</xs:documentation>
  1808. </xs:annotation>
  1809. <xs:simpleType>
  1810. <xs:restriction base="xs:NMTOKEN">
  1811. <xs:enumeration value="interleave"/>
  1812. <xs:enumeration value="suffix"/>
  1813. </xs:restriction>
  1814. </xs:simpleType>
  1815. </xs:attribute>
  1816. </xs:extension>
  1817. </xs:complexContent>
  1818. </xs:complexType>
  1819. </xs:element>
  1820. <xs:complexType name="simpleRestrictionType">
  1821. <xs:complexContent>
  1822. <xs:restriction base="xs:restrictionType">
  1823. <xs:sequence>
  1824. <xs:element ref="xs:annotation" minOccurs="0"/>
  1825. <xs:choice minOccurs="0">
  1826. <xs:annotation>
  1827. <xs:documentation>This choice is added simply to
  1828. make this a valid restriction per the REC</xs:documentation>
  1829. </xs:annotation>
  1830. <xs:group ref="xs:simpleRestrictionModel"/>
  1831. </xs:choice>
  1832. <xs:group ref="xs:attrDecls"/>
  1833. <xs:group ref="xs:assertions"/>
  1834. </xs:sequence>
  1835. <xs:anyAttribute namespace="##other" processContents="lax"/>
  1836. </xs:restriction>
  1837. </xs:complexContent>
  1838. </xs:complexType>
  1839. <xs:complexType name="simpleExtensionType">
  1840. <xs:complexContent>
  1841. <xs:restriction base="xs:extensionType">
  1842. <xs:sequence>
  1843. <xs:annotation>
  1844. <xs:documentation>
  1845. No typeDefParticle group reference</xs:documentation>
  1846. </xs:annotation>
  1847. <xs:element ref="xs:annotation" minOccurs="0"/>
  1848. <xs:group ref="xs:attrDecls"/>
  1849. <xs:group ref="xs:assertions"/>
  1850. </xs:sequence>
  1851. <xs:anyAttribute namespace="##other" processContents="lax"/>
  1852. </xs:restriction>
  1853. </xs:complexContent>
  1854. </xs:complexType>
  1855. <xs:element name="simpleContent" id="simpleContent">
  1856. <xs:annotation>
  1857. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-simpleContent">
  1858. Contains extensions or restrictions on a text-only complex type or
  1859. on a simple type as content and contains no
  1860. elements.</xs:documentation>
  1861. </xs:annotation>
  1862. <xs:complexType>
  1863. <xs:complexContent>
  1864. <xs:extension base="xs:annotated">
  1865. <xs:choice>
  1866. <xs:element name="restriction" type="xs:simpleRestrictionType">
  1867. <xs:annotation>
  1868. <xs:documentation>Defines restrictions on a simpleType,
  1869. simpleContent, or a
  1870. complexContent. </xs:documentation>
  1871. </xs:annotation>
  1872. </xs:element>
  1873. <xs:element name="extension" type="xs:simpleExtensionType">
  1874. <xs:annotation>
  1875. <xs:documentation>Extends an existing simpleType or complexType
  1876. element. </xs:documentation>
  1877. </xs:annotation>
  1878. </xs:element>
  1879. </xs:choice>
  1880. </xs:extension>
  1881. </xs:complexContent>
  1882. </xs:complexType>
  1883. </xs:element>
  1884. <xs:element name="complexType" type="xs:topLevelComplexType" id="complexType">
  1885. <xs:annotation>
  1886. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-complexType">
  1887. Defines a top level complex type.<br/> Complex Type Definitions
  1888. provide for: <ul>
  1889. <li>Constraining element information items by providing Attribute Declarations
  1890. governing the appearance and content of
  1891. attributes.</li>
  1892. <li>Constraining element information item children to be empty, or to conform to
  1893. a specified element-only or mixed content model, or
  1894. else constraining the character information item
  1895. children to conform to a specified simple type definition.</li>
  1896. <li>Using the mechanisms of Type Definition Hierarchy to derive a complex type
  1897. from another simple or complex type.</li>
  1898. <li>Specifying post-schema-validation infoset contributions for elements.</li>
  1899. <li>Limiting the ability to derive additional types from a given complex
  1900. type.</li>
  1901. <li>Controlling the permission to substitute, in an instance, elements of a
  1902. derived type for elements declared in a content
  1903. model to be of a given complex type.</li>
  1904. </ul>
  1905. </xs:documentation>
  1906. </xs:annotation>
  1907. </xs:element>
  1908. <xs:simpleType name="blockSet">
  1909. <xs:annotation>
  1910. <xs:documentation>
  1911. A utility type, not for public use</xs:documentation>
  1912. <xs:documentation>
  1913. #all or (possibly empty) subset of {substitution, extension,
  1914. restriction}</xs:documentation>
  1915. </xs:annotation>
  1916. <xs:union>
  1917. <xs:simpleType>
  1918. <xs:restriction base="xs:token">
  1919. <xs:enumeration value="#all"/>
  1920. </xs:restriction>
  1921. </xs:simpleType>
  1922. <xs:simpleType>
  1923. <xs:list>
  1924. <xs:simpleType>
  1925. <xs:restriction base="xs:derivationControl">
  1926. <xs:enumeration value="extension"/>
  1927. <xs:enumeration value="restriction"/>
  1928. <xs:enumeration value="substitution"/>
  1929. </xs:restriction>
  1930. </xs:simpleType>
  1931. </xs:list>
  1932. </xs:simpleType>
  1933. </xs:union>
  1934. </xs:simpleType>
  1935. <xs:complexType name="element" abstract="true">
  1936. <xs:annotation>
  1937. <xs:documentation>
  1938. The element element can be used either
  1939. at the top level to define an element-type binding globally,
  1940. or within a content model to either reference a globally-defined
  1941. element or type or declare an element-type binding locally.
  1942. The ref form is not allowed at the top level.</xs:documentation>
  1943. </xs:annotation>
  1944. <xs:complexContent>
  1945. <xs:extension base="xs:annotated">
  1946. <xs:sequence>
  1947. <xs:choice minOccurs="0">
  1948. <xs:element name="simpleType" type="xs:localSimpleType">
  1949. <xs:annotation>
  1950. <xs:documentation>Specifies a local simple type.</xs:documentation>
  1951. </xs:annotation>
  1952. </xs:element>
  1953. <xs:element name="complexType" type="xs:localComplexType">
  1954. <xs:annotation>
  1955. <xs:documentation>Defines a local complex type. Complex Type
  1956. Definitions provide for: <ul>
  1957. <li>Constraining element information items by providing
  1958. Attribute Declarations
  1959. governing the appearance and content of attributes.</li>
  1960. <li>Constraining element information item children to be
  1961. empty, or to conform to
  1962. a specified element-only or mixed content model, or else
  1963. constraining the
  1964. character information item children to conform to a
  1965. specified simple type
  1966. definition.</li>
  1967. <li>Using the mechanisms of Type Definition Hierarchy to
  1968. derive a complex type
  1969. from another simple or complex type.</li>
  1970. <li>Specifying post-schema-validation infoset contributions
  1971. for elements.</li>
  1972. <li>Limiting the ability to derive additional types from a
  1973. given complex
  1974. type.</li>
  1975. <li>Controlling the permission to substitute, in an
  1976. instance, elements of a
  1977. derived type for elements declared in a content model to
  1978. be of a given
  1979. complex type.</li>
  1980. </ul>
  1981. </xs:documentation>
  1982. </xs:annotation>
  1983. </xs:element>
  1984. </xs:choice>
  1985. <xs:element name="alternative"
  1986. type="xs:altType"
  1987. minOccurs="0"
  1988. maxOccurs="unbounded">
  1989. <xs:annotation>
  1990. <xs:documentation>The &lt;alternative&gt; element is used specify an element a choice
  1991. types, depending on the value of the attributes. </xs:documentation>
  1992. </xs:annotation>
  1993. </xs:element>
  1994. <xs:group ref="xs:identityConstraint" minOccurs="0" maxOccurs="unbounded"/>
  1995. </xs:sequence>
  1996. <xs:attributeGroup ref="xs:defRef"/>
  1997. <xs:attribute name="type" type="xs:QName">
  1998. <xs:annotation>
  1999. <xs:documentation>Specifies a type definition for this element by reference
  2000. to a defined type.</xs:documentation>
  2001. </xs:annotation>
  2002. </xs:attribute>
  2003. <xs:attribute name="substitutionGroup">
  2004. <xs:annotation>
  2005. <xs:documentation>Defines the substitution group head element. XML Schema
  2006. provides a mechanism, called substitution
  2007. groups, that allows elements to be substituted for other elements. More
  2008. specifically, elements can be assigned to a special group of elements
  2009. that are said to be substitutable for a
  2010. particular named element called the head element. (Note that the head
  2011. element must be declared as a global element.).</xs:documentation>
  2012. </xs:annotation>
  2013. <xs:simpleType>
  2014. <xs:list itemType="xs:QName"/>
  2015. </xs:simpleType>
  2016. </xs:attribute>
  2017. <xs:attributeGroup ref="xs:occurs"/>
  2018. <xs:attribute name="default" type="xs:string">
  2019. <xs:annotation>
  2020. <xs:documentation>Specifies a default value for this element. The element
  2021. must have either a simple type or a complex
  2022. type emptiable and with mixed content.</xs:documentation>
  2023. </xs:annotation>
  2024. </xs:attribute>
  2025. <xs:attribute name="fixed" type="xs:string">
  2026. <xs:annotation>
  2027. <xs:documentation>Specifies a fixed value for this element. If fixed is
  2028. specified, then the element's content must
  2029. either be empty, in which case fixed behaves as default, or its value
  2030. must match the supplied constraint value.</xs:documentation>
  2031. </xs:annotation>
  2032. </xs:attribute>
  2033. <xs:attribute name="nillable" type="xs:boolean" use="optional">
  2034. <xs:annotation>
  2035. <xs:documentation>Specifies if the element is nillable, default is false. If
  2036. nillable is true then an element may also be
  2037. valid if it specifies xsi:nil="true" even if it has no text or
  2038. element content despite a content type which would otherwise require
  2039. content.</xs:documentation>
  2040. </xs:annotation>
  2041. </xs:attribute>
  2042. <xs:attribute name="abstract"
  2043. type="xs:boolean"
  2044. default="false"
  2045. use="optional">
  2046. <xs:annotation>
  2047. <xs:documentation>Specifies if the element is abstract, default is false.
  2048. Element declarations for which abstract is
  2049. true can appear in content models only when substitution is
  2050. allowed.</xs:documentation>
  2051. </xs:annotation>
  2052. </xs:attribute>
  2053. <xs:attribute name="final" type="xs:derivationSet">
  2054. <xs:annotation>
  2055. <xs:documentation>Specifies the value of the final attribute for this
  2056. element. The final attribute prevents a
  2057. specified type of derivation of an element. For elements this value can
  2058. contain #all or a list that is a subset of extension or restriction. <ul>
  2059. <li>extension - prevents derivation by extension</li>
  2060. <li>restriction - prevents derivation by restriction</li>
  2061. <li>#all - prevents all derivation.</li>
  2062. </ul>
  2063. </xs:documentation>
  2064. </xs:annotation>
  2065. </xs:attribute>
  2066. <xs:attribute name="block" type="xs:blockSet">
  2067. <xs:annotation>
  2068. <xs:documentation>Specifies the value of the block attribute on this
  2069. element. The block attribute prevents an
  2070. element that has a specified type of derivation from being used in
  2071. place of this element. This value can contain #all or a list that is a
  2072. subset of extension, restriction, or
  2073. substitution.</xs:documentation>
  2074. </xs:annotation>
  2075. </xs:attribute>
  2076. <xs:attribute name="form" type="xs:formChoice">
  2077. <xs:annotation>
  2078. <xs:documentation>Specifies the target namespace for this element. The value
  2079. must be "qualified" or "unqualified". The
  2080. default value is provided by the elementFormDefault attribute on the
  2081. enclosing &lt;schema&gt; element. <ul>
  2082. <li>"unqualified" indicates that a local element belongs to no
  2083. namespace.</li>
  2084. <li>"qualified" indicates that a local element belongs to the schema
  2085. target namespace.</li>
  2086. </ul>
  2087. </xs:documentation>
  2088. </xs:annotation>
  2089. </xs:attribute>
  2090. <xs:attribute name="targetNamespace" type="xs:anyURI">
  2091. <xs:annotation>
  2092. <xs:documentation>Specifies the target namespace for local element declarations.
  2093. The namespace URI may be different from the schema target namespace.</xs:documentation>
  2094. </xs:annotation>
  2095. </xs:attribute>
  2096. </xs:extension>
  2097. </xs:complexContent>
  2098. </xs:complexType>
  2099. <xs:complexType name="topLevelElement">
  2100. <xs:complexContent>
  2101. <xs:restriction base="xs:element">
  2102. <xs:sequence>
  2103. <xs:element ref="xs:annotation" minOccurs="0"/>
  2104. <xs:choice minOccurs="0">
  2105. <xs:element name="simpleType" type="xs:localSimpleType">
  2106. <xs:annotation>
  2107. <xs:documentation>Specifies a local simple type.</xs:documentation>
  2108. </xs:annotation>
  2109. </xs:element>
  2110. <xs:element name="complexType" type="xs:localComplexType">
  2111. <xs:annotation>
  2112. <xs:documentation>Defines a local complex type. Complex Type
  2113. Definitions provide for: <ul>
  2114. <li>Constraining element information items by providing
  2115. Attribute Declarations
  2116. governing the appearance and content of attributes.</li>
  2117. <li>Constraining element information item children to be
  2118. empty, or to conform to
  2119. a specified element-only or mixed content model, or else
  2120. constraining the
  2121. character information item children to conform to a
  2122. specified simple type
  2123. definition.</li>
  2124. <li>Using the mechanisms of Type Definition Hierarchy to
  2125. derive a complex type
  2126. from another simple or complex type.</li>
  2127. <li>Specifying post-schema-validation infoset contributions
  2128. for elements.</li>
  2129. <li>Limiting the ability to derive additional types from a
  2130. given complex
  2131. type.</li>
  2132. <li>Controlling the permission to substitute, in an
  2133. instance, elements of a
  2134. derived type for elements declared in a content model to
  2135. be of a given
  2136. complex type.</li>
  2137. </ul>
  2138. </xs:documentation>
  2139. </xs:annotation>
  2140. </xs:element>
  2141. </xs:choice>
  2142. <xs:element name="alternative"
  2143. type="xs:altType"
  2144. minOccurs="0"
  2145. maxOccurs="unbounded">
  2146. <xs:annotation>
  2147. <xs:documentation>The &lt;alternative&gt; element is used specify an element a choice
  2148. types, depending on the value of the attributes. </xs:documentation>
  2149. </xs:annotation>
  2150. </xs:element>
  2151. <xs:group ref="xs:identityConstraint" minOccurs="0" maxOccurs="unbounded"/>
  2152. </xs:sequence>
  2153. <xs:attribute name="ref" use="prohibited"/>
  2154. <xs:attribute name="form" use="prohibited"/>
  2155. <xs:attribute name="targetNamespace" use="prohibited"/>
  2156. <xs:attribute name="minOccurs" use="prohibited"/>
  2157. <xs:attribute name="maxOccurs" use="prohibited"/>
  2158. <xs:attribute name="name" type="xs:NCName" use="required">
  2159. <xs:annotation>
  2160. <xs:documentation>Specifies the required top level element
  2161. name.</xs:documentation>
  2162. </xs:annotation>
  2163. </xs:attribute>
  2164. <xs:anyAttribute namespace="##other" processContents="lax"/>
  2165. </xs:restriction>
  2166. </xs:complexContent>
  2167. </xs:complexType>
  2168. <xs:complexType name="localElement">
  2169. <xs:complexContent>
  2170. <xs:restriction base="xs:element">
  2171. <xs:sequence>
  2172. <xs:element ref="xs:annotation" minOccurs="0"/>
  2173. <xs:choice minOccurs="0">
  2174. <xs:element name="simpleType" type="xs:localSimpleType">
  2175. <xs:annotation>
  2176. <xs:documentation>Specifies a local simple type.</xs:documentation>
  2177. </xs:annotation>
  2178. </xs:element>
  2179. <xs:element name="complexType" type="xs:localComplexType">
  2180. <xs:annotation>
  2181. <xs:documentation>Defines a local complex type. Complex Type
  2182. Definitions provide for: <ul>
  2183. <li>Constraining element information items by providing
  2184. Attribute Declarations
  2185. governing the appearance and content of attributes.</li>
  2186. <li>Constraining element information item children to be
  2187. empty, or to conform to
  2188. a specified element-only or mixed content model, or else
  2189. constraining the
  2190. character information item children to conform to a
  2191. specified simple type
  2192. definition.</li>
  2193. <li>Using the mechanisms of Type Definition Hierarchy to
  2194. derive a complex type
  2195. from another simple or complex type.</li>
  2196. <li>Specifying post-schema-validation infoset contributions
  2197. for elements.</li>
  2198. <li>Limiting the ability to derive additional types from a
  2199. given complex
  2200. type.</li>
  2201. <li>Controlling the permission to substitute, in an
  2202. instance, elements of a
  2203. derived type for elements declared in a content model to
  2204. be of a given
  2205. complex type.</li>
  2206. </ul>
  2207. </xs:documentation>
  2208. </xs:annotation>
  2209. </xs:element>
  2210. </xs:choice>
  2211. <xs:element name="alternative"
  2212. type="xs:altType"
  2213. minOccurs="0"
  2214. maxOccurs="unbounded">
  2215. <xs:annotation>
  2216. <xs:documentation>The &lt;alternative&gt; element is used specify an element a choice
  2217. types, depending on the value of the attributes. </xs:documentation>
  2218. </xs:annotation>
  2219. </xs:element>
  2220. <xs:group ref="xs:identityConstraint" minOccurs="0" maxOccurs="unbounded"/>
  2221. </xs:sequence>
  2222. <xs:attribute name="substitutionGroup" use="prohibited"/>
  2223. <xs:attribute name="final" use="prohibited"/>
  2224. <xs:attribute name="abstract" use="prohibited"/>
  2225. <xs:anyAttribute namespace="##other" processContents="lax"/>
  2226. </xs:restriction>
  2227. </xs:complexContent>
  2228. </xs:complexType>
  2229. <xs:element name="element" type="xs:topLevelElement" id="element">
  2230. <xs:annotation>
  2231. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-element"> Defines an
  2232. element. An element declaration is an association of a name with a
  2233. type definition, either simple or complex, an (optional) default
  2234. value and a (possibly empty) set of identity-constraint definitions.
  2235. </xs:documentation>
  2236. </xs:annotation>
  2237. </xs:element>
  2238. <xs:complexType name="altType">
  2239. <xs:annotation>
  2240. <xs:documentation>
  2241. This type is used for 'alternative' elements.
  2242. </xs:documentation>
  2243. </xs:annotation>
  2244. <xs:complexContent>
  2245. <xs:extension base="xs:annotated">
  2246. <xs:choice minOccurs="0">
  2247. <xs:element name="simpleType" type="xs:localSimpleType">
  2248. <xs:annotation>
  2249. <xs:documentation> Defines a simple type. A simple type definition is a set of
  2250. constraints on strings and information about the values they encode, applicable to
  2251. the normalized value of an attribute information item or of an element information
  2252. item with no element children. Informally, it applies to the values of attributes
  2253. and the text-only content of elements. </xs:documentation>
  2254. </xs:annotation>
  2255. </xs:element>
  2256. <xs:element name="complexType" type="xs:localComplexType">
  2257. <xs:annotation>
  2258. <xs:documentation>Defines a local complex type. Complex Type
  2259. Definitions provide for: <ul>
  2260. <li>Constraining element information items by providing
  2261. Attribute Declarations
  2262. governing the appearance and content of attributes.</li>
  2263. <li>Constraining element information item children to be
  2264. empty, or to conform to
  2265. a specified element-only or mixed content model, or else
  2266. constraining the
  2267. character information item children to conform to a
  2268. specified simple type
  2269. definition.</li>
  2270. <li>Using the mechanisms of Type Definition Hierarchy to
  2271. derive a complex type
  2272. from another simple or complex type.</li>
  2273. <li>Specifying post-schema-validation infoset contributions
  2274. for elements.</li>
  2275. <li>Limiting the ability to derive additional types from a
  2276. given complex
  2277. type.</li>
  2278. <li>Controlling the permission to substitute, in an
  2279. instance, elements of a
  2280. derived type for elements declared in a content model to
  2281. be of a given
  2282. complex type.</li>
  2283. </ul>
  2284. </xs:documentation>
  2285. </xs:annotation>
  2286. </xs:element>
  2287. </xs:choice>
  2288. <xs:attribute name="test" type="xs:string" use="optional">
  2289. <xs:annotation>
  2290. <xs:documentation>Specifies an XPath expression. If the XPath expression is evaluated to
  2291. true,then the specified type is selected as the element type. The expressions
  2292. allowed are limited to a subset of XPath 2.0.In the XPath expression are accessible
  2293. only the attributes of the current element and inheriritable attributes from
  2294. ancestor elements. </xs:documentation>
  2295. </xs:annotation>
  2296. </xs:attribute>
  2297. <xs:attribute name="type" type="xs:QName" use="optional">
  2298. <xs:annotation>
  2299. <xs:documentation>Specifies the type of the element that should be used if the test
  2300. attribute is evaluated to true. The type specified must be derived from the element
  2301. declared type or a special simple type definition called xs:error (which has no
  2302. valid instances).</xs:documentation>
  2303. </xs:annotation>
  2304. </xs:attribute>
  2305. <xs:attribute name="xpathDefaultNamespace" type="xs:xpathDefaultNamespace">
  2306. <xs:annotation>
  2307. <xs:documentation>The default namespace used when evalueates the XPath
  2308. expression.</xs:documentation>
  2309. </xs:annotation>
  2310. </xs:attribute>
  2311. </xs:extension>
  2312. </xs:complexContent>
  2313. </xs:complexType>
  2314. <xs:complexType name="group" abstract="true">
  2315. <xs:annotation>
  2316. <xs:documentation>
  2317. group type for explicit groups, named top-level groups and
  2318. group references</xs:documentation>
  2319. </xs:annotation>
  2320. <xs:complexContent>
  2321. <xs:extension base="xs:annotated">
  2322. <xs:group ref="xs:particle" minOccurs="0" maxOccurs="unbounded"/>
  2323. <xs:attributeGroup ref="xs:defRef"/>
  2324. <xs:attributeGroup ref="xs:occurs"/>
  2325. </xs:extension>
  2326. </xs:complexContent>
  2327. </xs:complexType>
  2328. <xs:complexType name="realGroup">
  2329. <xs:complexContent>
  2330. <xs:restriction base="xs:group">
  2331. <xs:sequence>
  2332. <xs:element ref="xs:annotation" minOccurs="0"/>
  2333. <xs:choice minOccurs="0" maxOccurs="1">
  2334. <xs:element ref="xs:all"/>
  2335. <xs:element ref="xs:choice"/>
  2336. <xs:element ref="xs:sequence"/>
  2337. </xs:choice>
  2338. </xs:sequence>
  2339. <xs:anyAttribute namespace="##other" processContents="lax"/>
  2340. </xs:restriction>
  2341. </xs:complexContent>
  2342. </xs:complexType>
  2343. <xs:complexType name="namedGroup">
  2344. <xs:complexContent>
  2345. <xs:restriction base="xs:realGroup">
  2346. <xs:sequence>
  2347. <xs:element ref="xs:annotation" minOccurs="0"/>
  2348. <xs:choice minOccurs="1" maxOccurs="1">
  2349. <xs:element name="all">
  2350. <xs:annotation>
  2351. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-all">
  2352. Specifies that the child
  2353. elements can appear in any order. Each child element can occur 0
  2354. or 1
  2355. time.</xs:documentation>
  2356. </xs:annotation>
  2357. <xs:complexType>
  2358. <xs:complexContent>
  2359. <xs:restriction base="xs:all">
  2360. <xs:group ref="xs:allModel"/>
  2361. <xs:attribute name="minOccurs" use="prohibited"/>
  2362. <xs:attribute name="maxOccurs" use="prohibited"/>
  2363. <xs:anyAttribute namespace="##other" processContents="lax"/>
  2364. </xs:restriction>
  2365. </xs:complexContent>
  2366. </xs:complexType>
  2367. </xs:element>
  2368. <xs:element name="choice" type="xs:simpleExplicitGroup">
  2369. <xs:annotation>
  2370. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-choice">
  2371. Allows only one of the
  2372. elements contained in the &lt;choice&gt; declaration to be
  2373. present within the containing element.</xs:documentation>
  2374. </xs:annotation>
  2375. </xs:element>
  2376. <xs:element name="sequence" type="xs:simpleExplicitGroup">
  2377. <xs:annotation>
  2378. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-sequence">
  2379. Specifies that the child
  2380. elements must appear in a sequence. Each child element can occur
  2381. from 0 to any number of
  2382. times.</xs:documentation>
  2383. </xs:annotation>
  2384. </xs:element>
  2385. </xs:choice>
  2386. </xs:sequence>
  2387. <xs:attribute name="name" type="xs:NCName" use="required">
  2388. <xs:annotation>
  2389. <xs:documentation>Specifies the required named group
  2390. name.</xs:documentation>
  2391. </xs:annotation>
  2392. </xs:attribute>
  2393. <xs:attribute name="ref" use="prohibited"/>
  2394. <xs:attribute name="minOccurs" use="prohibited"/>
  2395. <xs:attribute name="maxOccurs" use="prohibited"/>
  2396. <xs:anyAttribute namespace="##other" processContents="lax"/>
  2397. </xs:restriction>
  2398. </xs:complexContent>
  2399. </xs:complexType>
  2400. <xs:complexType name="groupRef">
  2401. <xs:complexContent>
  2402. <xs:restriction base="xs:realGroup">
  2403. <xs:sequence>
  2404. <xs:element ref="xs:annotation" minOccurs="0"/>
  2405. </xs:sequence>
  2406. <xs:attribute name="ref" type="xs:QName" use="required">
  2407. <xs:annotation>
  2408. <xs:documentation>Specifies the group this group reference points
  2409. to.</xs:documentation>
  2410. </xs:annotation>
  2411. </xs:attribute>
  2412. <xs:attribute name="name" use="prohibited"/>
  2413. <xs:anyAttribute namespace="##other" processContents="lax"/>
  2414. </xs:restriction>
  2415. </xs:complexContent>
  2416. </xs:complexType>
  2417. <xs:complexType name="explicitGroup">
  2418. <xs:annotation>
  2419. <xs:documentation>
  2420. group type for the three kinds of group</xs:documentation>
  2421. </xs:annotation>
  2422. <xs:complexContent>
  2423. <xs:restriction base="xs:group">
  2424. <xs:sequence>
  2425. <xs:element ref="xs:annotation" minOccurs="0"/>
  2426. <xs:group ref="xs:nestedParticle" minOccurs="0" maxOccurs="unbounded"/>
  2427. </xs:sequence>
  2428. <xs:attribute name="name" use="prohibited"/>
  2429. <xs:attribute name="ref" use="prohibited"/>
  2430. <xs:anyAttribute namespace="##other" processContents="lax"/>
  2431. </xs:restriction>
  2432. </xs:complexContent>
  2433. </xs:complexType>
  2434. <xs:complexType name="simpleExplicitGroup">
  2435. <xs:complexContent>
  2436. <xs:restriction base="xs:explicitGroup">
  2437. <xs:sequence>
  2438. <xs:element ref="xs:annotation" minOccurs="0"/>
  2439. <xs:group ref="xs:nestedParticle" minOccurs="0" maxOccurs="unbounded"/>
  2440. </xs:sequence>
  2441. <xs:attribute name="minOccurs" use="prohibited"/>
  2442. <xs:attribute name="maxOccurs" use="prohibited"/>
  2443. <xs:anyAttribute namespace="##other" processContents="lax"/>
  2444. </xs:restriction>
  2445. </xs:complexContent>
  2446. </xs:complexType>
  2447. <xs:group name="allModel">
  2448. <xs:sequence>
  2449. <xs:element ref="xs:annotation" minOccurs="0"/>
  2450. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2451. <xs:annotation>
  2452. <xs:documentation>This choice with min/max is here to
  2453. avoid a pblm with the Elt:All/Choice/Seq
  2454. Particle derivation constraint</xs:documentation>
  2455. </xs:annotation>
  2456. <xs:element name="element" type="xs:localElement">
  2457. <xs:annotation>
  2458. <xs:documentation>Specifies a local element or a reference to a global
  2459. element.</xs:documentation>
  2460. </xs:annotation>
  2461. </xs:element>
  2462. <xs:element ref="xs:any"/>
  2463. <xs:element name="group">
  2464. <xs:annotation>
  2465. <xs:documentation>Specifies a group reference.</xs:documentation>
  2466. </xs:annotation>
  2467. <xs:complexType>
  2468. <xs:complexContent>
  2469. <xs:restriction base="xs:groupRef">
  2470. <xs:sequence>
  2471. <xs:element ref="xs:annotation" minOccurs="0"/>
  2472. </xs:sequence>
  2473. <xs:attribute name="minOccurs" fixed="1" type="xs:nonNegativeInteger"/>
  2474. <xs:attribute name="maxOccurs" fixed="1" type="xs:nonNegativeInteger"/>
  2475. </xs:restriction>
  2476. </xs:complexContent>
  2477. </xs:complexType>
  2478. </xs:element>
  2479. </xs:choice>
  2480. </xs:sequence>
  2481. </xs:group>
  2482. <xs:complexType name="all">
  2483. <xs:annotation>
  2484. <xs:documentation>
  2485. Only elements allowed inside</xs:documentation>
  2486. </xs:annotation>
  2487. <xs:complexContent>
  2488. <xs:restriction base="xs:explicitGroup">
  2489. <xs:group ref="xs:allModel"/>
  2490. <xs:attribute name="minOccurs" default="1" use="optional">
  2491. <xs:annotation>
  2492. <xs:documentation>Specifies the minimum number of occurrences, possible
  2493. values are 0 and 1, default is
  2494. 1.</xs:documentation>
  2495. </xs:annotation>
  2496. <xs:simpleType>
  2497. <xs:restriction base="xs:nonNegativeInteger">
  2498. <xs:enumeration value="0"/>
  2499. <xs:enumeration value="1"/>
  2500. </xs:restriction>
  2501. </xs:simpleType>
  2502. </xs:attribute>
  2503. <xs:attribute name="maxOccurs" default="1" use="optional">
  2504. <xs:annotation>
  2505. <xs:documentation>Specifies the maximum number of occurrences, possible
  2506. value is 1, default is 1.</xs:documentation>
  2507. </xs:annotation>
  2508. <xs:simpleType>
  2509. <xs:restriction base="xs:allNNI">
  2510. <xs:enumeration value="0"/>
  2511. <xs:enumeration value="1"/>
  2512. </xs:restriction>
  2513. </xs:simpleType>
  2514. </xs:attribute>
  2515. <xs:anyAttribute namespace="##other" processContents="lax"/>
  2516. </xs:restriction>
  2517. </xs:complexContent>
  2518. </xs:complexType>
  2519. <xs:element name="all" type="xs:all" id="all">
  2520. <xs:annotation>
  2521. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-all"> Specifies that
  2522. the child elements can appear in any order. Each child element can
  2523. occur 0 or 1 time. </xs:documentation>
  2524. </xs:annotation>
  2525. </xs:element>
  2526. <xs:element name="choice" type="xs:explicitGroup" id="choice">
  2527. <xs:annotation>
  2528. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-choice"> Allows only
  2529. one of the elements contained in the &lt;choice&gt; declaration to
  2530. be present within the containing element.</xs:documentation>
  2531. </xs:annotation>
  2532. </xs:element>
  2533. <xs:element name="sequence" type="xs:explicitGroup" id="sequence">
  2534. <xs:annotation>
  2535. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-sequence"> Specifies
  2536. that the child elements must appear in a sequence. Each child
  2537. element can occur from 0 to any number of times.</xs:documentation>
  2538. </xs:annotation>
  2539. </xs:element>
  2540. <xs:element name="group" type="xs:namedGroup" id="group">
  2541. <xs:annotation>
  2542. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-group"> Defines a
  2543. group of elements to be used in complex type
  2544. definitions.</xs:documentation>
  2545. </xs:annotation>
  2546. </xs:element>
  2547. <xs:attributeGroup name="anyAttrGroup">
  2548. <xs:attribute name="namespace" type="xs:namespaceList" use="optional">
  2549. <xs:annotation>
  2550. <xs:documentation>Specifies the namespace(s) allowed by the wildcard, default is ##any
  2551. standing for any namespace.</xs:documentation>
  2552. </xs:annotation>
  2553. </xs:attribute>
  2554. <xs:attribute name="notNamespace" use="optional">
  2555. <xs:annotation>
  2556. <xs:documentation>Specify the namespace that extension elements or attributes cannot come from.</xs:documentation>
  2557. </xs:annotation>
  2558. <xs:simpleType>
  2559. <xs:restriction base="xs:basicNamespaceList">
  2560. <xs:minLength value="1"/>
  2561. </xs:restriction>
  2562. </xs:simpleType>
  2563. </xs:attribute>
  2564. <xs:attribute name="processContents" default="strict" use="optional">
  2565. <xs:annotation>
  2566. <xs:documentation>Specifies the validation constraint to be applied on the content that
  2567. matched the wildcard. Possible values are <ul>
  2568. <li>skip - that means no validation</li>
  2569. <li>lax - that means validation will be performed if a schema is available</li>
  2570. <li>strict - that means validation is required </li>
  2571. </ul> The default is strict. </xs:documentation>
  2572. </xs:annotation>
  2573. <xs:simpleType>
  2574. <xs:restriction base="xs:NMTOKEN">
  2575. <xs:enumeration value="skip"/>
  2576. <xs:enumeration value="lax"/>
  2577. <xs:enumeration value="strict"/>
  2578. </xs:restriction>
  2579. </xs:simpleType>
  2580. </xs:attribute>
  2581. </xs:attributeGroup>
  2582. <xs:complexType name="wildcard">
  2583. <xs:complexContent>
  2584. <xs:extension base="xs:annotated">
  2585. <xs:attributeGroup ref="xs:anyAttrGroup"/>
  2586. </xs:extension>
  2587. </xs:complexContent>
  2588. </xs:complexType>
  2589. <xs:element name="any" id="any">
  2590. <xs:annotation>
  2591. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-any"> Enables the
  2592. author to extend the XML document with elements not specified by the
  2593. schema.</xs:documentation>
  2594. </xs:annotation>
  2595. <xs:complexType>
  2596. <xs:complexContent>
  2597. <xs:extension base="xs:wildcard">
  2598. <xs:attribute name="notQName" type="xs:qnameList" use="optional">
  2599. <xs:annotation>
  2600. <xs:documentation>Specify an element or attribute that is not allowed.</xs:documentation>
  2601. </xs:annotation>
  2602. </xs:attribute>
  2603. <xs:attributeGroup ref="xs:occurs"/>
  2604. </xs:extension>
  2605. </xs:complexContent>
  2606. </xs:complexType>
  2607. </xs:element>
  2608. <xs:annotation>
  2609. <xs:documentation>
  2610. simple type for the value of the 'namespace' attr of
  2611. 'any' and 'anyAttribute'</xs:documentation>
  2612. </xs:annotation>
  2613. <xs:annotation>
  2614. <xs:documentation>
  2615. Value is
  2616. ##any - - any non-conflicting WFXML/attribute at all
  2617. ##other - - any non-conflicting WFXML/attribute from
  2618. namespace other than targetNS
  2619. ##local - - any unqualified non-conflicting WFXML/attribute
  2620. one or - - any non-conflicting WFXML/attribute from
  2621. more URI the listed namespaces
  2622. references
  2623. (space separated)
  2624. ##targetNamespace or ##local may appear in the above list, to
  2625. refer to the targetNamespace of the enclosing
  2626. schema or an absent targetNamespace respectively</xs:documentation>
  2627. </xs:annotation>
  2628. <xs:simpleType name="namespaceList">
  2629. <xs:annotation>
  2630. <xs:documentation>
  2631. A utility type, not for public use</xs:documentation>
  2632. </xs:annotation>
  2633. <xs:union memberTypes="xs:specialNamespaceList xs:basicNamespaceList"/>
  2634. </xs:simpleType>
  2635. <xs:simpleType name="basicNamespaceList">
  2636. <xs:annotation>
  2637. <xs:documentation>
  2638. A utility type, not for public use</xs:documentation>
  2639. </xs:annotation>
  2640. <xs:list>
  2641. <xs:simpleType>
  2642. <xs:union memberTypes="xs:anyURI">
  2643. <xs:simpleType>
  2644. <xs:restriction base="xs:token">
  2645. <xs:enumeration value="##targetNamespace"/>
  2646. <xs:enumeration value="##local"/>
  2647. </xs:restriction>
  2648. </xs:simpleType>
  2649. </xs:union>
  2650. </xs:simpleType>
  2651. </xs:list>
  2652. </xs:simpleType>
  2653. <xs:simpleType name="specialNamespaceList">
  2654. <xs:annotation>
  2655. <xs:documentation>
  2656. A utility type, not for public use</xs:documentation>
  2657. </xs:annotation>
  2658. <xs:restriction base="xs:token">
  2659. <xs:enumeration value="##any"/>
  2660. <xs:enumeration value="##other"/>
  2661. </xs:restriction>
  2662. </xs:simpleType>
  2663. <xs:simpleType name="qnameList">
  2664. <xs:annotation>
  2665. <xs:documentation>
  2666. A utility type, not for public use
  2667. </xs:documentation>
  2668. </xs:annotation>
  2669. <xs:list>
  2670. <xs:simpleType>
  2671. <xs:union memberTypes="xs:QName">
  2672. <xs:simpleType>
  2673. <xs:restriction base="xs:token">
  2674. <xs:enumeration value="##defined"/>
  2675. <xs:enumeration value="##definedSibling"/>
  2676. </xs:restriction>
  2677. </xs:simpleType>
  2678. </xs:union>
  2679. </xs:simpleType>
  2680. </xs:list>
  2681. </xs:simpleType>
  2682. <xs:simpleType name="qnameListA">
  2683. <xs:annotation>
  2684. <xs:documentation>
  2685. A utility type, not for public use
  2686. </xs:documentation>
  2687. </xs:annotation>
  2688. <xs:list>
  2689. <xs:simpleType>
  2690. <xs:union memberTypes="xs:QName">
  2691. <xs:simpleType>
  2692. <xs:restriction base="xs:token">
  2693. <xs:enumeration value="##defined"/>
  2694. </xs:restriction>
  2695. </xs:simpleType>
  2696. </xs:union>
  2697. </xs:simpleType>
  2698. </xs:list>
  2699. </xs:simpleType>
  2700. <xs:simpleType name="xpathDefaultNamespace">
  2701. <xs:union memberTypes="xs:anyURI">
  2702. <xs:simpleType>
  2703. <xs:restriction base="xs:token">
  2704. <xs:enumeration value="##defaultNamespace"/>
  2705. <xs:enumeration value="##targetNamespace"/>
  2706. <xs:enumeration value="##local"/>
  2707. </xs:restriction>
  2708. </xs:simpleType>
  2709. </xs:union>
  2710. </xs:simpleType>
  2711. <xs:element name="attribute" type="xs:topLevelAttribute" id="attribute">
  2712. <xs:annotation>
  2713. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-attribute"> Defines
  2714. an attribute.</xs:documentation>
  2715. </xs:annotation>
  2716. </xs:element>
  2717. <xs:complexType name="attributeGroup" abstract="true">
  2718. <xs:complexContent>
  2719. <xs:extension base="xs:annotated">
  2720. <xs:group ref="xs:attrDecls"/>
  2721. <xs:attributeGroup ref="xs:defRef"/>
  2722. </xs:extension>
  2723. </xs:complexContent>
  2724. </xs:complexType>
  2725. <xs:complexType name="namedAttributeGroup">
  2726. <xs:complexContent>
  2727. <xs:restriction base="xs:attributeGroup">
  2728. <xs:sequence>
  2729. <xs:element ref="xs:annotation" minOccurs="0"/>
  2730. <xs:group ref="xs:attrDecls"/>
  2731. </xs:sequence>
  2732. <xs:attribute name="name" type="xs:NCName" use="required">
  2733. <xs:annotation>
  2734. <xs:documentation>Specifies the required named attribute group
  2735. name.</xs:documentation>
  2736. </xs:annotation>
  2737. </xs:attribute>
  2738. <xs:attribute name="ref" use="prohibited"/>
  2739. <xs:anyAttribute namespace="##other" processContents="lax"/>
  2740. </xs:restriction>
  2741. </xs:complexContent>
  2742. </xs:complexType>
  2743. <xs:complexType name="attributeGroupRef">
  2744. <xs:complexContent>
  2745. <xs:restriction base="xs:attributeGroup">
  2746. <xs:sequence>
  2747. <xs:element ref="xs:annotation" minOccurs="0"/>
  2748. </xs:sequence>
  2749. <xs:attribute name="ref" type="xs:QName" use="required">
  2750. <xs:annotation>
  2751. <xs:documentation>Specifies the attribute group this attribute group
  2752. reference points to.</xs:documentation>
  2753. </xs:annotation>
  2754. </xs:attribute>
  2755. <xs:attribute name="name" use="prohibited"/>
  2756. <xs:anyAttribute namespace="##other" processContents="lax"/>
  2757. </xs:restriction>
  2758. </xs:complexContent>
  2759. </xs:complexType>
  2760. <xs:element name="attributeGroup"
  2761. type="xs:namedAttributeGroup"
  2762. id="attributeGroup">
  2763. <xs:annotation>
  2764. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-attributeGroup">Defines an attribute group to be used in complex type
  2765. definitions.</xs:documentation>
  2766. </xs:annotation>
  2767. </xs:element>
  2768. <xs:element name="include" id="include">
  2769. <xs:annotation>
  2770. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-include"> Adds
  2771. multiple schemas with the same target namespace to a
  2772. document.</xs:documentation>
  2773. </xs:annotation>
  2774. <xs:complexType>
  2775. <xs:complexContent>
  2776. <xs:extension base="xs:annotated">
  2777. <xs:attribute name="schemaLocation" type="xs:anyURI" use="required">
  2778. <xs:annotation>
  2779. <xs:documentation>Required. Specifies the URI to the schema to include
  2780. in the target namespace of the
  2781. containing schema.</xs:documentation>
  2782. </xs:annotation>
  2783. </xs:attribute>
  2784. </xs:extension>
  2785. </xs:complexContent>
  2786. </xs:complexType>
  2787. </xs:element>
  2788. <xs:element name="redefine" id="redefine">
  2789. <xs:annotation>
  2790. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-redefine"> Redefines
  2791. simple and complex types, groups, and attribute groups from an
  2792. external schema.</xs:documentation>
  2793. </xs:annotation>
  2794. <xs:complexType>
  2795. <xs:complexContent>
  2796. <xs:extension base="xs:openAttrs">
  2797. <xs:choice minOccurs="0" maxOccurs="unbounded">
  2798. <xs:element ref="xs:annotation"/>
  2799. <xs:group ref="xs:redefinable"/>
  2800. </xs:choice>
  2801. <xs:attribute name="schemaLocation" type="xs:anyURI" use="required">
  2802. <xs:annotation>
  2803. <xs:documentation>Required. A URI to the location of a schema
  2804. document.</xs:documentation>
  2805. </xs:annotation>
  2806. </xs:attribute>
  2807. <xs:attribute name="id" type="xs:ID">
  2808. <xs:annotation>
  2809. <xs:documentation>Optional. Specifies a unique ID for the
  2810. element.</xs:documentation>
  2811. </xs:annotation>
  2812. </xs:attribute>
  2813. </xs:extension>
  2814. </xs:complexContent>
  2815. </xs:complexType>
  2816. </xs:element>
  2817. <xs:element name="override" id="override">
  2818. <xs:annotation>
  2819. <xs:documentation source="http://www.w3.org/TR/xmlschema11-1/structures.html#element-override">
  2820. Overrides simple and complex types, groups, and attribute groups from an external schema.
  2821. Does not imposes constraints on the new definitions provided for components whose definitions are
  2822. being overridden. </xs:documentation>
  2823. </xs:annotation>
  2824. <xs:complexType>
  2825. <xs:complexContent>
  2826. <xs:extension base="xs:openAttrs">
  2827. <xs:sequence>
  2828. <xs:element ref="xs:annotation" minOccurs="0"/>
  2829. <xs:group ref="xs:schemaTop" minOccurs="0" maxOccurs="unbounded"/>
  2830. </xs:sequence>
  2831. <xs:attribute name="schemaLocation" type="xs:anyURI" use="required">
  2832. <xs:annotation>
  2833. <xs:documentation>Required. A URI to the location of a schema
  2834. document.</xs:documentation>
  2835. </xs:annotation>
  2836. </xs:attribute>
  2837. <xs:attribute name="id" type="xs:ID"/>
  2838. </xs:extension>
  2839. </xs:complexContent>
  2840. </xs:complexType>
  2841. </xs:element>
  2842. <xs:element name="import" id="import">
  2843. <xs:annotation>
  2844. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-import"> Adds
  2845. multiple schemas with different target namespace to a
  2846. document.</xs:documentation>
  2847. </xs:annotation>
  2848. <xs:complexType>
  2849. <xs:complexContent>
  2850. <xs:extension base="xs:annotated">
  2851. <xs:attribute name="namespace" type="xs:anyURI">
  2852. <xs:annotation>
  2853. <xs:documentation>Required. Specifies the URI of the namespace to
  2854. import.</xs:documentation>
  2855. </xs:annotation>
  2856. </xs:attribute>
  2857. <xs:attribute name="schemaLocation" type="xs:anyURI">
  2858. <xs:annotation>
  2859. <xs:documentation>Optional. Specifies the URI to the schema for the
  2860. imported
  2861. namespace.</xs:documentation>
  2862. </xs:annotation>
  2863. </xs:attribute>
  2864. </xs:extension>
  2865. </xs:complexContent>
  2866. </xs:complexType>
  2867. </xs:element>
  2868. <xs:element name="selector" id="selector">
  2869. <xs:annotation>
  2870. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-selector"> Specifies
  2871. an XPath expression that selects a set of elements for an identity
  2872. constraint. </xs:documentation>
  2873. </xs:annotation>
  2874. <xs:complexType>
  2875. <xs:complexContent>
  2876. <xs:extension base="xs:annotated">
  2877. <xs:attribute name="xpath" use="required">
  2878. <xs:annotation>
  2879. <xs:documentation>Defines the XPath selector
  2880. expression.</xs:documentation>
  2881. </xs:annotation>
  2882. <xs:simpleType>
  2883. <xs:annotation>
  2884. <xs:documentation>A subset of XPath expressions for use
  2885. in selectors</xs:documentation>
  2886. <xs:documentation>A utility type, not for public
  2887. use</xs:documentation>
  2888. </xs:annotation>
  2889. <xs:restriction base="xs:token"/>
  2890. </xs:simpleType>
  2891. </xs:attribute>
  2892. <xs:attribute name="xpathDefaultNamespace" type="xs:xpathDefaultNamespace">
  2893. <xs:annotation>
  2894. <xs:documentation>The default namespace used when evalueates the XPath
  2895. expression.</xs:documentation>
  2896. </xs:annotation>
  2897. </xs:attribute>
  2898. </xs:extension>
  2899. </xs:complexContent>
  2900. </xs:complexType>
  2901. </xs:element>
  2902. <xs:element name="field" id="field">
  2903. <xs:annotation>
  2904. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-field"> Specifies an
  2905. XPath expression that specifies the value used to define an identity
  2906. constraint.</xs:documentation>
  2907. </xs:annotation>
  2908. <xs:complexType>
  2909. <xs:complexContent>
  2910. <xs:extension base="xs:annotated">
  2911. <xs:attribute name="xpath" use="required">
  2912. <xs:annotation>
  2913. <xs:documentation>Required. Identifies a single element or attribute
  2914. whose content or value is used for
  2915. the constraint.</xs:documentation>
  2916. </xs:annotation>
  2917. <xs:simpleType>
  2918. <xs:annotation>
  2919. <xs:documentation>A subset of XPath expressions for use
  2920. in fields</xs:documentation>
  2921. <xs:documentation>A utility type, not for public
  2922. use</xs:documentation>
  2923. </xs:annotation>
  2924. <xs:restriction base="xs:token"/>
  2925. </xs:simpleType>
  2926. </xs:attribute>
  2927. <xs:attribute name="xpathDefaultNamespace" type="xs:xpathDefaultNamespace">
  2928. <xs:annotation>
  2929. <xs:documentation>The default namespace used when evalueates the XPath
  2930. expression.</xs:documentation>
  2931. </xs:annotation>
  2932. </xs:attribute>
  2933. </xs:extension>
  2934. </xs:complexContent>
  2935. </xs:complexType>
  2936. </xs:element>
  2937. <xs:complexType name="keybase">
  2938. <xs:complexContent>
  2939. <xs:extension base="xs:annotated">
  2940. <xs:sequence minOccurs="0">
  2941. <xs:element ref="xs:selector"/>
  2942. <xs:element ref="xs:field" minOccurs="1" maxOccurs="unbounded"/>
  2943. </xs:sequence>
  2944. <xs:attribute name="name" type="xs:NCName">
  2945. <xs:annotation>
  2946. <xs:documentation>Specifies the required identity constraint
  2947. name.</xs:documentation>
  2948. </xs:annotation>
  2949. </xs:attribute>
  2950. <xs:attribute name="ref" type="xs:QName"/>
  2951. </xs:extension>
  2952. </xs:complexContent>
  2953. </xs:complexType>
  2954. <xs:group name="identityConstraint">
  2955. <xs:annotation>
  2956. <xs:documentation>The three kinds of identity constraints, all with
  2957. type of or derived from 'keybase'.
  2958. </xs:documentation>
  2959. </xs:annotation>
  2960. <xs:choice>
  2961. <xs:element ref="xs:unique"/>
  2962. <xs:element ref="xs:key"/>
  2963. <xs:element ref="xs:keyref"/>
  2964. </xs:choice>
  2965. </xs:group>
  2966. <xs:element name="unique" type="xs:keybase" id="unique">
  2967. <xs:annotation>
  2968. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-unique"> Defines
  2969. that an element or an attribute value must be unique within the
  2970. scope. </xs:documentation>
  2971. </xs:annotation>
  2972. </xs:element>
  2973. <xs:element name="key" type="xs:keybase" id="key">
  2974. <xs:annotation>
  2975. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-key"> Specifies an
  2976. attribute or element value as a key (unique, non-nullable, and
  2977. always present) within the containing element in an instance
  2978. document. </xs:documentation>
  2979. </xs:annotation>
  2980. </xs:element>
  2981. <xs:element name="keyref" id="keyref">
  2982. <xs:annotation>
  2983. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-keyref"> Specifies
  2984. that an attribute or element value correspond to those of the
  2985. specified key or unique element.</xs:documentation>
  2986. </xs:annotation>
  2987. <xs:complexType>
  2988. <xs:complexContent>
  2989. <xs:extension base="xs:keybase">
  2990. <xs:attribute name="refer" type="xs:QName">
  2991. <xs:annotation>
  2992. <xs:documentation>Required. Specifies the name of a key or unique
  2993. element defined in this or another
  2994. schema.</xs:documentation>
  2995. </xs:annotation>
  2996. </xs:attribute>
  2997. </xs:extension>
  2998. </xs:complexContent>
  2999. </xs:complexType>
  3000. </xs:element>
  3001. <xs:element name="notation" id="notation">
  3002. <xs:annotation>
  3003. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-notation"> Describes
  3004. the format of non-XML data within an XML
  3005. document.</xs:documentation>
  3006. </xs:annotation>
  3007. <xs:complexType>
  3008. <xs:complexContent>
  3009. <xs:extension base="xs:annotated">
  3010. <xs:attribute name="name" type="xs:NCName" use="required">
  3011. <xs:annotation>
  3012. <xs:documentation>Required. Specifies a name for the
  3013. notation.</xs:documentation>
  3014. </xs:annotation>
  3015. </xs:attribute>
  3016. <xs:attribute name="public" type="xs:public">
  3017. <xs:annotation>
  3018. <xs:documentation>Required. Specifies a URI corresponding to the public
  3019. identifier.</xs:documentation>
  3020. </xs:annotation>
  3021. </xs:attribute>
  3022. <xs:attribute name="system" type="xs:anyURI">
  3023. <xs:annotation>
  3024. <xs:documentation>Optional. Specifies a URI corresponding to the system
  3025. identifier. </xs:documentation>
  3026. </xs:annotation>
  3027. </xs:attribute>
  3028. </xs:extension>
  3029. </xs:complexContent>
  3030. </xs:complexType>
  3031. </xs:element>
  3032. <xs:simpleType name="public">
  3033. <xs:annotation>
  3034. <xs:documentation>
  3035. A utility type, not for public use</xs:documentation>
  3036. <xs:documentation>
  3037. A public identifier, per ISO 8879</xs:documentation>
  3038. </xs:annotation>
  3039. <xs:restriction base="xs:token"/>
  3040. </xs:simpleType>
  3041. <xs:element name="appinfo" id="appinfo">
  3042. <xs:annotation>
  3043. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-appinfo"> Specifies
  3044. information to be used by the application. </xs:documentation>
  3045. </xs:annotation>
  3046. <xs:complexType mixed="true">
  3047. <xs:sequence minOccurs="0" maxOccurs="unbounded">
  3048. <xs:any processContents="lax"/>
  3049. </xs:sequence>
  3050. <xs:attribute name="source" type="xs:anyURI">
  3051. <xs:annotation>
  3052. <xs:documentation>Optional. A URI reference that specifies the source of the
  3053. application information. </xs:documentation>
  3054. </xs:annotation>
  3055. </xs:attribute>
  3056. <xs:anyAttribute namespace="##other" processContents="lax"/>
  3057. </xs:complexType>
  3058. </xs:element>
  3059. <xs:element name="documentation" id="documentation">
  3060. <xs:annotation>
  3061. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-documentation">
  3062. Defines text comments in a schema. </xs:documentation>
  3063. </xs:annotation>
  3064. <xs:complexType mixed="true">
  3065. <xs:sequence minOccurs="0" maxOccurs="unbounded">
  3066. <xs:any processContents="lax"/>
  3067. </xs:sequence>
  3068. <xs:attribute name="source" type="xs:anyURI">
  3069. <xs:annotation>
  3070. <xs:documentation>Optional. Specifies the source of the application
  3071. information.</xs:documentation>
  3072. </xs:annotation>
  3073. </xs:attribute>
  3074. <xs:attribute ref="xml:lang"/>
  3075. <xs:anyAttribute namespace="##other" processContents="lax"/>
  3076. </xs:complexType>
  3077. </xs:element>
  3078. <xs:element name="annotation" id="annotation">
  3079. <xs:annotation>
  3080. <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-annotation">Specifies schema comments.</xs:documentation>
  3081. </xs:annotation>
  3082. <xs:complexType>
  3083. <xs:complexContent>
  3084. <xs:extension base="xs:openAttrs">
  3085. <xs:choice minOccurs="0" maxOccurs="unbounded">
  3086. <xs:element ref="xs:appinfo"/>
  3087. <xs:element ref="xs:documentation"/>
  3088. </xs:choice>
  3089. <xs:attribute name="id" type="xs:ID">
  3090. <xs:annotation>
  3091. <xs:documentation>Optional. Specifies a unique ID for the
  3092. element.</xs:documentation>
  3093. </xs:annotation>
  3094. </xs:attribute>
  3095. </xs:extension>
  3096. </xs:complexContent>
  3097. </xs:complexType>
  3098. </xs:element>
  3099. <xs:annotation>
  3100. <xs:documentation>
  3101. notations for use within schema documents</xs:documentation>
  3102. </xs:annotation>
  3103. <xs:notation name="XMLSchemaStructures"
  3104. public="structures"
  3105. system="http://www.w3.org/2000/08/XMLSchema.xsd"/>
  3106. <xs:notation name="XML"
  3107. public="REC-xml-19980210"
  3108. system="http://www.w3.org/TR/1998/REC-xml-19980210"/>
  3109. <xs:complexType name="anyType" mixed="true">
  3110. <xs:annotation>
  3111. <xs:documentation>
  3112. Not the real urType, but as close an approximation as we can
  3113. get in the XML representation</xs:documentation>
  3114. </xs:annotation>
  3115. <xs:sequence>
  3116. <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
  3117. </xs:sequence>
  3118. <xs:anyAttribute processContents="lax"/>
  3119. </xs:complexType>
  3120. <xs:annotation>
  3121. <xs:documentation>
  3122. In keeping with the XML Schema WG's standard versioning policy,
  3123. the material in this schema document will persist at the URI
  3124. http://www.w3.org/2012/04/XMLSchema.xsd.
  3125. At the date of issue it can also be found at the URI
  3126. http://www.w3.org/2009/XMLSchema/XMLSchema.xsd.
  3127. The schema document at that URI may however change in the future,
  3128. in order to remain compatible with the latest version of XSD
  3129. and its namespace. In other words, if XSD or the XML Schema
  3130. namespace change, the version of this document at
  3131. http://www.w3.org/2009/XMLSchema/XMLSchema.xsd will change accordingly;
  3132. the version at http://www.w3.org/2012/04/XMLSchema.xsd will not change.
  3133. Previous dated (and unchanging) versions of this schema document
  3134. include:
  3135. http://www.w3.org/2012/01/XMLSchema.xsd
  3136. (XSD 1.1 Proposed Recommendation)
  3137. http://www.w3.org/2011/07/XMLSchema.xsd
  3138. (XSD 1.1 Candidate Recommendation)
  3139. http://www.w3.org/2009/04/XMLSchema.xsd
  3140. (XSD 1.1 Candidate Recommendation)
  3141. http://www.w3.org/2004/10/XMLSchema.xsd
  3142. (XSD 1.0 Recommendation, Second Edition)
  3143. http://www.w3.org/2001/05/XMLSchema.xsd
  3144. (XSD 1.0 Recommendation, First Edition)
  3145. </xs:documentation>
  3146. </xs:annotation>
  3147. <xs:simpleType name="derivationControl">
  3148. <xs:annotation>
  3149. <xs:documentation>
  3150. A utility type, not for public use</xs:documentation>
  3151. </xs:annotation>
  3152. <xs:restriction base="xs:NMTOKEN">
  3153. <xs:enumeration value="substitution"/>
  3154. <xs:enumeration value="extension"/>
  3155. <xs:enumeration value="restriction"/>
  3156. <xs:enumeration value="list"/>
  3157. <xs:enumeration value="union"/>
  3158. </xs:restriction>
  3159. </xs:simpleType>
  3160. <xs:group name="simpleDerivation">
  3161. <xs:choice>
  3162. <xs:element ref="xs:restriction"/>
  3163. <xs:element ref="xs:list"/>
  3164. <xs:element ref="xs:union"/>
  3165. </xs:choice>
  3166. </xs:group>
  3167. <xs:simpleType name="simpleDerivationSet">
  3168. <xs:annotation>
  3169. <xs:documentation>
  3170. #all or (possibly empty) subset of {restriction, extension, union, list}
  3171. </xs:documentation>
  3172. <xs:documentation>
  3173. A utility type, not for public use</xs:documentation>
  3174. </xs:annotation>
  3175. <xs:union>
  3176. <xs:simpleType>
  3177. <xs:restriction base="xs:token">
  3178. <xs:enumeration value="#all"/>
  3179. </xs:restriction>
  3180. </xs:simpleType>
  3181. <xs:simpleType>
  3182. <xs:list>
  3183. <xs:simpleType>
  3184. <xs:restriction base="xs:derivationControl">
  3185. <xs:enumeration value="list"/>
  3186. <xs:enumeration value="union"/>
  3187. <xs:enumeration value="restriction"/>
  3188. <xs:enumeration value="extension"/>
  3189. </xs:restriction>
  3190. </xs:simpleType>
  3191. </xs:list>
  3192. </xs:simpleType>
  3193. </xs:union>
  3194. </xs:simpleType>
  3195. <xs:complexType name="simpleType" abstract="true">
  3196. <xs:complexContent>
  3197. <xs:extension base="xs:annotated">
  3198. <xs:group ref="xs:simpleDerivation"/>
  3199. <xs:attribute name="final" type="xs:simpleDerivationSet">
  3200. <xs:annotation>
  3201. <xs:documentation>Specifies the value of the final attribute on this
  3202. simpleType. The final attribute prevents a
  3203. specified type of derivation. For simpleType elements this value can
  3204. contain #all or a list that is a subset of restriction, list or union: <ul>
  3205. <li>restriction - prevents derivation by restriction</li>
  3206. <li>list - prevents derivation by list</li>
  3207. <li>union - prevents derivation by union</li>
  3208. <li>#all - prevents all derivation</li>
  3209. </ul>
  3210. </xs:documentation>
  3211. </xs:annotation>
  3212. </xs:attribute>
  3213. <xs:attribute name="name" type="xs:NCName">
  3214. <xs:annotation>
  3215. <xs:documentation>
  3216. Can be restricted to required or forbidden
  3217. </xs:documentation>
  3218. </xs:annotation>
  3219. </xs:attribute>
  3220. </xs:extension>
  3221. </xs:complexContent>
  3222. </xs:complexType>
  3223. <xs:complexType name="topLevelSimpleType">
  3224. <xs:complexContent>
  3225. <xs:restriction base="xs:simpleType">
  3226. <xs:sequence>
  3227. <xs:element ref="xs:annotation" minOccurs="0"/>
  3228. <xs:group ref="xs:simpleDerivation"/>
  3229. </xs:sequence>
  3230. <xs:attribute name="name" type="xs:NCName" use="required">
  3231. <xs:annotation>
  3232. <xs:documentation>
  3233. Required at the top level
  3234. </xs:documentation>
  3235. </xs:annotation>
  3236. </xs:attribute>
  3237. <xs:anyAttribute namespace="##other" processContents="lax"/>
  3238. </xs:restriction>
  3239. </xs:complexContent>
  3240. </xs:complexType>
  3241. <xs:complexType name="localSimpleType">
  3242. <xs:complexContent>
  3243. <xs:restriction base="xs:simpleType">
  3244. <xs:sequence>
  3245. <xs:element ref="xs:annotation" minOccurs="0"/>
  3246. <xs:group ref="xs:simpleDerivation"/>
  3247. </xs:sequence>
  3248. <xs:attribute name="name" use="prohibited">
  3249. <xs:annotation>
  3250. <xs:documentation>
  3251. Forbidden when nested
  3252. </xs:documentation>
  3253. </xs:annotation>
  3254. </xs:attribute>
  3255. <xs:attribute name="final" use="prohibited"/>
  3256. <xs:anyAttribute namespace="##other" processContents="lax"/>
  3257. </xs:restriction>
  3258. </xs:complexContent>
  3259. </xs:complexType>
  3260. <xs:element name="simpleType" type="xs:topLevelSimpleType" id="simpleType">
  3261. <xs:annotation>
  3262. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-simpleType"> Defines
  3263. a simple type. A simple type definition is a set of constraints on
  3264. strings and information about the values they encode, applicable to
  3265. the normalized value of an attribute information item or of an element information
  3266. item with no element children. Informally, it applies to the values
  3267. of attributes and the text-only content of elements.
  3268. </xs:documentation>
  3269. </xs:annotation>
  3270. </xs:element>
  3271. <xs:element name="facet" abstract="true">
  3272. <xs:annotation>
  3273. <xs:documentation>
  3274. An abstract element, representing facets in general.
  3275. The facets defined by this spec are substitutable for
  3276. this element, and implementation-defined facets should
  3277. also name this as a substitution-group head.
  3278. </xs:documentation>
  3279. </xs:annotation>
  3280. </xs:element>
  3281. <xs:group name="simpleRestrictionModel">
  3282. <xs:sequence>
  3283. <xs:element name="simpleType" type="xs:localSimpleType" minOccurs="0">
  3284. <xs:annotation>
  3285. <xs:documentation>Specifies a local simple type.</xs:documentation>
  3286. </xs:annotation>
  3287. </xs:element>
  3288. <xs:choice minOccurs="0" maxOccurs="unbounded">
  3289. <xs:element ref="xs:facet"/>
  3290. <xs:any processContents="lax" namespace="##other"/>
  3291. </xs:choice>
  3292. </xs:sequence>
  3293. </xs:group>
  3294. <xs:element name="restriction" id="restriction">
  3295. <xs:annotation>
  3296. <xs:documentation> Defines restrictions on a simpleType, simpleContent, or a
  3297. complexContent. </xs:documentation>
  3298. </xs:annotation>
  3299. <xs:complexType>
  3300. <xs:annotation>
  3301. <xs:documentation source="http://www.w3.org/TR/xmlschema11-2/#element-restriction">
  3302. base attribute and simpleType child are mutually
  3303. exclusive, but one or other is required
  3304. </xs:documentation>
  3305. </xs:annotation>
  3306. <xs:complexContent>
  3307. <xs:extension base="xs:annotated">
  3308. <xs:group ref="xs:simpleRestrictionModel"/>
  3309. <xs:attribute name="base" type="xs:QName" use="optional">
  3310. <xs:annotation>
  3311. <xs:documentation>Specifies the base type for the
  3312. restriction.</xs:documentation>
  3313. </xs:annotation>
  3314. </xs:attribute>
  3315. </xs:extension>
  3316. </xs:complexContent>
  3317. </xs:complexType>
  3318. </xs:element>
  3319. <xs:element name="list" id="list">
  3320. <xs:annotation>
  3321. <xs:documentation> Defines a simple type element as a list of values.
  3322. </xs:documentation>
  3323. </xs:annotation>
  3324. <xs:complexType>
  3325. <xs:annotation>
  3326. <xs:documentation source="http://www.w3.org/TR/xmlschema11-2/#element-list">
  3327. itemType attribute and simpleType child are mutually
  3328. exclusive, but one or other is required
  3329. </xs:documentation>
  3330. </xs:annotation>
  3331. <xs:complexContent>
  3332. <xs:extension base="xs:annotated">
  3333. <xs:sequence>
  3334. <xs:element name="simpleType" type="xs:localSimpleType" minOccurs="0">
  3335. <xs:annotation>
  3336. <xs:documentation> Defines a simple type and specifies the
  3337. constraints and information
  3338. about the values of attributes or text-only elements.
  3339. </xs:documentation>
  3340. </xs:annotation>
  3341. </xs:element>
  3342. </xs:sequence>
  3343. <xs:attribute name="itemType" type="xs:QName" use="optional">
  3344. <xs:annotation>
  3345. <xs:documentation> Specifies the name of a built-in data type or
  3346. simpleType element defined in this
  3347. or another schema. This attribute is not allowed if the content
  3348. contains a simpleType element,
  3349. otherwise it is required. </xs:documentation>
  3350. </xs:annotation>
  3351. </xs:attribute>
  3352. </xs:extension>
  3353. </xs:complexContent>
  3354. </xs:complexType>
  3355. </xs:element>
  3356. <xs:element name="union" id="union">
  3357. <xs:annotation>
  3358. <xs:documentation> Defines a simple type as a collection (union) of values from
  3359. specified simple data types. </xs:documentation>
  3360. </xs:annotation>
  3361. <xs:complexType>
  3362. <xs:annotation>
  3363. <xs:documentation source="http://www.w3.org/TR/xmlschema11-2/#element-union">
  3364. memberTypes attribute must be non-empty or there must be
  3365. at least one simpleType child
  3366. </xs:documentation>
  3367. </xs:annotation>
  3368. <xs:complexContent>
  3369. <xs:extension base="xs:annotated">
  3370. <xs:sequence>
  3371. <xs:element name="simpleType"
  3372. type="xs:localSimpleType"
  3373. minOccurs="0"
  3374. maxOccurs="unbounded">
  3375. <xs:annotation>
  3376. <xs:documentation> Defines a simple type and specifies the
  3377. constraints and information
  3378. about the values of attributes or text-only elements.
  3379. </xs:documentation>
  3380. </xs:annotation>
  3381. </xs:element>
  3382. </xs:sequence>
  3383. <xs:attribute name="memberTypes" use="optional">
  3384. <xs:annotation>
  3385. <xs:documentation>Optional. Specifies a list of built-in data types or
  3386. simpleType elements defined in a
  3387. schema. </xs:documentation>
  3388. </xs:annotation>
  3389. <xs:simpleType>
  3390. <xs:list itemType="xs:QName"/>
  3391. </xs:simpleType>
  3392. </xs:attribute>
  3393. </xs:extension>
  3394. </xs:complexContent>
  3395. </xs:complexType>
  3396. </xs:element>
  3397. <xs:complexType name="facet">
  3398. <xs:complexContent>
  3399. <xs:extension base="xs:annotated">
  3400. <xs:attribute name="value" use="required">
  3401. <xs:annotation>
  3402. <xs:documentation>Specifies the facet value.</xs:documentation>
  3403. </xs:annotation>
  3404. </xs:attribute>
  3405. <xs:attribute name="fixed" type="xs:boolean" default="false" use="optional">
  3406. <xs:annotation>
  3407. <xs:documentation>Default is false, specifies whether the content has a
  3408. fixed value.</xs:documentation>
  3409. </xs:annotation>
  3410. </xs:attribute>
  3411. </xs:extension>
  3412. </xs:complexContent>
  3413. </xs:complexType>
  3414. <xs:complexType name="noFixedFacet">
  3415. <xs:complexContent>
  3416. <xs:restriction base="xs:facet">
  3417. <xs:sequence>
  3418. <xs:element ref="xs:annotation" minOccurs="0"/>
  3419. </xs:sequence>
  3420. <xs:attribute name="fixed" use="prohibited"/>
  3421. <xs:anyAttribute namespace="##other" processContents="lax"/>
  3422. </xs:restriction>
  3423. </xs:complexContent>
  3424. </xs:complexType>
  3425. <xs:element name="minExclusive"
  3426. type="xs:facet"
  3427. id="minExclusive"
  3428. substitutionGroup="xs:facet">
  3429. <xs:annotation>
  3430. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-minExclusive">
  3431. Specifies the lower bounds for numeric values (the value must be
  3432. greater than this value). </xs:documentation>
  3433. </xs:annotation>
  3434. </xs:element>
  3435. <xs:element name="minInclusive"
  3436. type="xs:facet"
  3437. id="minInclusive"
  3438. substitutionGroup="xs:facet">
  3439. <xs:annotation>
  3440. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-minInclusive">
  3441. Specifies the lower bounds for numeric values (the value must be
  3442. greater than or equal to this value).</xs:documentation>
  3443. </xs:annotation>
  3444. </xs:element>
  3445. <xs:element name="maxExclusive"
  3446. type="xs:facet"
  3447. id="maxExclusive"
  3448. substitutionGroup="xs:facet">
  3449. <xs:annotation>
  3450. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-maxExclusive">
  3451. Specifies the upper bounds for numeric values (the value must be
  3452. less than this value). </xs:documentation>
  3453. </xs:annotation>
  3454. </xs:element>
  3455. <xs:element name="maxInclusive"
  3456. type="xs:facet"
  3457. id="maxInclusive"
  3458. substitutionGroup="xs:facet">
  3459. <xs:annotation>
  3460. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-maxInclusive">
  3461. Specifies the upper bounds for numeric values (the value must be
  3462. less than or equal to this value). </xs:documentation>
  3463. </xs:annotation>
  3464. </xs:element>
  3465. <xs:complexType name="numFacet">
  3466. <xs:complexContent>
  3467. <xs:restriction base="xs:facet">
  3468. <xs:sequence>
  3469. <xs:element ref="xs:annotation" minOccurs="0"/>
  3470. </xs:sequence>
  3471. <xs:attribute name="value" type="xs:nonNegativeInteger" use="required">
  3472. <xs:annotation>
  3473. <xs:documentation>Specifies the facet value.</xs:documentation>
  3474. </xs:annotation>
  3475. </xs:attribute>
  3476. <xs:anyAttribute namespace="##other" processContents="lax"/>
  3477. </xs:restriction>
  3478. </xs:complexContent>
  3479. </xs:complexType>
  3480. <xs:complexType name="intFacet">
  3481. <xs:complexContent>
  3482. <xs:restriction base="xs:facet">
  3483. <xs:sequence>
  3484. <xs:element ref="xs:annotation" minOccurs="0"/>
  3485. </xs:sequence>
  3486. <xs:attribute name="value" type="xs:integer" use="required"/>
  3487. <xs:anyAttribute namespace="##other" processContents="lax"/>
  3488. </xs:restriction>
  3489. </xs:complexContent>
  3490. </xs:complexType>
  3491. <xs:element name="totalDigits" id="totalDigits" substitutionGroup="xs:facet">
  3492. <xs:annotation>
  3493. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-totalDigits">
  3494. Specifies the exact number of digits allowed. Must be greater than
  3495. zero. </xs:documentation>
  3496. </xs:annotation>
  3497. <xs:complexType>
  3498. <xs:complexContent>
  3499. <xs:restriction base="xs:numFacet">
  3500. <xs:sequence>
  3501. <xs:element ref="xs:annotation" minOccurs="0"/>
  3502. </xs:sequence>
  3503. <xs:attribute name="value" type="xs:positiveInteger" use="required">
  3504. <xs:annotation>
  3505. <xs:documentation>Specifies the facet value.</xs:documentation>
  3506. </xs:annotation>
  3507. </xs:attribute>
  3508. <xs:anyAttribute namespace="##other" processContents="lax"/>
  3509. </xs:restriction>
  3510. </xs:complexContent>
  3511. </xs:complexType>
  3512. </xs:element>
  3513. <xs:element name="fractionDigits"
  3514. type="xs:numFacet"
  3515. id="fractionDigits"
  3516. substitutionGroup="xs:facet">
  3517. <xs:annotation>
  3518. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-fractionDigits">
  3519. Specifies the maximum number of decimal places allowed. Must be
  3520. equal to or greater than zero. </xs:documentation>
  3521. </xs:annotation>
  3522. </xs:element>
  3523. <xs:element name="length"
  3524. type="xs:numFacet"
  3525. id="length"
  3526. substitutionGroup="xs:facet">
  3527. <xs:annotation>
  3528. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-length"> Specifies
  3529. the exact number of characters or list items allowed. Must be equal
  3530. to or greater than zero. </xs:documentation>
  3531. </xs:annotation>
  3532. </xs:element>
  3533. <xs:element name="minLength"
  3534. type="xs:numFacet"
  3535. id="minLength"
  3536. substitutionGroup="xs:facet">
  3537. <xs:annotation>
  3538. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-minLength">
  3539. Specifies the minimum number of characters or list items allowed.
  3540. Must be equal to or greater than zero. </xs:documentation>
  3541. </xs:annotation>
  3542. </xs:element>
  3543. <xs:element name="maxLength"
  3544. type="xs:numFacet"
  3545. id="maxLength"
  3546. substitutionGroup="xs:facet">
  3547. <xs:annotation>
  3548. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-maxLength">
  3549. Specifies the maximum number of characters or list items allowed.
  3550. Must be equal to or greater than zero. </xs:documentation>
  3551. </xs:annotation>
  3552. </xs:element>
  3553. <xs:element name="enumeration"
  3554. type="xs:noFixedFacet"
  3555. id="enumeration"
  3556. substitutionGroup="xs:facet">
  3557. <xs:annotation>
  3558. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-enumeration">
  3559. Defines a list of acceptable values. </xs:documentation>
  3560. </xs:annotation>
  3561. </xs:element>
  3562. <xs:element name="whiteSpace" id="whiteSpace" substitutionGroup="xs:facet">
  3563. <xs:annotation>
  3564. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-whiteSpace">
  3565. Specifies how white space (line feeds, tabs, spaces, and carriage
  3566. returns) are handled. </xs:documentation>
  3567. </xs:annotation>
  3568. <xs:complexType>
  3569. <xs:complexContent>
  3570. <xs:restriction base="xs:facet">
  3571. <xs:sequence>
  3572. <xs:element ref="xs:annotation" minOccurs="0"/>
  3573. </xs:sequence>
  3574. <xs:attribute name="value" use="required">
  3575. <xs:annotation>
  3576. <xs:documentation>Specifies the facet value.</xs:documentation>
  3577. </xs:annotation>
  3578. <xs:simpleType>
  3579. <xs:restriction base="xs:NMTOKEN">
  3580. <xs:enumeration value="preserve"/>
  3581. <xs:enumeration value="replace"/>
  3582. <xs:enumeration value="collapse"/>
  3583. </xs:restriction>
  3584. </xs:simpleType>
  3585. </xs:attribute>
  3586. <xs:anyAttribute namespace="##other" processContents="lax"/>
  3587. </xs:restriction>
  3588. </xs:complexContent>
  3589. </xs:complexType>
  3590. </xs:element>
  3591. <xs:element name="pattern" id="pattern" substitutionGroup="xs:facet">
  3592. <xs:annotation>
  3593. <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-pattern"> Defines
  3594. the exact sequence of characters that are acceptable.
  3595. </xs:documentation>
  3596. </xs:annotation>
  3597. <xs:complexType>
  3598. <xs:complexContent>
  3599. <xs:restriction base="xs:noFixedFacet">
  3600. <xs:sequence>
  3601. <xs:element ref="xs:annotation" minOccurs="0"/>
  3602. </xs:sequence>
  3603. <xs:attribute name="value" type="xs:string" use="required">
  3604. <xs:annotation>
  3605. <xs:documentation>Specifies the regular expression constraint.</xs:documentation>
  3606. </xs:annotation>
  3607. </xs:attribute>
  3608. <xs:anyAttribute namespace="##other" processContents="lax"/>
  3609. </xs:restriction>
  3610. </xs:complexContent>
  3611. </xs:complexType>
  3612. </xs:element>
  3613. <xs:element name="assertion"
  3614. type="xs:assertion"
  3615. id="assertion"
  3616. substitutionGroup="xs:facet">
  3617. <xs:annotation>
  3618. <xs:documentation source="http://www.w3.org/TR/xmlschema11-2/#element-assertion"> The
  3619. facet is used to constrain simpleTypes.
  3620. An assertion is a predicate associated with
  3621. a type, which is checked for each instance of the type. If an element or attribute
  3622. information item fails to satisfy an assertion associated with a given type, then
  3623. that information item is not locally valid with respect to that type.
  3624. </xs:documentation>
  3625. </xs:annotation>
  3626. </xs:element>
  3627. <xs:element name="explicitTimezone"
  3628. id="explicitTimezone"
  3629. substitutionGroup="xs:facet">
  3630. <xs:annotation>
  3631. <xs:documentation source="http://www.w3.org/TR/xmlschema11-2/#element-explicitTimezone">
  3632. Specifies if the time zone in date/time datatypes is optional, required or prohibited.
  3633. </xs:documentation>
  3634. </xs:annotation>
  3635. <xs:complexType>
  3636. <xs:complexContent>
  3637. <xs:restriction base="xs:facet">
  3638. <xs:sequence>
  3639. <xs:element ref="xs:annotation" minOccurs="0"/>
  3640. </xs:sequence>
  3641. <xs:attribute name="value" use="required">
  3642. <xs:annotation>
  3643. <xs:documentation>The value of this facet is one of these:
  3644. required, prohibited, optional</xs:documentation>
  3645. </xs:annotation>
  3646. <xs:simpleType>
  3647. <xs:restriction base="xs:NMTOKEN">
  3648. <xs:enumeration value="optional"/>
  3649. <xs:enumeration value="required"/>
  3650. <xs:enumeration value="prohibited"/>
  3651. </xs:restriction>
  3652. </xs:simpleType>
  3653. </xs:attribute>
  3654. <xs:anyAttribute namespace="##other" processContents="lax"/>
  3655. </xs:restriction>
  3656. </xs:complexContent>
  3657. </xs:complexType>
  3658. </xs:element>
  3659. <xs:annotation>
  3660. <xs:documentation>
  3661. In keeping with the XML Schema WG's standard versioning policy,
  3662. this schema document will persist at the URI
  3663. http://www.w3.org/2012/04/datatypes.xsd.
  3664. At the date of issue it can also be found at the URI
  3665. http://www.w3.org/2009/XMLSchema/datatypes.xsd.
  3666. The schema document at that URI may however change in the future,
  3667. in order to remain compatible with the latest version of XSD
  3668. and its namespace. In other words, if XSD or the XML Schema
  3669. namespace change, the version of this document at
  3670. http://www.w3.org/2009/XMLSchema/datatypes.xsd will change accordingly;
  3671. the version at http://www.w3.org/2012/04/datatypes.xsd will not change.
  3672. Previous dated (and unchanging) versions of this schema document
  3673. include:
  3674. http://www.w3.org/2012/01/datatypes.xsd
  3675. (XSD 1.1 Proposed Recommendation)
  3676. http://www.w3.org/2011/07/datatypes.xsd
  3677. (XSD 1.1 Candidate Recommendation)
  3678. http://www.w3.org/2009/04/datatypes.xsd
  3679. (XSD 1.1 Candidate Recommendation)
  3680. http://www.w3.org/2004/10/datatypes.xsd
  3681. (XSD 1.0 Recommendation, Second Edition)
  3682. http://www.w3.org/2001/05/datatypes.xsd
  3683. (XSD 1.0 Recommendation, First Edition)
  3684. </xs:documentation>
  3685. </xs:annotation>
  3686. </xs:schema>
  3687. </xsl:variable>
  3688. <xsl:variable name="system_cache__appinfo:builtintypes.xsd">
  3689. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  3690. elementFormDefault="qualified"
  3691. xml:lang="EN"
  3692. targetNamespace="http://www.w3.org/2001/XMLSchema"
  3693. version="1.0">
  3694. <!-- TODO @2015-11-04 - trzeba te typy skad sciagnac - nie wiem skad -->
  3695. <xs:simpleType name="anyAtomicType"/>
  3696. </xs:schema>
  3697. </xsl:variable>
  3698. <!--<xsl:variable name="system_cache__appinfo:p5Type.xsd">
  3699. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  3700. xmlns:p5TypeParam="http://biuro.biall-net.pl/p5/schema/typeParams"
  3701. xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
  3702. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3703. xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
  3704. xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
  3705. xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
  3706. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  3707. xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
  3708. xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
  3709. elementFormDefault="qualified"
  3710. targetNamespace="http://biuro.biall-net.pl/p5/schema/types"><!-\-<xs:import namespace="http://biuro.biall-net.pl/p5/schema/typeParams" schemaLocation=""/>
  3711. @2018-03-23 bindera: widze, ze tego nie ma i raczej jest niepotrzebne?
  3712. -\->
  3713. <xs:simpleType name="string" id="p___d15e99718-1_string">
  3714. <xs:restriction base="xs:string"/>
  3715. </xs:simpleType>
  3716. <xs:simpleType name="text" id="p___d15e99720-1_text">
  3717. <xs:restriction base="xs:string"/>
  3718. </xs:simpleType>
  3719. <xs:simpleType name="enumeration" id="p___d15e99722-1_enumeratio">
  3720. <xs:restriction base="xs:string"/>
  3721. </xs:simpleType>
  3722. <xs:simpleType name="set" id="p___d15e99724-1_set">
  3723. <xs:annotation>
  3724. <xs:documentation>
  3725. Example appinfo for `CRM_PRZYPADEK`.`FORM_TREAT` field defined as set('', 'R', 'W', 'X', 'C', 'S', 'O', 'V', 'E'):
  3726. <xs:appinfo>
  3727. <p5TypeParam:param name="enumeration">
  3728. <p5TypeParam:enumeration value="0" label="" description="Brak"/>
  3729. <p5TypeParam:enumeration value="2" label="R" description="Read"/>
  3730. <p5TypeParam:enumeration value="4" label="W" description="Write"/>
  3731. <p5TypeParam:enumeration value="8" label="X" description="Execute"/>
  3732. <p5TypeParam:enumeration value="16" label="C" description="Create"/>
  3733. <p5TypeParam:enumeration value="32" label="S" description="..."/>
  3734. <p5TypeParam:enumeration value="64" label="O" description="..."/>
  3735. <p5TypeParam:enumeration value="124" label="V" description="..."/>
  3736. <p5TypeParam:enumeration value="256" label="E" description="Export"/>
  3737. </p5TypeParam:param>
  3738. </xs:appinfo>
  3739. SELECT ID, `FORM_TREAT`, CAST(`FORM_TREAT` AS UNSIGNED) FROM `CRM_PRZYPADEK`;
  3740. IF 8 == 'X' THEN
  3741. insert into `CRM_PRZYPADEK`(`FORM_TREAT`) values('X');
  3742. IS EQUAL TO
  3743. insert into `CRM_PRZYPADEK`(`FORM_TREAT`) values(8);
  3744. </xs:documentation>
  3745. </xs:annotation>
  3746. <xs:restriction base="xs:integer"/>
  3747. </xs:simpleType>
  3748. <xs:simpleType name="integer" id="p___d15e99741-1_integer">
  3749. <xs:restriction base="xs:integer"/>
  3750. </xs:simpleType>
  3751. <xs:simpleType name="decimal" id="p___d15e99743-1_decimal">
  3752. <xs:restriction base="xs:decimal"/>
  3753. </xs:simpleType>
  3754. <xs:simpleType name="double" id="p___d15e99745-1_double">
  3755. <xs:restriction base="xs:double"/>
  3756. </xs:simpleType>
  3757. <xs:simpleType name="float" id="p___d15e99747-1_float">
  3758. <xs:restriction base="xs:double"/>
  3759. </xs:simpleType>
  3760. <xs:simpleType name="binary" id="p___d15e99749-1_binary">
  3761. <xs:restriction base="xs:hexBinary"/>
  3762. </xs:simpleType>
  3763. <xs:simpleType name="hexBinary" id="p___d15e99751-1_hexBinary">
  3764. <xs:restriction base="xs:hexBinary"/>
  3765. </xs:simpleType>
  3766. <xs:simpleType name="date" id="p___d15e99754-1_date">
  3767. <xs:union memberTypes="xs:date p5Type:dateZero"/>
  3768. </xs:simpleType>
  3769. <xs:simpleType name="dateZero" id="p___d15e99756-1_dateZero">
  3770. <xs:restriction base="xs:string">
  3771. <xs:enumeration value="0000-00-00"/>
  3772. <xs:enumeration value="CURRENT_TIMESTAMP"/>
  3773. </xs:restriction>
  3774. </xs:simpleType>
  3775. <xs:simpleType name="dateTime" id="p___d15e99760-1_dateTime">
  3776. <xs:union memberTypes="xs:dateTime p5Type:dateTimeZero"/>
  3777. </xs:simpleType>
  3778. <xs:simpleType name="dateTimeZero" id="p___d15e99762-1_dateTimeZe">
  3779. <xs:restriction base="xs:string">
  3780. <xs:enumeration value="0000-00-00 00:00:00"/>
  3781. <xs:enumeration value="CURRENT_TIMESTAMP"/>
  3782. </xs:restriction>
  3783. </xs:simpleType>
  3784. <xs:simpleType name="time" id="p___d15e99766-1_time">
  3785. <xs:union memberTypes="xs:time p5Type:timeZero"/>
  3786. </xs:simpleType>
  3787. <xs:simpleType name="timeZero" id="p___d15e99768-1_timeZero">
  3788. <xs:restriction base="xs:string">
  3789. <xs:enumeration value="00:00:00"/>
  3790. <xs:enumeration value="CURRENT_TIMESTAMP"/>
  3791. </xs:restriction>
  3792. </xs:simpleType>
  3793. <xs:simpleType name="year" id="p___d15e99772-1_year">
  3794. <xs:union memberTypes="xs:gYear p5Type:yearZero"/>
  3795. </xs:simpleType>
  3796. <xs:simpleType name="yearZero" id="p___d15e99774-1_yearZero">
  3797. <xs:restriction base="xs:string">
  3798. <xs:enumeration value="0000"/>
  3799. <xs:enumeration value="CURRENT_TIMESTAMP"/>
  3800. </xs:restriction>
  3801. </xs:simpleType>
  3802. <!-\-
  3803. TODO: Geometry
  3804. TODO: MultiPolygon
  3805. TODO: MultiPoint
  3806. TODO: MultiLineString
  3807. TODO: GeometryCollection
  3808. <gml:MultiPolygon>
  3809. <gml:polygonMember>
  3810. <gml:Polygon>
  3811. ...
  3812. -\->
  3813. <xs:simpleType name="geometry" id="p___d15e99779-1_geometry">
  3814. <xs:restriction base="xs:string"/>
  3815. </xs:simpleType>
  3816. <xs:simpleType name="polygon" id="p___d15e99781-1_polygon">
  3817. <xs:restriction base="xs:string">
  3818. <xs:pattern value="(\-?\d+\.?\d*,-?\d+\.?\d*)( (\-?\d+\.?\d*,-?\d+\.?\d*))+"/>
  3819. </xs:restriction>
  3820. </xs:simpleType>
  3821. <xs:simpleType name="point" id="p___d15e99785-1_point">
  3822. <xs:restriction base="xs:string">
  3823. <xs:pattern value="\-?\d\.?\d*,\-?\d\.?\d*"/>
  3824. </xs:restriction>
  3825. </xs:simpleType>
  3826. <xs:simpleType name="lineString" id="p___d15e99788-1_lineString">
  3827. <xs:restriction base="xs:string">
  3828. <xs:pattern value="(\-?\d+\.?\d*,\-?\d+\.?\d*)( (\-?\d+\.?\d*,\-?\d+\.?\d*))+"/>
  3829. </xs:restriction>
  3830. </xs:simpleType>
  3831. </xs:schema>
  3832. </xsl:variable>-->
  3833. </xsl:stylesheet>