123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806 |
- <xsdtest>
- <datatype name="dateTime">
- <valid>2001-12-01T19:45:00</valid>
- <valid>2001-12-01T19:45:00Z</valid>
- <valid>2001-12-01T19:45:00-11:59</valid>
- <valid>0001-01-12T00:00:00+12:00</valid>
- <invalid>2001-12-1T19:45:00+24:00</invalid>
- <invalid>2001-12-1T19:45:00</invalid>
- <equiv>
- <class>
- <value>2001-12-01T19:45:00</value>
- <value>2001-12-01T19:45:00.00</value>
- </class>
- <class>
- <value>2001-12-01T19:45:00Z</value>
- <value>2001-12-01T19:45:00.00Z</value>
- <value>2001-12-01T20:45:00+01:00</value>
- </class>
- </equiv>
- </datatype>
- <datatype name="anyURI">
- <valid>foobar</valid>
- <valid>http://www.example.com</valid>
- <valid>http://ji%6d@www.example.com</valid>
- <valid>http://www.example.co%6d</valid>
- <valid>nosuchscheme:stuff</valid>
- <invalid>foo$bar:stuff</invalid>
- <invalid>f%oobar</invalid>
- </datatype>
- <datatype name="integer">
- <valid>10</valid>
- <valid>01</valid>
- <valid>0123456789</valid>
- <valid>+10</valid>
- <valid>-10</valid>
- <invalid>1.0</invalid>
- <invalid>.1</invalid>
- <valid>9999999999999999999999999999999</valid>
- <invalid>1.</invalid>
- <invalid>0.</invalid>
- <equiv>
- <class>
- <value>0</value>
- <value>+0</value>
- <value>-0</value>
- <value>00</value>
- </class>
- <class>
- <value>10</value>
- <value>+10</value>
- <value>+0010</value>
- <value>010</value>
- </class>
- <class>
- <value>-10</value>
- <value>-0010</value>
- <value>-010</value>
- </class>
- </equiv>
- </datatype>
- <datatype name="duration">
- <valid>P1Y</valid>
- <valid>P1Y0M2DT17H5M12S</valid>
- <valid>-P1Y</valid>
- <valid>P60D</valid>
- <valid>PT24H</valid>
- <valid>PT1.2S</valid>
- <invalid>P24h</invalid>
- <invalid>P24H</invalid>
- <invalid>P1YT</invalid>
- <invalid>P</invalid>
- <invalid>-P</invalid>
- <equiv>
- <class>
- <value>-P6M</value>
- </class>
- <class>
- <value>P0Y</value>
- <value>-P0Y</value>
- </class>
- <class>
- <value>P1Y</value>
- <value>P001Y</value>
- <value>P001Y0M</value>
- <value>P1Y0M0DT0H0M0.0S</value>
- </class>
- <class>
- <value>P6M</value>
- </class>
- <class>
- <value>PT6M</value>
- </class>
- <class>
- <value>PT1S</value>
- <value>PT1.0S</value>
- </class>
- </equiv>
- <lessThan>
- <value>PT1M</value>
- <value>PT61S</value>
- </lessThan>
- <lessThan>
- <value>PT59S</value>
- <value>PT1M</value>
- </lessThan>
- <incomparable>
- <value>PT60S</value>
- <value>PT1M</value>
- </incomparable>
- <lessThan>
- <value>PT1H</value>
- <value>PT61M</value>
- </lessThan>
- <lessThan>
- <value>PT59M</value>
- <value>PT1H</value>
- </lessThan>
- <incomparable>
- <value>PT60M</value>
- <value>PT1H</value>
- </incomparable>
- <lessThan>
- <value>P1D</value>
- <value>PT25H</value>
- </lessThan>
- <lessThan>
- <value>PT23H</value>
- <value>P1D</value>
- </lessThan>
- <incomparable>
- <value>P1D</value>
- <value>PT24H</value>
- </incomparable>
- <lessThan>
- <value>P1Y</value>
- <value>P13M</value>
- </lessThan>
- <lessThan>
- <value>P11M</value>
- <value>P1Y</value>
- </lessThan>
- <incomparable>
- <value>P12M</value>
- <value>P1Y</value>
- </incomparable>
- <lessThan>
- <value>P364D</value>
- <value>P1Y</value>
- </lessThan>
- <incomparable>
- <value>P1Y</value>
- <value>P365D</value>
- </incomparable>
- <incomparable>
- <value>P1Y</value>
- <value>P366D</value>
- </incomparable>
- <lessThan>
- <value>P1Y</value>
- <value>P367D</value>
- </lessThan>
- <lessThan>
- <value>P149D</value>
- <value>P5M</value>
- </lessThan>
- <incomparable>
- <value>P150D</value>
- <value>P5M</value>
- </incomparable>
- <incomparable>
- <value>P151D</value>
- <value>P5M</value>
- </incomparable>
- <incomparable>
- <value>P152D</value>
- <value>P5M</value>
- </incomparable>
- <incomparable>
- <value>P153D</value>
- <value>P5M</value>
- </incomparable>
- <lessThan>
- <value>P5M</value>
- <value>P154D</value>
- </lessThan>
- <lessThan>
- <value>P27D</value>
- <value>P1M</value>
- </lessThan>
- <incomparable>
- <value>P28D</value>
- <value>P1M</value>
- </incomparable>
- <incomparable>
- <value>P29D</value>
- <value>P1M</value>
- </incomparable>
- <incomparable>
- <value>P30D</value>
- <value>P1M</value>
- </incomparable>
- <incomparable>
- <value>P31D</value>
- <value>P1M</value>
- </incomparable>
- <lessThan>
- <value>P1M</value>
- <value>P32D</value>
- </lessThan>
- </datatype>
- <datatype name="time">
- <valid>12:45:00</valid>
- <valid>12:45:00Z</valid>
- </datatype>
- <datatype name="date">
- <valid>1886-12-01</valid>
- <valid>1886-12-01Z</valid>
- <lessThan>
- <value>1066-12-31</value>
- <value>1900-01-01</value>
- </lessThan>
- <lessThan>
- <value>1900-01-01</value>
- <value>1900-01-02</value>
- </lessThan>
- </datatype>
- <datatype name="gYearMonth">
- <valid>1996-12</valid>
- <valid>1996-01</valid>
- <valid>1996-01Z</valid>
- <invalid>1996-00</invalid>
- <equiv>
- <class><value>1996-01</value></class>
- <class>
- <value>1996-01Z</value>
- <value>1996-01+00:00</value>
- <value>1996-01-00:00</value>
- </class>
- <class><value>1996-01+01:00</value></class>
- <class><value>1996-01-01:00</value></class>
- </equiv>
- </datatype>
- <datatype name="gYear">
- <valid>2001</valid>
- <valid>2001Z</valid>
- <lessThan>
- <value>1999</value>
- <value>2000</value>
- </lessThan>
- <lessThan>
- <value>1999+07:00</value>
- <value>2000+07:00</value>
- </lessThan>
- </datatype>
- <datatype name="gMonthDay">
- <valid>--12-01</valid>
- <valid>--12-01Z</valid>
- <lessThan>
- <value>--12-01</value>
- <value>--12-04</value>
- </lessThan>
- <lessThan>
- <value>--11-17</value>
- <value>--12-04</value>
- </lessThan>
- </datatype>
- <datatype name="gDay">
- <valid>---20</valid>
- <valid>---20Z</valid>
- <lessThan>
- <value>---01</value>
- <value>---31</value>
- </lessThan>
- </datatype>
- <datatype name="gMonth">
- <valid>--12</valid>
- <valid>--01</valid>
- <valid>--01Z</valid>
- <valid> --12 </valid>
- <invalid>---01</invalid>
- <invalid>--00</invalid>
- <invalid>--13</invalid>
- <invalid>- -13</invalid>
- <lessThan>
- <value>--01</value>
- <value>--12</value>
- </lessThan>
- <lessThan>
- <value>--01</value>
- <value>--02</value>
- </lessThan>
- </datatype>
- <datatype name="boolean">
- <valid>true</valid>
- <valid>false</valid>
- <valid>0</valid>
- <valid>1</valid>
- <invalid>00</invalid>
- <invalid>00</invalid>
- <invalid>01</invalid>
- <equiv>
- <class><value>true</value><value>1</value></class>
- <class><value>false</value><value>0</value></class>
- </equiv>
- </datatype>
- <datatype name="base64Binary">
- <valid>AAAA</valid>
- <valid>abcd efgh ijkl mnop qrst uvwx yzAB CDEF GHIJ KLMN OPQR
- STUV WXYZ 0123 4567 89+/</valid>
- <valid>BA==</valid>
- <valid></valid>
- <valid>BA==</valid>
- <valid>BQ==</valid>
- <valid>Bg==</valid>
- <valid>Bw==</valid>
- <valid>BBA=</valid>
- <valid>BBA=</valid>
- <valid>BBE=</valid>
- <valid>BBI=</valid>
- <valid>BBM=</valid>
- <valid>BBQ=</valid>
- <valid>BBU=</valid>
- <valid>BBY=</valid>
- <valid>BBc=</valid>
- <valid>BBg=</valid>
- <valid>BBk=</valid>
- <valid>BBo=</valid>
- <valid>BBs=</valid>
- <valid>BBw=</valid>
- <valid>BB0=</valid>
- <valid>BB4=</valid>
- <valid>BB8=</valid>
- <invalid>====</invalid>
- <invalid>BB==</invalid>
- <invalid>BBB=</invalid>
- <invalid>B===</invalid>
- <invalid>B</invalid>
- <equiv>
- <class>
- <value>deadbeef</value>
- <value>d

	e a d
- b eef </value>
- </class>
- <class>
- <value>DEADBEEF</value>
- <value>D

	E A D
- B EEF </value>
- </class>
- </equiv>
- <length value="0"></length>
- <length value="6">deadbeef</length>
- <length value="1">BA==</length>
- <length value="2">BBA=</length>
- <length value="3">dead</length>
- <length value="4">deadBA==</length>
- </datatype>
- <datatype name="hexBinary">
- <valid>deadbeef</valid>
- <valid></valid>
- <valid>0123456789ABCDEFabcdef</valid>
- <invalid>00 00</invalid>
- <invalid>00.00</invalid>
- <invalid>0G</invalid>
- <equiv>
- <class>
- <value>00</value>
- <value>
- 00
- </value>
- </class>
- <class>
- <value>01</value>
- </class>
- <class>
- <value>10</value>
- </class>
- <class>
- <value>0a</value>
- <value>0A</value>
- </class>
- </equiv>
- <length value="0"></length>
- <length value="1">00</length>
- <length value="2">0000</length>
- <length value="2"> 0000 </length>
- <length value="2">AAAA</length>
- </datatype>
- <datatype name="float">
- <valid>1.0</valid>
- <valid>1.</valid>
- <valid>.1</valid>
- <invalid>- 1</invalid>
- <invalid>1 .0</invalid>
- <invalid>+INF</invalid>
- <invalid>+NaN</invalid>
- <invalid>-NaN</invalid>
- <equiv>
- <class>
- <value>0</value>
- <value>-0</value>
- <value>+0</value>
- <value> 0 </value>
- <value> 0. </value>
- <value> .0 </value>
- <value> 0.0 </value>
- <value> 0e0 </value>
- <value> 0E0 </value>
- <value> 0E+0 </value>
- <value> 0E-0 </value>
- </class>
- <class>
- <value>1E0</value>
- <value>0.1E1</value>
- <value>10E-1</value>
- <value>+1</value>
- </class>
- <class>
- <value>-1</value>
- </class>
- <class>
- <value>INF</value>
- <value>INF </value>
- </class>
- <class>
- <value>-INF</value>
- <value>-INF </value>
- </class>
- <class>
- <value>NaN</value>
- <value> NaN </value>
- </class>
- </equiv>
- <lessThan>
- <value>-INF</value>
- <value>-1000</value>
- </lessThan>
- <lessThan>
- <value>1000</value>
- <value>INF</value>
- </lessThan>
- <lessThan>
- <value>-1</value>
- <value>1</value>
- </lessThan>
- <lessThan>
- <value>0</value>
- <value>1</value>
- </lessThan>
- <lessThan>
- <value>-1</value>
- <value>0</value>
- </lessThan>
- </datatype>
- <datatype name="double">
- <valid>1.0</valid>
- <valid>1.</valid>
- <valid>.1</valid>
- <invalid>- 1</invalid>
- <invalid>1 .0</invalid>
- <invalid>+INF</invalid>
- <invalid>+NaN</invalid>
- <invalid>-NaN</invalid>
- <equiv>
- <class>
- <value>0</value>
- <value>-0</value>
- <value>+0</value>
- <value> 0 </value>
- <value> 0. </value>
- <value> .0 </value>
- <value> 0.0 </value>
- <value> 0e0 </value>
- <value> 0E0 </value>
- <value> 0E+0 </value>
- <value> 0E-0 </value>
- </class>
- <class>
- <value>1E0</value>
- <value>0.1E1</value>
- <value>10E-1</value>
- <value>+1</value>
- </class>
- <class>
- <value>-1</value>
- </class>
- <class>
- <value>INF</value>
- <value>INF </value>
- </class>
- <class>
- <value>-INF</value>
- <value>-INF </value>
- </class>
- <class>
- <value>NaN</value>
- <value> NaN </value>
- </class>
- </equiv>
- <lessThan>
- <value>-INF</value>
- <value>-1000</value>
- </lessThan>
- <lessThan>
- <value>1000</value>
- <value>INF</value>
- </lessThan>
- <lessThan>
- <value>-1</value>
- <value>1</value>
- </lessThan>
- <lessThan>
- <value>0</value>
- <value>1</value>
- </lessThan>
- <lessThan>
- <value>-1</value>
- <value>0</value>
- </lessThan>
- </datatype>
- <datatype name="QName">
- <valid>foo</valid>
- <valid xmlns:x="http://www.example.com">x:foo</valid>
- <invalid>y:foo</invalid>
- <equiv xmlns:x="http://www.example.com"
- xmlns:y="http://www.example.com/"
- xmlns:z="http://www.example.com">
- <class>
- <value>foo</value>
- <value> foo</value>
- </class>
- <class>
- <value>x:foo</value>
- <value> x:foo </value>
- <value>z:foo</value>
- </class>
- <class>
- <value>x:bar</value>
- <value>z:bar</value>
- </class>
- <class>
- <value>y:foo</value>
- </class>
- <class>
- <value>y:bar</value>
- </class>
- </equiv>
- </datatype>
- <datatype name="NOTATION">
- <valid>foo</valid>
- <valid xmlns:x="http://www.example.com">x:foo</valid>
- <invalid>y:foo</invalid>
- </datatype>
- <datatype name="decimal">
- <valid>1.0</valid>
- <valid>1.</valid>
- <valid>.1</valid>
- <valid>+1.0</valid>
- <valid>-1.0</valid>
- <valid> 1 </valid>
- <valid>99999999999999999999999999999999999999999999999999999999999999999</valid>
- <valid>-99999999999999999999999999999999999999999999999999999999999999999</valid>
- <invalid>junk</invalid>
- <invalid>--1</invalid>
- <invalid>++1</invalid>
- <invalid>+-1</invalid>
- <invalid>1.2.</invalid>
- <invalid>..1</invalid>
- <invalid>1..</invalid>
- <invalid>1 .2</invalid>
- <invalid>1+</invalid>
- <invalid>+ 1</invalid>
- <lessThan>
- <value>0</value>
- <value>1</value>
- </lessThan>
- </datatype>
- <datatype name="nonPositiveInteger">
- <valid>-1</valid>
- <valid>0</valid>
- <valid>-0</valid>
- <invalid>1</invalid>
- </datatype>
- <datatype name="nonNegativeInteger">
- <valid>1</valid>
- <valid>0</valid>
- <valid>+1</valid>
- <valid>+0</valid>
- <invalid>-1</invalid>
- </datatype>
- <datatype name="positiveInteger">
- <valid>+1</valid>
- <valid>1</valid>
- <invalid>0</invalid>
- <invalid>-1</invalid>
- </datatype>
- <datatype name="negativeInteger">
- <valid>-1</valid>
- <invalid>+1</invalid>
- <invalid>0</invalid>
- </datatype>
- <datatype name="long">
- <valid>1</valid>
- <valid>+1</valid>
- <valid>0</valid>
- <valid> 0 </valid>
- <invalid>1 2</invalid>
- <invalid>9999999999999999999999999999999999999999999999999999999999999999999999999</invalid>
- <valid>9223372036854775807</valid>
- <valid>-9223372036854775808</valid>
- <invalid>9223372036854775808</invalid>
- <invalid>-9223372036854775809</invalid>
- <invalid/>
- </datatype>
- <datatype name="int">
- <valid>1</valid>
- <valid>01</valid>
- <valid> 1 </valid>
- <valid>2147483647</valid>
- <valid>-2147483648</valid>
- <invalid>2147483648</invalid>
- <invalid>-2147483649</invalid>
- <invalid>9999999999999999999999999999999999999999999999999999999999999999999999999</invalid>
- <equiv>
- <class>
- <value>1</value>
- <value>+1</value>
- <value> 1 </value>
- <value>001</value>
- </class>
- <class>
- <value>-1</value>
- <value> -1 </value>
- <value>-001</value>
- </class>
- </equiv>
- </datatype>
- <datatype name="short">
- <valid>1</valid>
- <valid>32767</valid>
- <valid>-32768</valid>
- <invalid>32768</invalid>
- <invalid>-32769</invalid>
- <invalid>9999999999999999999999999999999999999999999999999999999999999999999999999</invalid>
- <equiv>
- <class>
- <value>1</value>
- <value>+1</value>
- <value> 1 </value>
- <value>001</value>
- </class>
- <class>
- <value>-1</value>
- <value> -1 </value>
- <value>-001</value>
- </class>
- </equiv>
- </datatype>
- <datatype name="byte">
- <valid>1</valid>
- <valid>127</valid>
- <valid>-128</valid>
- <invalid>128</invalid>
- <invalid>-129</invalid>
- </datatype>
- <datatype name="unsignedLong">
- <valid>1</valid>
- <valid>+1</valid>
- <invalid>-1</invalid>
- <valid>0</valid>
- <valid>18446744073709551615</valid>
- <invalid>18446744073709551616</invalid>
- <invalid>-1</invalid>
- </datatype>
- <datatype name="unsignedInt">
- <valid>1</valid>
- <valid>+1</valid>
- <valid>0</valid>
- <valid>4294967295</valid>
- <invalid>4294967296</invalid>
- <invalid>-1</invalid>
- </datatype>
- <datatype name="unsignedShort">
- <valid>1</valid>
- <valid>+1</valid>
- <valid>0</valid>
- <valid>65535</valid>
- <invalid>65536</invalid>
- <invalid>-1</invalid>
- </datatype>
- <datatype name="unsignedByte">
- <valid>1</valid>
- <valid>+1</valid>
- <valid>0</valid>
- <valid>255</valid>
- <invalid>256</invalid>
- <invalid>-1</invalid>
- </datatype>
- <datatype name="string">
- <valid>any thing at all!</valid>
- </datatype>
- <datatype name="normalizedString">
- <valid>any thing at all!</valid>
- </datatype>
- <datatype name="token">
- <valid>any thing at all!</valid>
- <equiv>
- <class>
- <value/>
- <value> </value>
- <value>	

 </value>
- </class>
- <class>
- <value>x </value>
- <value>x
</value>
- <value>x
</value>
- <value>x	</value>
- <value> x</value>
- <value>
x</value>
- <value>
x</value>
- <value>	x</value>
- <value>	

 x	

 </value>
- </class>
- <class>
- <value>x y </value>
- <value>x y
</value>
- <value>x y
</value>
- <value>x y	</value>
- <value>x y</value>
- <value>x
y</value>
- <value>x
y</value>
- <value>x	y</value>
- <value> x y</value>
- <value>
x y</value>
- <value>
x y</value>
- <value>	x y</value>
- <value>	

 x	

 y	

 </value>
- </class>
- </equiv>
- <length value="0"></length>
- <length value="1">x</length>
- <length value="1"> x </length>
- <length value="1">𐠀</length>
- </datatype>
- <datatype name="language">
- <valid>en</valid>
- <valid>en-UK</valid>
- <valid>i-cherokee</valid>
- <valid>x-klingon</valid>
- <valid>en-uk-scotland</valid>
- <invalid>en.UK</invalid>
- </datatype>
- <datatype name="Name">
- <valid>foo</valid>
- <valid>_0123456789</valid>
- <invalid>.</invalid>
- <valid>:</valid>
- <invalid>-</invalid>
- <invalid>1234</invalid>
- <valid> foo </valid>
- </datatype>
- <datatype name="NCName">
- <valid>foo</valid>
- <invalid>foo:bar</invalid>
- <invalid>0foo</invalid>
- <equiv>
- <class><value>foo</value><value> foo </value></class>
- <class><value>FOO</value><value> FOO </value></class>
- </equiv>
- </datatype>
- <datatype name="NMTOKEN">
- <valid>foo</valid>
- <valid>_</valid>
- <valid>.</valid>
- <valid>:</valid>
- <valid>-</valid>
- <valid>1234</valid>
- <valid> foo </valid>
- <length value="3"> foo </length>
- <length value="2">fo</length>
- <length value="1">f</length>
- </datatype>
- <datatype name="NMTOKENS">
- <valid>foo bar</valid>
- <invalid/>
- <valid>1 2 3 4</valid>
- </datatype>
- <datatype name="ID">
- <valid>foobar</valid>
- <invalid>foo:bar</invalid>
- <invalid>foo bar</invalid>
- </datatype>
- <datatype name="ENTITY">
- <invalid/>
- <invalid>foo</invalid>
- <valid internalSubset="<!ENTITY foo SYSTEM 'whatever' NDATA jpeg>"
- >foo</valid>
- </datatype>
- <datatype name="ENTITIES">
- <invalid></invalid>
- <invalid>foo</invalid>
- <valid internalSubset="<!ENTITY foo SYSTEM 'whatever' NDATA jpeg>
- 
<!ENTITY bar SYSTEM 'whatever' NDATA jpeg>
- "
- > foo bar </valid>
- </datatype>
- </xsdtest>
|