xml-schema-primitives.xsl 183 KB

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