add files

This commit is contained in:
ChiKyun Kim
2025-09-09 13:59:12 +09:00
parent e94b06888d
commit 747aabe224
791 changed files with 3888723 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="attributes.xsd">
<atts at1="at1" at2="at2" at3="at3" at4="at4" at5="at5" />
<atts at5="at5" at3="at3" at4="at4" />
<atts at1="at1" at3="at3" at4="at5" />
</root>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="root">
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element ref="atts"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="atts">
<xs:complexType>
<xs:complexContent>
<xs:restriction base="xs:anyType">
<xs:attribute name="at1" type="xs:string"/>
<xs:attribute name="at2" type="xs:string"/>
<xs:attribute name="at3" type="xs:string" use="required"/>
<xs:attribute name="at4" type="xs:string"/>
<xs:attribute name="at5" type="xs:string"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:schema>

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<script xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="empty.xsd"
xsi:type="xs:string">
<![CDATA[
function matchwo(a,b)
{
if (a < b && a < 0) then
{
return 1;
}
else
{
return 0;
}
}
]]>
</script>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="complex-structure.xsd">
<Depth value="3.14159E0" id="ID" description="descrioption" timeStamp="0.01"/>
</test>

View File

@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="test">
<xsd:complexType>
<xsd:choice>
<xsd:element name="Depth" type="positiveScalarElementType">
<xsd:annotation>
<xsd:documentation>Element specifying a depth below the surface of the water.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="positiveScalarElementType">
<xsd:annotation>
<xsd:documentation>Type for an element with a single scalar valued attribute that is greater than or 0.</xsd:documentation>
</xsd:annotation>
<xsd:attribute name="value" type="positiveScalarType" use="required"/>
<xsd:attributeGroup ref="CommonAttributes"/>
</xsd:complexType>
<xsd:simpleType name="positiveScalarType">
<xsd:annotation>
<xsd:documentation>Represents a floating point number that is greater than 0.0</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:double">
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
<!-- Attribute groups containing attribute sequences utilized by multiple element types -->
<xsd:attributeGroup name="CommonAttributes">
<xsd:annotation>
<xsd:documentation>Attributes common to all elements of the tagset.</xsd:documentation>
</xsd:annotation>
<xsd:attribute name="timeStamp" type="nonNegativeScalarType" use="optional"/>
<xsd:attribute name="description" type="xsd:string" use="optional"/>
<xsd:attribute name="id" type="xsd:ID" use="optional"/>
<!-- <xsd:attribute name="idRef" type="xsd:IDREF" use="optional"/> -->
</xsd:attributeGroup>
<xsd:simpleType name="nonNegativeScalarType">
<xsd:annotation>
<xsd:documentation>Represents a floating point number that is greater than or equal to 0.0</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:double">
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="datatypeFloat.xsd">
<!-- Built-in Type: Float -->
<float>-1E4</float>
<float>1267.43233E12</float>
<float>12.78e-2</float>
<float>12</float>
<float>-0</float>
<float>0</float>
<float>INF</float>
<float>NaN </float>
<float>12321.4546</float>
<double>-1E4</double>
<double>1267.43233E12</double>
<double>12.78e-2</double>
<double>12</double>
<double>-0</double>
<double>0</double>
<double>INF</double>
<double>NaN</double>
<double>12674123.432312</double>
</root>

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="root" >
<xs:complexType>
<xs:sequence>
<!-- Built-in Type: Float -->
<xs:element name="float" type="xs:float" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="double" type="xs:double" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="datatypeInteger.xsd">
<!-- Built-in Type: Integer -->
<integer>121</integer>
<integer>11235451351531351</integer>
<integer>-68168168468468435168168468468468846</integer>
<rInteger>32183782190</rInteger>
<nonPositiveInteger>-552</nonPositiveInteger>
<negativeInteger>-4</negativeInteger>
<long>2135151351</long>
<long>1231538438555555559</long>
<int>5435</int>
<short>14155</short>
<byte>106</byte>
<nonNegativeInteger>0</nonNegativeInteger>
<nonNegativeInteger>1816846816168161861616165156165</nonNegativeInteger>
<unsignedLong>12678967543233</unsignedLong>
<positiveInteger>12135</positiveInteger>
<unsignedInt>5858</unsignedInt>
<unsignedShort>19955</unsignedShort>
<unsignedByte>199</unsignedByte>
<bNBit>9999999999999999995</bNBit>
<lNBit>999999999999955</lNBit>
<iNBit>99999555</iNBit>
</root>

View File

@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="root" >
<xs:complexType>
<xs:sequence>
<!-- Built-in Type: Integer -->
<xs:element name="integer" type="xs:integer" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="rInteger" minOccurs="0" maxOccurs="unbounded" >
<xs:simpleType>
<xs:restriction base="xs:integer"></xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="nonPositiveInteger" type="xs:nonPositiveInteger" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="negativeInteger" type="xs:negativeInteger" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="long" type="xs:long" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="int" type="xs:int" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="short" type="xs:short" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="byte" type="xs:byte" minOccurs="0" maxOccurs="unbounded" />
<!-- Built-in Type: Unsigned Integer -->
<xs:element name="nonNegativeInteger" type="xs:nonNegativeInteger" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="unsignedLong" type="xs:unsignedLong" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="positiveInteger" type="xs:positiveInteger" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="unsignedInt" type="xs:unsignedInt" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="unsignedShort" type="xs:unsignedShort" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="unsignedByte" type="xs:unsignedByte" minOccurs="0" maxOccurs="unbounded" />
<!-- Built-in Type: N-Bit Integer -->
<xs:element name="bNBit" minOccurs="0" maxOccurs="unbounded" >
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="9999999999999999990"/>
<xs:maxInclusive value="9999999999999999999"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="lNBit" minOccurs="0" maxOccurs="unbounded" >
<xs:simpleType>
<xs:restriction base="xs:long">
<xs:minInclusive value="999999999999900"/>
<xs:maxInclusive value="999999999999999"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="iNBit" minOccurs="0" maxOccurs="unbounded" >
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="99999000"/>
<xs:maxInclusive value="99999999"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

View File

@@ -0,0 +1,175 @@
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="datatypes.xsd">
<!-- http://xmlbeans.apache.org/docs/2.0.0/guide/conXMLBeansSupportBuiltInSchemaTypes.html -->
<!-- Built-in Type: Binary -->
<base64Binary>SMOkdHRlbiBIw7x0ZSBlaW4gw58gaW0g
TmFtZW4sIHfDpHJlbiBzaWUgbcO2Z2xpY2hlcndlaXNlIGtlaW5lIEjDvHRlIG1laHIsDQpzb25kZXJuIEjDvMOfZS4NCg==
</base64Binary>
<hexBinary>0FB7</hexBinary>
<hexBinary>0123456789ABCDEFabcdef0123456789ABCDEFabcdef0123456789ABCDEFabcdef0123456789ABCDEFabcdef0123456789ABCDEFabcdef0123456789ABCDEFabcdef0123456789ABCDEFabcdef0123456789ABCDEFabcdef0123456789ABCDEFabcdef0123456789ABCDEFabcdef0123456789ABCDEFabcdef0123456789ABCDEFabcdef0123456789ABCDEFabcdef0123456789ABCDEFabcdef0123456789ABCDEFabcdef0123456789ABCDEFabcdef0123456789ABCDEFabcdef0123456789ABCDEFabcdef0123456789ABCDEFabcdef0123456789ABCDEFabcdef0123456789ABCDEFabcdef</hexBinary>
<hexBinary>
0FB8</hexBinary>
<!-- Built-in Type: Boolean -->
<boolean>true</boolean>
<boolean>1</boolean>
<boolean>false</boolean>
<boolean>
false </boolean><!-- whitespace characters -->
<!-- Built-in Type: Date-Time -->
<dateTime>0001-01-01T01:03:12</dateTime>
<dateTime>2005-01-01T00:00:00Z</dateTime>
<dateTime>1979-01-01T00:00:00.0120</dateTime>
<dateTime>0001-01-01T00:00:00.111+00:33</dateTime>
<!-- normalized the same -->
<dateTime>2015-08-11T23:00:00+09:00</dateTime>
<dateTime>2015-08-11T16:00:00+02:00</dateTime>
<dateTime>2015-08-11T14:00:00Z</dateTime>
<dateTime>2015-08-11T07:00:00-07:00</dateTime>
<!-- -->
<dateTime>2015-08-11T24:00:00-07:30</dateTime>
<dateTime>2015-08-12T00:00:00-07:30</dateTime>
<!-- -->
<dateTime>2015-08-11T16:00:00-08:00</dateTime>
<dateTime>2015-08-11T24:00:00+00:00</dateTime>
<dateTime>2015-08-11T24:00:00Z</dateTime>
<dateTime>2015-08-12T00:00:00Z</dateTime>
<time>12:34:56</time>
<time>00:55:19
</time>
<date>2002-10-11+13:00</date>
<gYearMonth>1999-10</gYearMonth>
<gYearMonth>1999-10Z</gYearMonth>
<gYearMonth>1999-10-12:11</gYearMonth>
<gYearMonth>1999-10+00:33</gYearMonth>
<gYearMonth>1809-02Z</gYearMonth>
<gYearMonth>
1809-03Z</gYearMonth>
<gYear>2007</gYear>
<gYear>-0007</gYear>
<gYear>2001Z</gYear>
<gYear>2001+05:00</gYear>
<gMonthDay>--01-28</gMonthDay>
<gMonthDay>--01-28+00:00</gMonthDay>
<gDay>---16</gDay>
<gMonth>--12</gMonth>
<gMonth>--12Z</gMonth>
<!-- Built-in Type: Decimal -->
<decimal>-1.23</decimal>
<decimal>321.00045</decimal>
<decimal>12678967.543233</decimal>
<decimal>+100000.00</decimal>
<decimal>210</decimal>
<decimal>12678967.543233999999999999999999</decimal>
<decimal>.234</decimal>
<decimal>-.1</decimal>
<decimal>-0.0</decimal>
<decimal>+0.0</decimal>
<decimal>0.0</decimal>
<decimal>+.0</decimal>
<!-- Built-in Type: Float -->
<float>-1E4</float>
<float>1267.43233E12</float>
<float>12.78e-2</float>
<float>12</float>
<float>-0</float>
<float>0</float>
<float>INF</float>
<float>NaN </float>
<float>145345.66</float>
<float>562949953421312</float>
<double>-1E4</double>
<double>1267.43233E12</double>
<double>12.78e-2</double>
<double>12</double>
<double>-0</double>
<double>0</double>
<double>INF</double>
<double>NaN</double>
<!-- Built-in Type: Integer -->
<integer>121</integer>
<integer>11235451351531351</integer>
<integer>-68168168468468435168168468468468846</integer>
<nonPositiveInteger>-552</nonPositiveInteger>
<nonPositiveInteger>-5525454654654654564564564564</nonPositiveInteger>
<negativeInteger>-4</negativeInteger>
<negativeInteger>-455588111111111111111111111111</negativeInteger>
<long>2135151351</long>
<long>1231538438555555559</long>
<int>5435</int>
<short>14155</short>
<byte>106</byte>
<nonNegativeInteger>0</nonNegativeInteger>
<nonNegativeInteger>1816846816168161861616165156165</nonNegativeInteger>
<unsignedLong>12678967543233</unsignedLong>
<positiveInteger>12135</positiveInteger>
<positiveInteger>1213567890123456789</positiveInteger>
<unsignedInt>5858</unsignedInt>
<unsignedShort>19955</unsignedShort>
<unsignedByte>199</unsignedByte>
<!-- Built-in Type: QName -->
<qName>ss</qName>
<!-- Built-in Type: List -->
<intValues>100 34 56 -23 1567</intValues>
<listDates>2077-12-12 1999-01-02</listDates>
<listBytes>+1 0 127 -127</listBytes>
<listBytes></listBytes>
<listFloats>1e4 -10000 5.234e-2</listFloats>
<listOfEnums>--12-25 --08-15 --01-01 --07-14</listOfEnums><!-- - -12-25 - -08-15 - -01-01 - -07-14 -->
<!-- Built-in Type: String -->
<string>ss ss </string>
<string>&#x1D11E;</string> <!-- high/low surrogate pairs for U+1D11E == 119070 -->
<string>foo &#x2000B; blaa</string>
<string></string> <!-- *Empty* strings -->
<string />
<normalizedString> dasdas dasdas</normalizedString>
<token>dasdasdas</token>
<language>en</language>
<name>dasda</name>
<nCName>ww</nCName>
<iD>s55</iD>
<iD>ID000</iD>
<iDREF>ID000</iDREF>
<nMTOKEN>da</nMTOKEN>
<anySimpleType>ssd</anySimpleType>
<anyURI>http://www.w3.org/TR/xmlschema-2/#anyURI</anyURI>
<!-- Built-in Type: RestrictedCharSet -->
<rcs>A</rcs>
<rcs>Z</rcs>
<!--
<Notation></Notation>
-->
<duration>P1Y2MT2H</duration>
<duration>P0Y1347M0D</duration>
<duration>-P1347M</duration>
<!-- Built-in Type: Enumeration -->
<enumStrings>BMW</enumStrings>
<enumInts>-0</enumInts>
<enumInts>+1</enumInts>
<enumInts>+1</enumInts>
<enumInts>2</enumInts>
<enumInts>8</enumInts>
<enumInts>9</enumInts>
</root>

View File

@@ -0,0 +1,147 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="root" >
<xs:complexType>
<xs:sequence>
<!-- Built-in Type: Binary -->
<xs:element name="base64Binary" type="xs:base64Binary" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="hexBinary" type="xs:hexBinary" minOccurs="0" maxOccurs="unbounded" />
<!-- Built-in Type: Boolean {true, false, 1, 0} -->
<xs:element name="boolean" type="xs:boolean" minOccurs="0" maxOccurs="unbounded" />
<!-- Built-in Type: Date-Time -->
<xs:element name="dateTime" type="xs:dateTime" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="time" type="xs:time" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="date" type="xs:date" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="gYearMonth" type="xs:gYearMonth" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="gYear" type="xs:gYear" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="gMonthDay" type="xs:gMonthDay" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="gDay" type="xs:gDay" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="gMonth" type="xs:gMonth" minOccurs="0" maxOccurs="unbounded" />
<!-- Built-in Type: Decimal -->
<xs:element name="decimal" type="xs:decimal" minOccurs="0" maxOccurs="unbounded" />
<!-- Built-in Type: Float -->
<xs:element name="float" type="xs:float" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="double" type="xs:double" minOccurs="0" maxOccurs="unbounded" />
<!-- Built-in Type: Integer -->
<xs:element name="integer" type="xs:integer" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="nonPositiveInteger" type="xs:nonPositiveInteger" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="negativeInteger" type="xs:negativeInteger" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="long" type="xs:long" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="int" type="xs:int" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="short" type="xs:short" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="byte" type="xs:byte" minOccurs="0" maxOccurs="unbounded" />
<!-- Built-in Type: Unsigned Integer -->
<xs:element name="nonNegativeInteger" type="xs:nonNegativeInteger" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="unsignedLong" type="xs:unsignedLong" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="positiveInteger" type="xs:positiveInteger" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="unsignedInt" type="xs:unsignedInt" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="unsignedShort" type="xs:unsignedShort" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="unsignedByte" type="xs:unsignedByte" minOccurs="0" maxOccurs="unbounded" />
<!-- Built-in Type: QName -->
<xs:element name="qName" type="xs:QName" minOccurs="0" maxOccurs="unbounded" />
<!-- Built-in Type: List -->
<!-- TODO: all typed derived by list, inclduing IDREFS and ENTITIES -->
<xs:element name="intValues" minOccurs="0" maxOccurs="unbounded" >
<xs:simpleType>
<xs:list itemType="xs:integer"/>
</xs:simpleType>
</xs:element>
<xs:element name="listDates" minOccurs="0" maxOccurs="unbounded" >
<xs:simpleType>
<xs:list itemType="xs:date"/>
</xs:simpleType>
</xs:element>
<xs:element name="listBytes" minOccurs="0" maxOccurs="unbounded" >
<xs:simpleType>
<xs:list itemType="xs:byte"/>
</xs:simpleType>
</xs:element>
<xs:element name="listFloats" minOccurs="0" maxOccurs="unbounded" >
<xs:simpleType>
<xs:list itemType="xs:float"/>
</xs:simpleType>
</xs:element>
<xs:element name="listOfEnums" minOccurs="0" maxOccurs="unbounded">
<xs:simpleType>
<xs:list itemType="gMonthDay"/>
</xs:simpleType>
</xs:element>
<!-- Built-in Type: String -->
<xs:element name="string" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="normalizedString" type="xs:normalizedString" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="token" type="xs:token" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="language" type="xs:language" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="name" type="xs:Name" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="nCName" type="xs:NCName" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="iD" type="xs:ID" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="iDREF" type="xs:IDREF" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="eNTITY" type="xs:ENTITY" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="nMTOKEN" type="xs:NMTOKEN" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="anySimpleType" type="xs:anySimpleType" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="anyURI" type="xs:anyURI" minOccurs="0" maxOccurs="unbounded" />
<!-- Built-in Type: RestrictedCharSet -->
<xs:element name="rcs" minOccurs="0" maxOccurs="unbounded" >
<xs:simpleType >
<xs:restriction base="xs:string">
<xs:pattern value="[A-Z]"></xs:pattern>
</xs:restriction>
</xs:simpleType>
</xs:element>
<!-- TODO Notation-->
<!--
<xs:element name="Notation" type="xs:Notation" minOccurs="0" maxOccurs="unbounded" />
-->
<xs:element name="duration" type="xs:duration" minOccurs="0" maxOccurs="unbounded" />
<!-- Built-in Type: Enumeration -->
<xs:element name="enumStrings" minOccurs="0" maxOccurs="unbounded" >
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Audi"/>
<xs:enumeration value="Golf"/>
<xs:enumeration value="BMW"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="enumInts" minOccurs="0" maxOccurs="unbounded" >
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:enumeration value="0"/>
<xs:enumeration value="1"/>
<xs:enumeration value="2"/>
<xs:enumeration value="3"/>
<xs:enumeration value="4"/>
<xs:enumeration value="5"/>
<xs:enumeration value="6"/>
<xs:enumeration value="7"/>
<xs:enumeration value="8"/>
<xs:enumeration value="9"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- enum list -->
<xs:simpleType name="gMonthDay">
<xs:restriction base="xs:gMonthDay">
<xs:enumeration value="--01-01"/>
<xs:enumeration value="--05-01"/>
<xs:enumeration value="--05-08"/>
<xs:enumeration value="--07-14"/>
<xs:enumeration value="--08-15"/>
<xs:enumeration value="--11-01"/>
<xs:enumeration value="--11-11"/>
<xs:enumeration value="--12-25"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>

View File

@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="datatypes2.xsd">
<!-- Built-in Type: Binary -->
<rBase64Binary>SMOkdHRlbiBIw7x0ZSBlaW4gw58gaW0g
TmFtZW4sIHfDpHJlbiBzaWUgbcO2Z2xpY2hlcndlaXNlIGtlaW5lIEjDvHRlIG1laHIsDQpzb25kZXJuIEjDvMOfZS4NCg==</rBase64Binary>
<rHexBinary>0FB7</rHexBinary>
<!-- Built-in Type: Boolean -->
<rBoolean>true</rBoolean>
<rBoolean>1</rBoolean>
<rBoolean>false</rBoolean>
<rBoolean>0</rBoolean>
<!-- Built-in Type: Date-Time -->
<dateTime>0001-01-01T01:03:12</dateTime>
<dateTime>2005-01-01T00:00:00Z</dateTime>
<dateTime>1979-01-01T00:00:00.0120</dateTime>
<dateTime>0001-01-01T00:00:00.111+00:33</dateTime>
<time>12:34:56</time>
<date>2002-10-11+13:00</date>
<gYearMonth>1999-10</gYearMonth>
<gYearMonth>1999-10Z</gYearMonth>
<gYearMonth>1999-10-12:11</gYearMonth>
<gYearMonth>1999-10+00:33</gYearMonth>
<gYear>2007</gYear>
<gYear>-0007</gYear>
<gYear>2001Z</gYear>
<gYear>2001+05:00</gYear>
<gMonthDay>--01-28</gMonthDay>
<gMonthDay>--01-28+00:00</gMonthDay>
<gDay>---16</gDay>
<gMonth>--12</gMonth>
<gMonth>--12Z</gMonth>
<!-- Built-in Type: Decimal -->
<decimal>-1.23</decimal>
<decimal>321.00045</decimal>
<decimal>12678967.543233</decimal>
<decimal>+100000.00</decimal>
<decimal>210</decimal>
<!-- Built-in Type: Float -->
<float>-1E4</float>
<float>1267.43233E12</float>
<float>12.78e-2</float>
<float>12</float>
<float>-0</float>
<float>0</float>
<float>INF</float>
<float>NaN </float>
<double>-1E4</double>
<double>1267.43233E12</double>
<double>12.78e-2</double>
<double>12</double>
<double>-0</double>
<double>0</double>
<double>INF</double>
<double>NaN</double>
<!-- Built-in Type: Integer -->
<integer>121</integer>
<nonPositiveInteger>-552</nonPositiveInteger>
<negativeInteger>-4</negativeInteger>
<long>2135151351</long>
<int>5435</int>
<short>14155</short>
<byte>106</byte>
<nonNegativeInteger>0</nonNegativeInteger>
<unsignedLong>12678967543233</unsignedLong>
<positiveInteger>12135</positiveInteger>
<unsignedInt>5858</unsignedInt>
<unsignedShort>19955</unsignedShort>
<unsignedByte>199</unsignedByte>
<!-- Built-in Type: QName -->
<qName>ss</qName>
<!-- ???
<qName>http://www.w3.org/TR/xmlschema-2:sayHello</qName>
<qName>ss:aa</qName>
-->
<!-- Built-in Type: List -->
<!-- TODO -->
<!-- Built-in Type: String -->
<string>ss ss </string>
<normalizedString> dasdas dasdas</normalizedString>
<token>dasdasdas</token>
<language>en</language>
<name>dasda</name>
<nCName>ww</nCName>
<iD>s55</iD>
<iD>ID000</iD>
<iDREF>ID000</iDREF>
<nMTOKEN>da</nMTOKEN>
<anySimpleType>ssd</anySimpleType>
<anyURI>http://www.w3.org/TR/xmlschema-2/#anyURI</anyURI>
<!--
<Notation></Notation>
-->
<duration>P1Y2MT2H</duration>
<duration>P0Y1347M0D</duration>
<duration>-P1347M</duration>
</root>

View File

@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="root" >
<xs:complexType>
<xs:sequence>
<!-- Built-in Type: Binary -->
<xs:element name="rBase64Binary" minOccurs="0" maxOccurs="unbounded" >
<xs:simpleType>
<xs:restriction base="xs:base64Binary">
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="rHexBinary" minOccurs="0" maxOccurs="unbounded" >
<xs:simpleType>
<xs:restriction base="xs:hexBinary">
</xs:restriction>
</xs:simpleType>
</xs:element>
<!-- Built-in Type: Boolean {true, false, 1, 0} -->
<xs:element name="rBoolean" minOccurs="0" maxOccurs="unbounded" >
<xs:simpleType>
<xs:restriction base="xs:boolean">
</xs:restriction>
</xs:simpleType>
</xs:element>
<!-- Built-in Type: Date-Time -->
<xs:element name="dateTime" type="xs:dateTime" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="time" type="xs:time" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="date" type="xs:date" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="gYearMonth" type="xs:gYearMonth" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="gYear" type="xs:gYear" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="gMonthDay" type="xs:gMonthDay" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="gDay" type="xs:gDay" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="gMonth" type="xs:gMonth" minOccurs="0" maxOccurs="unbounded" />
<!-- Built-in Type: Decimal -->
<xs:element name="decimal" type="xs:decimal" minOccurs="0" maxOccurs="unbounded" />
<!-- Built-in Type: Float -->
<xs:element name="float" type="xs:float" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="double" type="xs:double" minOccurs="0" maxOccurs="unbounded" />
<!-- Built-in Type: Integer -->
<xs:element name="integer" type="xs:integer" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="nonPositiveInteger" type="xs:nonPositiveInteger" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="negativeInteger" type="xs:negativeInteger" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="long" type="xs:long" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="int" type="xs:int" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="short" type="xs:short" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="byte" type="xs:byte" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="nonNegativeInteger" type="xs:nonNegativeInteger" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="unsignedLong" type="xs:unsignedLong" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="positiveInteger" type="xs:positiveInteger" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="unsignedInt" type="xs:unsignedInt" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="unsignedShort" type="xs:unsignedShort" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="unsignedByte" type="xs:unsignedByte" minOccurs="0" maxOccurs="unbounded" />
<!-- Built-in Type: QName -->
<xs:element name="qName" type="xs:QName" minOccurs="0" maxOccurs="unbounded" />
<!-- Built-in Type: List -->
<!-- TODO: all typed derived by list, inclduing IDREFS and ENTITIES -->
<!-- Built-in Type: String -->
<xs:element name="string" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="normalizedString" type="xs:normalizedString" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="token" type="xs:token" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="language" type="xs:language" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="name" type="xs:Name" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="nCName" type="xs:NCName" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="iD" type="xs:ID" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="iDREF" type="xs:IDREF" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="eNTITY" type="xs:ENTITY" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="nMTOKEN" type="xs:NMTOKEN" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="anySimpleType" type="xs:anySimpleType" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="anyURI" type="xs:anyURI" minOccurs="0" maxOccurs="unbounded" />
<!-- TODO Notation-->
<!--
<xs:element name="Notation" type="xs:Notation" minOccurs="0" maxOccurs="unbounded" />
-->
<xs:element name="duration" type="xs:duration" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT greeting (#PCDATA)>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Hello [
<!ELEMENT Hello (#PCDATA)>
]>
<!-- comment as well -->
<Hello>Hello Jupiter!</Hello>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Hello" />
<xs:element name="greeting" />
</xs:schema>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" standalone="no" ?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>A typical HTML file</title>
</head>
<body>
<p>This is the typical structure of an XHTML file</p>
</body>
</html>

View File

@@ -0,0 +1,3 @@
<?xml version="1.0"?>
<!DOCTYPE greeting SYSTEM "docType.dtd">
<greeting>Hello, world!</greeting>

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE greeting [
<!ELEMENT greeting (#PCDATA)>
<!ELEMENT TVSCHEDULE (CHANNEL+)>
<!ELEMENT CHANNEL (BANNER, DAY+)>
<!ELEMENT BANNER (#PCDATA)>
<!ELEMENT DAY ((DATE, HOLIDAY) | (DATE, PROGRAMSLOT+))+>
<!ELEMENT HOLIDAY (#PCDATA)>
<!ELEMENT DATE (#PCDATA)>
<!ELEMENT PROGRAMSLOT (TIME, TITLE, DESCRIPTION?)>
<!ELEMENT TIME (#PCDATA)>
<!ELEMENT TITLE (#PCDATA)>
<!ELEMENT DESCRIPTION (#PCDATA)>
<!ATTLIST TVSCHEDULE NAME CDATA #REQUIRED>
<!ATTLIST CHANNEL CHAN CDATA #REQUIRED>
<!ATTLIST PROGRAMSLOT VTR CDATA #IMPLIED>
<!ATTLIST TITLE RATING CDATA #IMPLIED>
<!ATTLIST TITLE LANGUAGE CDATA #IMPLIED>
]>
<greeting>Hello, world!</greeting>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Hello [
<!-- comment text -->
<?name pidata?>
<!ELEMENT Hello (#PCDATA)>
]>
<!-- comment as well -->
<Hello>Hello Jupiter!</Hello>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
</xs:schema>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="emptyContent.xsd">
<internationalPrice currency="EUR" value="23132"/>
<internationalPrice currency="USD" value="10.00"/>
<internationalPrice currency="EUR" value="88.9"></internationalPrice>
</root>

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="root">
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element ref="internationalPrice"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="internationalPrice">
<xs:complexType>
<xs:complexContent>
<xs:restriction base="xs:anyType">
<xs:attribute name="currency" type="xs:string"/>
<xs:attribute name="value" type="xs:decimal"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:schema>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pPurchaseOrder [
<!ENTITY eacute "é&#xE9;">
<!ENTITY Pub-Status "This is a pre-release of the
specification.">
]>
<greeting xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xsi:noNamespaceSchemaLocation="empty.xsd" xsi:type="xs:string">
Hello &amp; good bye!
Montr&eacute;al
<!-- Pub-Status -->
&Pub-Status;
</greeting>

View File

@@ -0,0 +1 @@
abcdefg

View File

@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<!DOCTYPE foo [
<!ENTITY ent SYSTEM "entityReference2-er.xml">
]>
<foo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xsi:noNamespaceSchemaLocation="empty.xsd" xsi:type="xs:string">
<!-- entity reference -->
&ent;
</foo>

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE foo:P [
<!ENTITY ent SYSTEM "er-entity.xml">
]>
<!-- =================================================================== -->
<!-- Tests ER where there is no declared attributes or declared -->
<!-- attribute wildcard. -->
<!-- =================================================================== -->
<foo:P xmlns:foo='urn:foo' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<foo:P1>
&ent;<!-- ER -->
<foo:AB>a</foo:AB>
&ent;<!-- ER -->

View File

@@ -0,0 +1,17 @@
<?xml version='1.0'?>
<!DOCTYPE kontakt [
<!ELEMENT kontakt (name, email, telefon)>
<!ELEMENT name (vorname, nachname)>
<!ELEMENT vorname (#PCDATA)>
<!ELEMENT nachname (#PCDATA)>
<!ELEMENT email (#PCDATA)>
<!ELEMENT telefon (#PCDATA)>
]>
<kontakt>
<name>
<vorname>Peter</vorname>
<nachname>Mustermann</nachname>
</name>
<email>peter@firma.de</email>
<telefon>+49(0711)123456</telefon>
</kontakt>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<order xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="order.xsd" >
<product sku="X555" color="#000000">
<quantity xmlns:sss="dasdasdas" >12</quantity>
<price>13.55</price>
</product>
</order>

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="order">
<xs:complexType>
<xs:sequence>
<xs:element name="product" type="Product" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="Product" >
<xs:sequence>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="quantity" type="xs:integer" />
<xs:element name="price" type="xs:float" />
</xs:sequence>
<xs:attribute name="sku" type="xs:string" use="required" />
<xs:attribute name="color" type="xs:string" use="optional" />
</xs:complexType>
</xs:schema>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<patterns xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="patterns.xsd" >
<postcodeDE>81739</postcodeDE>
<postcodeDE>D 12345</postcodeDE>
</patterns>

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="patterns" >
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="postcodeDE" type="PostcodeGermany" />
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- german postcode, optional "D" followed by five digits -->
<xs:simpleType name="PostcodeGermany">
<xs:restriction base="xs:string">
<xs:pattern value="(D )?[0-9]{5}"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>

View File

@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="person.xsd" age="12">
<?NAME Attributes-List ?>
<!-- 1st Comment -->
<firstname>Daniel</firstname>
<!--undefined="true" -->
<lastname>Peintner<!-- 2nd Comment --></lastname>
<telephone>
<mobile>0173 111111</mobile>
</telephone>
<!-- recursion!!! -->
<info>
<text>
<info>
<text>
<info/>
</text>
<sss>AAA gonz a komischo Schas!</sss>
</info>
</text>
<sss>ss</sss>
</info>
<!-- no amol a kommentar -->
</person>
<!-- 3rd Comment , before telephone doesnt work !?!?-->
<!--
<secondRoot xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="person.xsd">
dasdsadsa
</secondRoot>
-->
<!--
<![CDATA[Hello this is the content of a CDATA section]]>
-->

View File

@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="person" >
<xs:complexType>
<xs:sequence>
<xs:element name="firstname" type="xs:string" minOccurs="0" />
<xs:element name="lastname" type="xs:string" />
<xs:element name="telephone" type="Telephone" minOccurs="0" />
<xs:element ref="info" minOccurs="0" />
</xs:sequence>
<xs:attribute name="age" type="xs:nonNegativeInteger" />
</xs:complexType>
</xs:element>
<!-- recursive info element etc. -->
<xs:element name="info" xml:space="preserve" >
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="2">
<xs:element name="text" type="Text" />
<xs:element name="sss" type="xs:string" />
</xs:choice>
</xs:complexType>
</xs:element>
<xs:complexType name="Text">
<xs:sequence>
<xs:element ref="info" />
</xs:sequence>
</xs:complexType>
<xs:element name="secondRoot" type="xs:string"/>
<xs:complexType name="Telephone">
<xs:choice>
<xs:element name="fixed" type="xs:string"/>
<xs:element name="mobile" type="xs:string" />
<!-- stupid testcase !!!! -->
<!-- <xs:element name="info" type="xs:boolean" />-->
</xs:choice>
</xs:complexType>
</xs:schema>

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="person.xsd" age="12">
<firstname>Daniel</firstname>
<lastname>Peintner</lastname>
<telephone>
<mobile>0173 111111</mobile>
</telephone>
<info>
<text>
<info>
<text>
<info/>
</text>
<sss>AAA gonz a komischo Schas!</sss>
</info>
</text>
<sss>ss</sss>
</info>
</person>

View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<personnel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation='personal.xsd'>
<person id="Big.Boss" >
<name><family>Boss</family> <given>Big</given></name>
<email>chief@foo.com</email>
<link subordinates="one.worker two.worker three.worker four.worker five.worker"/>
</person>
<person id="one.worker">
<name><family>Worker</family> <given>One</given></name>
<email>one@foo.com</email>
<link manager="Big.Boss"/>
</person>
<person id="two.worker">
<name><family>Worker</family> <given>Two</given></name>
<email>two@foo.com</email>
<link manager="Big.Boss"/>
</person>
<person id="three.worker">
<name><family>Worker</family> <given>Three</given></name>
<email>three@foo.com</email>
<link manager="Big.Boss"/>
</person>
<person id="four.worker">
<name><family>Worker</family> <given>Four</given></name>
<email>four@foo.com</email>
<link manager="Big.Boss"/>
</person>
<person id="five.worker">
<name><family>Worker</family> <given>Five</given></name>
<email>five@foo.com</email>
<link manager="Big.Boss"/>
</person>
</personnel>

View File

@@ -0,0 +1,25 @@
<?xml encoding="UTF-8"?>
<!ELEMENT personnel (person)+>
<!ELEMENT person (name,email*,url*,link?)>
<!ATTLIST person id ID #REQUIRED>
<!ATTLIST person note CDATA #IMPLIED>
<!ATTLIST person contr (true|false) 'false'>
<!ATTLIST person salary CDATA #IMPLIED>
<!ELEMENT name ((family,given)|(given,family))>
<!ELEMENT family (#PCDATA)>
<!ELEMENT given (#PCDATA)>
<!ELEMENT email (#PCDATA)>
<!ELEMENT url EMPTY>
<!ATTLIST url href CDATA 'http://'>
<!ELEMENT link EMPTY>
<!ATTLIST link manager IDREF #IMPLIED>
<!ATTLIST link subordinates IDREFS #IMPLIED>
<!NOTATION gif PUBLIC '-//APP/Photoshop/4.0' 'photoshop.exe'>

View File

@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<personnel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="personal.xsd">
<person id="Big.Boss">
<name><family>Boss</family> <given>Big</given></name>
<email>chief@foo.com</email>
<link subordinates="one.worker two.worker three.worker four.worker five.worker"/>
</person>
<person id="one.worker">
<name><family>Worker</family> <given>One</given></name>
<email>one@foo.com</email>
<link manager="Big.Boss"/>
</person>
<person id="two.worker">
<name><family>Worker</family> <given>Two</given></name>
<email>two@foo.com</email>
<link manager="Big.Boss"/>
</person>
<person id="three.worker">
<name><family>Worker</family> <given>Three</given></name>
<email>three@foo.com</email>
<link manager="Big.Boss"/>
</person>
<person id="four.worker">
<name><family>Worker</family> <given>Four</given></name>
<email>four@foo.com</email>
<link manager="Big.Boss"/>
</person>
<person id="five.worker">
<name><family>Worker</family> <given>Five</given></name>
<email>five@foo.com</email>
<link manager="Big.Boss"/>
</person>
</personnel>

View File

@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:element name="personnel">
<xs:complexType>
<xs:sequence>
<xs:element ref="person" minOccurs='1' maxOccurs='unbounded'/>
</xs:sequence>
</xs:complexType>
<xs:unique name="unique1">
<xs:selector xpath="person"/>
<xs:field xpath="name/given"/>
<xs:field xpath="name/family"/>
</xs:unique>
<xs:key name='empid'>
<xs:selector xpath="person"/>
<xs:field xpath="@id"/>
</xs:key>
<xs:keyref name="keyref1" refer='empid'>
<xs:selector xpath="person"/>
<xs:field xpath="link/@manager"/>
</xs:keyref>
</xs:element>
<xs:element name="person">
<xs:complexType>
<xs:sequence>
<xs:element ref="name"/>
<xs:element ref="email" minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref="url" minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref="link" minOccurs='0' maxOccurs='1'/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use='required'/>
<xs:attribute name="note" type="xs:string"/>
<xs:attribute name="contr" default="false">
<xs:simpleType>
<xs:restriction base = "xs:string">
<xs:enumeration value="true"/>
<xs:enumeration value="false"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="salary" type="xs:integer"/>
</xs:complexType>
</xs:element>
<xs:element name="name">
<xs:complexType>
<xs:all>
<xs:element ref="family"/>
<xs:element ref="given"/>
</xs:all>
</xs:complexType>
</xs:element>
<xs:element name="family" type='xs:string'/>
<xs:element name="given" type='xs:string'/>
<xs:element name="email" type='xs:string'/>
<xs:element name="url">
<xs:complexType>
<xs:attribute name="href" type="xs:string" default="http://"/>
</xs:complexType>
</xs:element>
<xs:element name="link">
<xs:complexType>
<xs:attribute name="manager" type="xs:IDREF"/>
<xs:attribute name="subordinates" type="xs:IDREFS"/>
</xs:complexType>
</xs:element>
<xs:notation name='gif' public='-//APP/Photoshop/4.0' system='photoshop.exe'/>
</xs:schema>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<name xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="pi1.xsd"
nickname="Shiny John">
<first>John</first>
<middle/>
<?nameprocessor SELECT * FROM blah?>
<last>Doe</last>
</name>

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="name">
<xs:complexType>
<xs:sequence>
<xs:element ref="first"/>
<xs:element ref="middle"/>
<xs:element ref="last"/>
</xs:sequence>
<xs:attribute name="nickname" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="first" type="xs:NCName"/>
<xs:element name="middle">
<xs:complexType/>
</xs:element>
<xs:element name="last" type="xs:NCName"/>
</xs:schema>

View File

@@ -0,0 +1,32 @@
<?xml version="1.0"?>
<purchaseOrder orderDate="1999-10-20">
<shipTo country="US">
<name>Alice Smith</name>
<street>123 Maple Street</street>
<city>Mill Valley</city>
<state>CA</state>
<zip>90952</zip>
</shipTo>
<billTo country="US">
<name>Robert Smith</name>
<street>8 Oak Avenue</street>
<city>Old Town</city>
<state>PA</state>
<zip>95819</zip>
</billTo>
<comment>Hurry, my lawn is going wild!</comment>
<items>
<item partNum="872-AA">
<productName>Lawnmower</productName>
<quantity>1</quantity>
<USPrice>148.95</USPrice>
<comment>Confirm this is electric</comment>
</item>
<item partNum="926-AA">
<productName>Baby Monitor</productName>
<quantity>1</quantity>
<USPrice>39.98</USPrice>
<shipDate>1999-05-21</shipDate>
</item>
</items>
</purchaseOrder>

View File

@@ -0,0 +1,66 @@
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Purchase order schema for Example.com.
Copyright 2000 Example.com. All rights reserved.
</xsd:documentation>
</xsd:annotation>
<xsd:element name="purchaseOrder" type="PurchaseOrderType"/>
<xsd:element name="comment" type="xsd:string"/>
<xsd:complexType name="PurchaseOrderType">
<xsd:sequence>
<xsd:element name="shipTo" type="USAddress"/>
<xsd:element name="billTo" type="USAddress"/>
<xsd:element ref="comment" minOccurs="0"/>
<xsd:element name="items" type="Items"/>
</xsd:sequence>
<xsd:attribute name="orderDate" type="xsd:date"/>
</xsd:complexType>
<xsd:complexType name="USAddress">
<xsd:sequence>
<xsd:element name="name" type="xsd:string"/>
<xsd:element name="street" type="xsd:string"/>
<xsd:element name="city" type="xsd:string"/>
<xsd:element name="state" type="xsd:string"/>
<xsd:element name="zip" type="xsd:decimal"/>
</xsd:sequence>
<xsd:attribute name="country" type="xsd:NMTOKEN"
fixed="US"/>
</xsd:complexType>
<xsd:complexType name="Items">
<xsd:sequence>
<xsd:element name="item" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="productName" type="xsd:string"/>
<xsd:element name="quantity">
<xsd:simpleType>
<xsd:restriction base="xsd:positiveInteger">
<xsd:maxExclusive value="100"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="USPrice" type="xsd:decimal"/>
<xsd:element ref="comment" minOccurs="0"/>
<xsd:element name="shipDate" type="xsd:date" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="partNum" type="SKU" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<!-- Stock Keeping Unit, a code for identifying products -->
<xsd:simpleType name="SKU">
<xsd:restriction base="xsd:string">
<xsd:pattern value="\d{3}-[A-Z]{2}"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,124 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="guttext">
<xs:complexType>
<xs:sequence>
<xs:element ref="markupmeta"/>
<xs:element ref="play"/>
<xs:element ref="endgutmeta"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="markupmeta">
<xs:complexType>
<xs:sequence>
<xs:element ref="title"/>
<xs:element ref="gutdate"/>
<xs:element ref="textnum"/>
<xs:element ref="para"/>
<xs:element ref="gutfilename"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="gutdate" type="xs:string"/>
<xs:element name="textnum" type="xs:integer"/>
<xs:element name="para" type="xs:string"/>
<xs:element name="gutfilename" type="xs:string"/>
<xs:element name="play">
<xs:complexType>
<xs:sequence>
<xs:element ref="frontmatter"/>
<xs:element ref="playbody"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="frontmatter">
<xs:complexType>
<xs:sequence>
<xs:element ref="titlepage"/>
<xs:element ref="personae"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="titlepage">
<xs:complexType>
<xs:sequence>
<xs:element ref="pubinfo"/>
<xs:element ref="title"/>
<xs:element ref="author"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="pubinfo" type="xs:integer"/>
<xs:element name="author" type="xs:string"/>
<xs:element name="personae">
<xs:complexType>
<xs:sequence>
<xs:element ref="title"/>
<xs:element maxOccurs="unbounded" ref="pgroup"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="pgroup">
<xs:complexType mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="title"/>
<xs:element ref="persona"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="persona" type="xs:string"/>
<xs:element name="playbody">
<xs:complexType>
<xs:sequence>
<xs:element ref="scene"/>
<xs:element maxOccurs="unbounded" ref="act"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="act">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" ref="title"/>
<xs:element maxOccurs="unbounded" ref="scene"/>
</xs:sequence>
<xs:attribute name="id" use="required" type="xs:integer"/>
</xs:complexType>
</xs:element>
<xs:element name="endgutmeta" type="xs:string"/>
<xs:element name="title" type="xs:string"/>
<xs:element name="scene">
<xs:complexType>
<xs:sequence>
<xs:element ref="scndesc"/>
<xs:choice maxOccurs="unbounded">
<xs:element ref="stagedir"/>
<xs:element ref="title"/>
<xs:element ref="speech"/>
</xs:choice>
<xs:element minOccurs="0" ref="note"/>
</xs:sequence>
<xs:attribute name="id" type="xs:integer"/>
</xs:complexType>
</xs:element>
<xs:element name="scndesc" type="xs:string"/>
<xs:element name="speech">
<xs:complexType mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="stagedir"/>
<xs:element ref="line"/>
<xs:element ref="speaker"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="line">
<xs:complexType mixed="true">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="stagedir"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="speaker" type="xs:string"/>
<xs:element name="note" type="xs:string"/>
<xs:element name="stagedir" type="xs:string"/>
</xs:schema>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="simpleContent.xsd">
<values format="FLOAT32" numvalues="1" byteorder="INTEL"> 0FB7 </values>
<values format="FLOAT64" byteorder="INTEL">SMOkdHRlbiBIw7x0ZSBlaW4gw58gaW0g</values>
</root>

View File

@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="root">
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element ref="values"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="values">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:base64Binary">
<xs:attribute name="format" use="required">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="FLOAT32"/>
<xs:enumeration value="FLOAT64"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="byteorder" use="required">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="INTEL"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="numvalues" use="optional">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger"/>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:schema>

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="stringTable1.xsd">
<!--
# Compression
[Structure]
[ # b #
abc (miss)
foo (miss)
X (miss)
xyz (miss)
]
[ # a #
X (global-hit to a)
]
-->
<b>abc</b>
<a>X</a>
<b>foo</b>
<b>X</b>
<b>xyz</b>
</root>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="root" >
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element name="a" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="b" type="xs:string" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

View File

@@ -0,0 +1,113 @@
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="stringTable2.xsd">
<!--
# Compression
[ Structure + (a) + (c)]
[ (b)]
-->
<a>a1</a>
<a>a2</a>
<b>0</b>
<c>foo</c>
<b>1</b>
<b>2</b>
<b>3</b>
<b>4</b>
<b>5</b>
<b>6</b>
<b>7</b>
<b>8</b>
<b>9</b>
<b>10</b>
<b>11</b>
<b>12</b>
<b>13</b>
<b>14</b>
<b>15</b>
<b>16</b>
<b>17</b>
<b>18</b>
<b>19</b>
<b>20</b>
<b>21</b>
<b>22</b>
<b>23</b>
<b>24</b>
<b>25</b>
<b>26</b>
<b>27</b>
<b>28</b>
<b>29</b>
<b>30</b>
<b>31</b>
<b>32</b>
<b>33</b>
<b>34</b>
<b>35</b>
<b>36</b>
<b>37</b>
<b>38</b>
<b>39</b>
<b>40</b>
<b>41</b>
<b>42</b>
<b>43</b>
<b>44</b>
<b>45</b>
<b>46</b>
<b>47</b>
<b>48</b>
<b>49</b>
<b>50</b>
<b>51</b>
<b>52</b>
<b>53</b>
<b>54</b>
<b>55</b>
<b>56</b>
<b>57</b>
<b>58</b>
<b>59</b>
<b>60</b>
<b>61</b>
<b>62</b>
<b>63</b>
<b>64</b>
<b>65</b>
<b>66</b>
<b>67</b>
<b>68</b>
<b>69</b>
<b>70</b>
<b>71</b>
<b>72</b>
<b>73</b>
<b>74</b>
<b>75</b>
<b>76</b>
<b>77</b>
<b>78</b>
<b>79</b>
<b>80</b>
<b>81</b>
<b>82</b>
<b>83</b>
<b>84</b>
<b>85</b>
<b>86</b>
<b>87</b>
<b>88</b>
<b>89</b>
<b>90</b>
<b>91</b>
<b>92</b>
<b>93</b>
<b>94</b>
<b>95</b>
<b>96</b>
<b>97</b>
<b>98</b>
<b>99</b>
<b>100</b>
</root>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="root">
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="a" type="xs:string" minOccurs="0" />
<xs:element name="b" type="xs:string" minOccurs="0" />
<xs:element name="c" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns="http://www.siemens.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.siemens.com/ ./test1.xsd">
<a>a</a>
<!-- <b>b</b>
<c>c</c>
<d>d</d>
<e>e</e>-->
</list>

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.siemens.com/"
elementFormDefault="qualified">
<xs:element name="list">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="a" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="b" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="c" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="d" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="e" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="f" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="g" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="h" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="i" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="j" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="k" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="l" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="m" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="n" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="o" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="p" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<s:list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.siemens.com/ test1.xsd"
xmlns:s="http://www.siemens.com/" xmlns:ss="http://www.siemens.com/" >
<s:a>s a</s:a>
<ss:b>ss b</ss:b>
<s:c>s c</s:c>
<ss:d>ss d</ss:d>
<xx:e xmlns:xx="http://www.siemens.com/">xx e</xx:e>
</s:list>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<info xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="test2.xsd">
<text>
<info/><!-- empty element -->
</text>
<sss>AAA gonz a komischo Schas!</sss>
</info>

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="Text">
<xs:sequence>
<xs:element ref="info"/>
</xs:sequence>
</xs:complexType>
<!-- recursive info element etc. -->
<xs:element name="info">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="2">
<xs:element name="text" type="Text"/>
<xs:element name="sss" type="xs:string"/>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="test3.xsd" id="s">
<!-- mixed content -->
<info> info_outer <test id="s">
<info>info_inner</info>
</test>
XxX
</info>
</test>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="test">
<xs:complexType>
<xs:sequence>
<xs:element name="info" />
</xs:sequence>
<xs:attribute name="id" use="required" />
</xs:complexType>
</xs:element>
</xs:schema>

View File

@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<intervalA xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="test4.xsd" min="32767" max="32767"></intervalA>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="intervalA" type="Interval"/>
<xs:element name="intervalB" type="Interval"/>
<xs:complexType name="Interval">
<xs:attribute name="min" type="xs:short" use="required"/>
<xs:attribute name="max" type="xs:short" use="required"/>
</xs:complexType>
</xs:schema>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="test5.xsd"
id="32767">
<interval min="32767" max="32767"/>
</a>

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="a" type="SubscriptionReqElement" />
<xsd:element name="b" type="DescriptionElement" />
<xsd:complexType name="Interval">
<xsd:attribute name="min" type="xsd:short" use="required"/>
<xsd:attribute name="max" type="xsd:short" use="required"/>
</xsd:complexType>
<xsd:complexType name="SubscriptionReqElement">
<xsd:choice>
<xsd:element name="interval" type="Interval"/>
</xsd:choice>
<xsd:attribute name="id" type="xsd:short" use="required"/>
</xsd:complexType>
<xsd:complexType name="DescriptionElement">
<xsd:sequence>
<xsd:element name="interval" type="Interval"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:short" use="required"/>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:schema>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<zero-unbounded xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="unbounded.xsd" >
<entry>a</entry>
<entry>b</entry>
<entry>c</entry>
</zero-unbounded>

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="one-unbounded" >
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element name="entry" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="zero-unbounded" >
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="entry" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>