add files
This commit is contained in:
6
temp/exificient/data/schema/all.xml
Normal file
6
temp/exificient/data/schema/all.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="all.xsd">
|
||||
<c>c</c>
|
||||
<b>b</b>
|
||||
<a>a</a>
|
||||
</root>
|
||||
13
temp/exificient/data/schema/all.xsd
Normal file
13
temp/exificient/data/schema/all.xsd
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
|
||||
<xsd:element name="root" type="Root"/>
|
||||
|
||||
<xsd:complexType name="Root">
|
||||
<xsd:all>
|
||||
<xsd:element name="a" type="xsd:string"/>
|
||||
<xsd:element name="b" type="xsd:string"/>
|
||||
<xsd:element name="c" type="xsd:string"/>
|
||||
</xsd:all>
|
||||
</xsd:complexType>
|
||||
</xsd:schema>
|
||||
14
temp/exificient/data/schema/all2.xml
Normal file
14
temp/exificient/data/schema/all2.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="all2.xsd">
|
||||
|
||||
<a>a</a>
|
||||
<b>b</b>
|
||||
<c>c</c>
|
||||
<d>d</d>
|
||||
<e>e</e>
|
||||
<!-- Problem empty content ?-->
|
||||
<g></g>
|
||||
<f>f</f>
|
||||
|
||||
</root>
|
||||
18
temp/exificient/data/schema/all2.xsd
Normal file
18
temp/exificient/data/schema/all2.xsd
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
|
||||
<xsd:element name="root" type="uuvTelemetryElementType"/>
|
||||
|
||||
<xsd:complexType name="uuvTelemetryElementType">
|
||||
<xsd:all>
|
||||
<xsd:element name="a" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="b" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="c" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="d" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="e" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="f" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="g" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:all>
|
||||
</xsd:complexType>
|
||||
|
||||
</xsd:schema>
|
||||
25
temp/exificient/data/schema/any.xsd
Normal file
25
temp/exificient/data/schema/any.xsd
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<xs:element name="person">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="firstname" type="xs:string"/>
|
||||
<xs:element name="lastname" type="xs:string"/>
|
||||
<!-- ANY -->
|
||||
<xs:any minOccurs="0"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="children">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="childname" type="xs:string"
|
||||
maxOccurs="unbounded"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
</xs:schema>
|
||||
12
temp/exificient/data/schema/any0.xml
Normal file
12
temp/exificient/data/schema/any0.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="any.xsd">
|
||||
|
||||
<firstname>Maria</firstname>
|
||||
<lastname>Steward</lastname>
|
||||
<children>
|
||||
<childname>Henry</childname>
|
||||
<childname>Sepp</childname>
|
||||
</children>
|
||||
|
||||
</person>
|
||||
6
temp/exificient/data/schema/any1.xml
Normal file
6
temp/exificient/data/schema/any1.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="any1.xsd">
|
||||
<val>231273</val>
|
||||
<val>2007-12-12</val>
|
||||
</root>
|
||||
15
temp/exificient/data/schema/any1.xsd
Normal file
15
temp/exificient/data/schema/any1.xsd
Normal file
@@ -0,0 +1,15 @@
|
||||
<?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>
|
||||
<xs:element name="val" type="xs:int" />
|
||||
<xs:any minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="val" type="xs:date" />
|
||||
|
||||
</xs:schema>
|
||||
6
temp/exificient/data/schema/anyAttributes.xml
Normal file
6
temp/exificient/data/schema/anyAttributes.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<anyAttributes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="anyAttributes.xsd">
|
||||
<el gender="male" />
|
||||
<el at1="at1" at2="at2" atunknown="xxx"></el>
|
||||
</anyAttributes>
|
||||
27
temp/exificient/data/schema/anyAttributes.xsd
Normal file
27
temp/exificient/data/schema/anyAttributes.xsd
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" >
|
||||
<xs:element name="anyAttributes">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element maxOccurs="unbounded" ref="el"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="el">
|
||||
<xs:complexType>
|
||||
<xs:anyAttribute processContents="lax"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:attribute name="gender">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="male|female"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
|
||||
<xs:attribute name="at1" />
|
||||
<xs:attribute name="at2" />
|
||||
|
||||
</xs:schema>
|
||||
21
temp/exificient/data/schema/attributeGroup1.xsd
Normal file
21
temp/exificient/data/schema/attributeGroup1.xsd
Normal 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="customer" >
|
||||
<xs:complexType>
|
||||
<xs:sequence maxOccurs="unbounded">
|
||||
<xs:element name="person" type="Person"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:attributeGroup name="personattr">
|
||||
<xs:attribute name="attr1" type="xs:string"/>
|
||||
<xs:attribute name="attr2" type="xs:integer"/>
|
||||
</xs:attributeGroup>
|
||||
|
||||
<xs:complexType name="Person">
|
||||
<xs:attributeGroup ref="personattr"/>
|
||||
</xs:complexType>
|
||||
|
||||
</xs:schema>
|
||||
5
temp/exificient/data/schema/attributeGroup1a.xml
Normal file
5
temp/exificient/data/schema/attributeGroup1a.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<customer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="attributeGroup1.xsd">
|
||||
<person attr1="at1" attr2="12345"></person>
|
||||
</customer>
|
||||
5
temp/exificient/data/schema/attributeGroup1b.xml
Normal file
5
temp/exificient/data/schema/attributeGroup1b.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<customer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="attributeGroup1.xsd">
|
||||
<person attr2="99"></person>
|
||||
</customer>
|
||||
7
temp/exificient/data/schema/attributeSpace.xml
Normal file
7
temp/exificient/data/schema/attributeSpace.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ampl xmlns="asmtf2006:set"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="asmtf2006:set attributeSpace.xsd" >
|
||||
<free_text xmlns="" xml:space="default">
|
||||
</free_text>
|
||||
</ampl>
|
||||
37
temp/exificient/data/schema/attributeSpace.xsd
Normal file
37
temp/exificient/data/schema/attributeSpace.xsd
Normal file
@@ -0,0 +1,37 @@
|
||||
<xsd:schema targetNamespace="asmtf2006:set" xml:lang="en-US" version="1.1" xmlns="asmtf2006:set"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:c="asmtf2006:composite"
|
||||
xmlns:f="asmtf2006:field" elementFormDefault="unqualified" attributeFormDefault="unqualified">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
|
||||
|
||||
<xsd:element name="ampl" type="amplification" />
|
||||
|
||||
<xsd:complexType name="amplification">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="free_text" minOccurs="1" maxOccurs="1" nillable="true">
|
||||
<xsd:complexType>
|
||||
<xsd:simpleContent>
|
||||
<xsd:extension base="free.text">
|
||||
<xsd:attribute name="ff-seq" type="xsd:unsignedShort" fixed="1"/>
|
||||
</xsd:extension>
|
||||
</xsd:simpleContent>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="setid" type="xsd:string" fixed="AMPN"/>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="free.text">
|
||||
<xsd:simpleContent>
|
||||
<xsd:extension base="free.text.base.type">
|
||||
<xsd:attribute ref="xml:space"/>
|
||||
</xsd:extension>
|
||||
</xsd:simpleContent>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:simpleType name="free.text.base.type">
|
||||
<xsd:restriction base="xsd:string">
|
||||
<xsd:pattern value="([:A-Z0-9 \.,\(\)\?\-!@#$%\^&\*=_\+\[\]\{\}\\"';><~`\|a-z\t\n]([:A-Z0-9 \.,\(\)\?\-!@#$%\^&\*=_\+\[\]\{\}\\"';><~`\|a-z\t\n]|://|/[:A-Z0-9 \.,\(\)\?\-!@#$%\^&\*=_\+\[\]\{\}\\"';><~`\|a-z\t\n])*)"/>
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
|
||||
</xsd:schema>
|
||||
15
temp/exificient/data/schema/booleanPattern.xml
Normal file
15
temp/exificient/data/schema/booleanPattern.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="booleanPattern.xsd" >
|
||||
<!-- no facets -->
|
||||
<b>true</b>
|
||||
<b>1</b>
|
||||
<b>false</b>
|
||||
<b>0</b>
|
||||
<!-- 0/1 facet -->
|
||||
<b01>0</b01>
|
||||
<b01>1</b01>
|
||||
<!-- true/false facet -->
|
||||
<bTF>true</bTF>
|
||||
<bTF>false</bTF>
|
||||
</root>
|
||||
29
temp/exificient/data/schema/booleanPattern.xsd
Normal file
29
temp/exificient/data/schema/booleanPattern.xsd
Normal file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<xs:element name="root">
|
||||
<xs:complexType>
|
||||
<xs:sequence >
|
||||
<xs:element name="b" type="xs:boolean" maxOccurs="unbounded" />
|
||||
<xs:element name="b01" type="Boolean01" maxOccurs="unbounded" />
|
||||
<xs:element name="bTF" type="BooleanTrueFalse" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:simpleType name="Boolean01">
|
||||
<xs:restriction base="xs:boolean">
|
||||
<xs:pattern value="0" />
|
||||
<xs:pattern value="1" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="BooleanTrueFalse">
|
||||
<xs:restriction base="xs:boolean">
|
||||
<xs:pattern value="true" />
|
||||
<xs:pattern value="false" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
</xs:schema>
|
||||
14
temp/exificient/data/schema/choice.xsd
Normal file
14
temp/exificient/data/schema/choice.xsd
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<xs:element name="root">
|
||||
<xs:complexType>
|
||||
<xs:choice>
|
||||
<xs:element name="el1" type="xs:NMTOKEN"/>
|
||||
<xs:element name="el2" type="xs:int"/>
|
||||
<xs:element name="el3" type="xs:date"/>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
</xs:schema>
|
||||
5
temp/exificient/data/schema/choice1.xml
Normal file
5
temp/exificient/data/schema/choice1.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="choice.xsd">
|
||||
<el1>s1</el1>
|
||||
</root>
|
||||
5
temp/exificient/data/schema/choice2.xml
Normal file
5
temp/exificient/data/schema/choice2.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="choice.xsd">
|
||||
<el2>1234</el2>
|
||||
</root>
|
||||
5
temp/exificient/data/schema/choice3.xml
Normal file
5
temp/exificient/data/schema/choice3.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="choice.xsd">
|
||||
<el3>2007-12-11</el3>
|
||||
</root>
|
||||
12
temp/exificient/data/schema/choiceN.xsd
Normal file
12
temp/exificient/data/schema/choiceN.xsd
Normal 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:choice maxOccurs="3">
|
||||
<xs:element name="el1" type="xs:string"/>
|
||||
<xs:element name="el2" type="xs:integer"/>
|
||||
<xs:element name="el3" type="xs:date"/>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
7
temp/exificient/data/schema/choiceN1.xml
Normal file
7
temp/exificient/data/schema/choiceN1.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="choiceN.xsd">
|
||||
<el2>1234</el2>
|
||||
<el1>s1</el1>
|
||||
<el1>42</el1>
|
||||
</root>
|
||||
4
temp/exificient/data/schema/empty.xsd
Normal file
4
temp/exificient/data/schema/empty.xsd
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
|
||||
</xs:schema>
|
||||
8
temp/exificient/data/schema/enumeration.xml
Normal file
8
temp/exificient/data/schema/enumeration.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<cars xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="enumeration.xsd">
|
||||
<car>Audi</car>
|
||||
<car>BMW</car>
|
||||
<star>5</star>
|
||||
<star>2</star>
|
||||
</cars>
|
||||
44
temp/exificient/data/schema/enumeration.xsd
Normal file
44
temp/exificient/data/schema/enumeration.xsd
Normal file
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
|
||||
<xs:element name="cars" type="Cars"/>
|
||||
|
||||
<xs:complexType name="Cars">
|
||||
<xs:sequence>
|
||||
<!--<xs:element ref="car" />-->
|
||||
<xs:element name="car" type="stCar" maxOccurs="unbounded" />
|
||||
<xs:element name="star" type="Stars" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<!-- <xs:element name="car">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="stCar">
|
||||
<!- -<xs:extension base="xs:string">- ->
|
||||
<xs:attribute name="stars" type="Stars"/>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
</xs:element>-->
|
||||
|
||||
<xs:simpleType name="stCar">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Audi"/>
|
||||
<xs:enumeration value="Golf"/>
|
||||
<xs:enumeration value="BMW"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
|
||||
<xs:simpleType name="Stars">
|
||||
<xs:restriction base="xs:integer">
|
||||
<xs:enumeration value="1"/>
|
||||
<xs:enumeration value="2"/>
|
||||
<xs:enumeration value="3"/>
|
||||
<xs:enumeration value="4"/>
|
||||
<xs:enumeration value="5"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
</xs:schema>
|
||||
23
temp/exificient/data/schema/globalAttribute.xsd
Normal file
23
temp/exificient/data/schema/globalAttribute.xsd
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<xs:element name="root">
|
||||
<xs:complexType>
|
||||
<xs:sequence maxOccurs="unbounded">
|
||||
<xs:element name="anyElement" type="AnyElement"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:complexType name="AnyElement">
|
||||
<xs:sequence >
|
||||
<xs:any minOccurs="0" />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute/>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:attribute name="globalInt" type="xs:int" />
|
||||
<xs:attribute name="globalFloat" type="xs:float" />
|
||||
|
||||
</xs:schema>
|
||||
8
temp/exificient/data/schema/globalAttribute1.xml
Normal file
8
temp/exificient/data/schema/globalAttribute1.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="globalAttribute.xsd" >
|
||||
<anyElement globalInt="12" />
|
||||
<anyElement globalFloat="3E4" />
|
||||
<anyElement globalFloat="1.45" globalInt="77" />
|
||||
<anyElement />
|
||||
</root>
|
||||
8
temp/exificient/data/schema/group1.xml
Normal file
8
temp/exificient/data/schema/group1.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<order xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="group1.xsd" status="final">
|
||||
<customer>C</customer>
|
||||
<orderdetails>OD</orderdetails>
|
||||
<billto>to</billto>
|
||||
<shipto>to</shipto>
|
||||
</order>
|
||||
19
temp/exificient/data/schema/group1.xsd
Normal file
19
temp/exificient/data/schema/group1.xsd
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
<xs:group name="custGroup">
|
||||
<xs:sequence>
|
||||
<xs:element name="customer" type="xs:string"/>
|
||||
<xs:element name="orderdetails" type="xs:string"/>
|
||||
<xs:element name="billto" type="xs:string"/>
|
||||
<xs:element name="shipto" type="xs:string"/>
|
||||
</xs:sequence>
|
||||
</xs:group>
|
||||
|
||||
<xs:element name="order" type="ordertype"/>
|
||||
|
||||
<xs:complexType name="ordertype">
|
||||
<xs:group ref="custGroup"/>
|
||||
<xs:attribute name="status" type="xs:string"/>
|
||||
</xs:complexType>
|
||||
|
||||
</xs:schema>
|
||||
16
temp/exificient/data/schema/group2.xml
Normal file
16
temp/exificient/data/schema/group2.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<order xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="group2.xsd" >
|
||||
<o1>
|
||||
<customer>C1</customer>
|
||||
<orderdetails>O1</orderdetails>
|
||||
<billto>B1</billto>
|
||||
<shipto>S1</shipto>
|
||||
</o1>
|
||||
<o2>
|
||||
<customer>C2</customer>
|
||||
<orderdetails>O2</orderdetails>
|
||||
<billto>B2</billto>
|
||||
<shipto>S2</shipto>
|
||||
</o2>
|
||||
</order>
|
||||
29
temp/exificient/data/schema/group2.xsd
Normal file
29
temp/exificient/data/schema/group2.xsd
Normal file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
<xs:group name="custGroup">
|
||||
<xs:sequence>
|
||||
<xs:element name="customer" type="xs:string"/>
|
||||
<xs:element name="orderdetails" type="xs:string"/>
|
||||
<xs:element name="billto" type="xs:string"/>
|
||||
<xs:element name="shipto" type="xs:string"/>
|
||||
</xs:sequence>
|
||||
</xs:group>
|
||||
|
||||
<xs:element name="order" type="ordertype"/>
|
||||
|
||||
<xs:complexType name="ordertype">
|
||||
<xs:sequence>
|
||||
<xs:element name="o1">
|
||||
<xs:complexType>
|
||||
<xs:group ref="custGroup"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="o2">
|
||||
<xs:complexType>
|
||||
<xs:group ref="custGroup"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
</xs:schema>
|
||||
8
temp/exificient/data/schema/group3.xml
Normal file
8
temp/exificient/data/schema/group3.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<positions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="group3.xsd" >
|
||||
<SetPosition>
|
||||
<XYPosition x="0.0" y="0.0"/>
|
||||
<Depth value="0.0"/>
|
||||
</SetPosition>
|
||||
</positions>
|
||||
115
temp/exificient/data/schema/group3.xsd
Normal file
115
temp/exificient/data/schema/group3.xsd
Normal file
@@ -0,0 +1,115 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
|
||||
<xsd:element name="positions">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="SetPosition" maxOccurs="unbounded" />
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
|
||||
|
||||
<xsd:element name="SetPosition" type="uuvPositionCommandType">
|
||||
</xsd:element>
|
||||
|
||||
<xsd:complexType name="uuvPositionCommandType">
|
||||
<xsd:sequence>
|
||||
<xsd:group ref="AbsoluteHorizontalPositionElements"/>
|
||||
<xsd:element name="Depth" type="positiveScalarElementType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
<xsd:attributeGroup ref="CommonAttributes"/>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:group name="AbsoluteHorizontalPositionElements">
|
||||
<xsd:choice>
|
||||
<xsd:element name="LatitudeLongitude" type="latitudeLongitudeElementType">
|
||||
</xsd:element>
|
||||
<xsd:element name="XYPosition" type="xyElementType">
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:group>
|
||||
|
||||
<xsd:complexType name="xyElementType">
|
||||
<xsd:attribute name="x" type="xsd:double" use="required"/>
|
||||
<xsd:attribute name="y" type="xsd:double" use="required"/>
|
||||
<xsd:attributeGroup ref="CommonAttributes"/>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="latitudeLongitudeElementType">
|
||||
<xsd:attribute name="latitude" type="latitudeType" use="required"/>
|
||||
<xsd:attribute name="longitude" type="longitudeType" use="required"/>
|
||||
<xsd:attributeGroup ref="CommonAttributes"/>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:simpleType name="latitudeType">
|
||||
<xsd:restriction base="xsd:double">
|
||||
<xsd:minInclusive value="-90"/>
|
||||
<xsd:maxInclusive value="90"/>
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
<xsd:simpleType name="longitudeType">
|
||||
<xsd:restriction base="xsd:double">
|
||||
<xsd:minInclusive value="-180"/>
|
||||
<xsd:maxInclusive value="180"/>
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
|
||||
<xsd:complexType name="positiveScalarElementType">
|
||||
<xsd:attribute name="value" type="positiveScalarType" use="required"/>
|
||||
<xsd:attributeGroup ref="CommonAttributes"/>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:simpleType name="positiveScalarType">
|
||||
<xsd:restriction base="xsd:double">
|
||||
<xsd:minInclusive value="0"/>
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
|
||||
<xsd:simpleType name="nonNegativeScalarType">
|
||||
<xsd:restriction base="xsd:double">
|
||||
<xsd:minInclusive value="0"/>
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
|
||||
<xsd:attributeGroup name="CommonAttributes">
|
||||
<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:group name="PointListElements">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>Selectable element to represent a horizontal position using latitude longitude, (x, y) coordinate pair, or (x, y) coordinate relative to the vehicle's current position.</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:choice>
|
||||
<xsd:element name="LatitudeLongitude" type="latitudeLongitudeElementType" maxOccurs="unbounded"/>
|
||||
<xsd:element name="XYPosition" type="xyElementType" maxOccurs="unbounded"/>
|
||||
</xsd:choice>
|
||||
</xsd:group>
|
||||
<xsd:group name="HorizontalPositionElements">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>Selectable element to represent a horizontal position using latitude longitude, (x, y) coordinate pair, or (x, y) coordinate relative to the vehicle's current position.</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:choice>
|
||||
<xsd:element name="LatitudeLongitude" type="latitudeLongitudeElementType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>Absolute geographic position using latitude and longitude (+ value for North or East, - value for South or West)</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
<xsd:element name="XYPosition" type="xyElementType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>Absolute geographic position using a cartesian coordinate system (X north, Y east) and a specified or default geographic origin.</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
<xsd:element name="RelativeXYPosition" type="xyElementType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>Position specified relative to the vehicle's current position (X meters north, Y meters east).</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:group>
|
||||
|
||||
</xsd:schema>
|
||||
12
temp/exificient/data/schema/identicalQName.xml
Normal file
12
temp/exificient/data/schema/identicalQName.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<qnames xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="identicalQName.xsd">
|
||||
<elInteger>
|
||||
<content>456</content>
|
||||
</elInteger>
|
||||
<elFloat>
|
||||
<content>3.44887</content>
|
||||
</elFloat>
|
||||
<elDate>
|
||||
<content>2007-02-12</content>
|
||||
</elDate>
|
||||
</qnames>
|
||||
40
temp/exificient/data/schema/identicalQName.xsd
Normal file
40
temp/exificient/data/schema/identicalQName.xsd
Normal file
@@ -0,0 +1,40 @@
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<xs:element name="qnames">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="elInteger"/>
|
||||
<xs:element name="elFloat">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="content" type="xs:float" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element ref="elDate"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<!-- define a global element with same qname but different content type -->
|
||||
<xs:element name="elFloat" type="xs:float"/>
|
||||
|
||||
|
||||
<xs:element name="elInteger">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="content" type="xs:integer" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="elDate">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="content" type="xs:date"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
</xs:schema>
|
||||
14
temp/exificient/data/schema/identicalQName2.xml
Normal file
14
temp/exificient/data/schema/identicalQName2.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<qnames xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="identicalQName2.xsd">
|
||||
<content/>
|
||||
|
||||
<content xsi:type="ContentInteger">
|
||||
<val>321</val>
|
||||
</content>
|
||||
|
||||
<content xsi:type="ContentDate">
|
||||
<val>2008-12-01</val>
|
||||
</content>
|
||||
|
||||
</qnames>
|
||||
36
temp/exificient/data/schema/identicalQName2.xsd
Normal file
36
temp/exificient/data/schema/identicalQName2.xsd
Normal file
@@ -0,0 +1,36 @@
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<xs:element name="qnames">
|
||||
<xs:complexType>
|
||||
<xs:sequence maxOccurs="unbounded">
|
||||
<xs:element ref="content"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="content" type="Content" />
|
||||
<xs:complexType name="Content" />
|
||||
|
||||
<xs:complexType name="ContentInteger">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="Content">
|
||||
<xs:sequence>
|
||||
<xs:element name='val' type='xs:int' />
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="ContentDate">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="Content">
|
||||
<xs:sequence>
|
||||
<xs:element name='val' type='xs:date' />
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
|
||||
</xs:schema>
|
||||
20
temp/exificient/data/schema/identicalQName3.xml
Normal file
20
temp/exificient/data/schema/identicalQName3.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<qnames xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="identicalQName3.xsd">
|
||||
<valueDate>
|
||||
<value>
|
||||
<val>2007-12-12</val>
|
||||
</value>
|
||||
</valueDate>
|
||||
<valueFloat>
|
||||
<value>
|
||||
<val>123.12</val>
|
||||
</value>
|
||||
</valueFloat>
|
||||
<valueBoolean>
|
||||
<value>
|
||||
<value2>
|
||||
<val>true</val>
|
||||
</value2>
|
||||
</value>
|
||||
</valueBoolean>
|
||||
</qnames>
|
||||
56
temp/exificient/data/schema/identicalQName3.xsd
Normal file
56
temp/exificient/data/schema/identicalQName3.xsd
Normal file
@@ -0,0 +1,56 @@
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<xs:element name="qnames">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="valueDate">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="value">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="val" type="xs:date" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="valueFloat" >
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="value">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="val" type="xs:float" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="valueBoolean" type="ValueBoolean" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:complexType name="ValueBoolean">
|
||||
<xs:sequence>
|
||||
<xs:element name="value">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="value2">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="val" type="xs:boolean" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
</xs:schema>
|
||||
21
temp/exificient/data/schema/list.xml
Normal file
21
temp/exificient/data/schema/list.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="list.xsd">
|
||||
<intValues>100 34 56 -23 1567</intValues>
|
||||
<posIntValues>5555 13213 22</posIntValues>
|
||||
<stringValues>abc defg hijk</stringValues>
|
||||
<!-- IDREFS -->
|
||||
<books ids="-12 33 555">
|
||||
<book identifier="ID_1" keywords="Hu ha ho">
|
||||
<isbn>1213</isbn>
|
||||
<title>Huuhh</title>
|
||||
<author-ref ref="ID_1" />
|
||||
<character-refs>ID_1 ID_2</character-refs>
|
||||
</book>
|
||||
<book identifier="ID_2" keywords="hha hoo hu">
|
||||
<isbn>1213</isbn>
|
||||
<title>Huuhh</title>
|
||||
<author-ref ref="ID_1" />
|
||||
<character-refs>ID_2 ID_1 ID_2</character-refs>
|
||||
</book>
|
||||
</books>
|
||||
</list>
|
||||
60
temp/exificient/data/schema/list.xsd
Normal file
60
temp/exificient/data/schema/list.xsd
Normal file
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
|
||||
<xs:element name="list" >
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<!-- 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="posIntValues" minOccurs="0" maxOccurs="unbounded" >
|
||||
<xs:simpleType>
|
||||
<xs:list itemType="xs:nonNegativeInteger"/>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="stringValues" minOccurs="0" maxOccurs="unbounded" >
|
||||
<xs:simpleType>
|
||||
<xs:list itemType="xs:string"/>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<!-- IDREFS -->
|
||||
<xs:element name="books">
|
||||
<xs:complexType>
|
||||
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="book">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="isbn" type="xs:int"/>
|
||||
<xs:element name="title" type="xs:string"/>
|
||||
<xs:element name="author-ref">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="ref" type="xs:IDREF"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="character-refs" type="xs:IDREFS"/>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="identifier" type="xs:ID"/>
|
||||
<xs:attribute name="keywords" type="Keywords"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="ids" type="IDs"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:simpleType name="Keywords">
|
||||
<xs:list itemType="xs:string"/>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="IDs">
|
||||
<xs:list itemType="xs:int"/>
|
||||
</xs:simpleType>
|
||||
|
||||
</xs:schema>
|
||||
7
temp/exificient/data/schema/mixed.xml
Normal file
7
temp/exificient/data/schema/mixed.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<letter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="mixed.xsd">
|
||||
Dear Mr.<name>John Smith</name>.
|
||||
Your order <orderid>1032</orderid>
|
||||
will be shipped on <shipdate>2001-07-13</shipdate>.
|
||||
</letter>
|
||||
15
temp/exificient/data/schema/mixed.xsd
Normal file
15
temp/exificient/data/schema/mixed.xsd
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<xs:element name="letter" type="lettertype"/>
|
||||
|
||||
<xs:complexType name="lettertype" mixed="true">
|
||||
<xs:sequence>
|
||||
<xs:element name="name" type="xs:string"/>
|
||||
<xs:element name="orderid" type="xs:positiveInteger"/>
|
||||
<xs:element name="shipdate" type="xs:date"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
</xs:schema>
|
||||
12
temp/exificient/data/schema/nillable.xsd
Normal file
12
temp/exificient/data/schema/nillable.xsd
Normal 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" nillable="true" >
|
||||
<xs:complexType>
|
||||
<xs:choice>
|
||||
<xs:element name="el1" type="xs:string"/>
|
||||
<xs:element name="el2" type="xs:integer"/>
|
||||
<xs:element name="el3" type="xs:date"/>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
5
temp/exificient/data/schema/nillable1.xml
Normal file
5
temp/exificient/data/schema/nillable1.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="nillable.xsd" xsi:nil="false">
|
||||
<el2>1234</el2>
|
||||
</root>
|
||||
3
temp/exificient/data/schema/nillable2.xml
Normal file
3
temp/exificient/data/schema/nillable2.xml
Normal file
@@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="nillable.xsd" xsi:nil="true"></root>
|
||||
9
temp/exificient/data/schema/occurrences1.xml
Normal file
9
temp/exificient/data/schema/occurrences1.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<foo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="occurrences1.xsd">
|
||||
<a>a</a>
|
||||
<b>b</b>
|
||||
<c>c</c>
|
||||
<b>b</b>
|
||||
<c>c</c>
|
||||
</foo>
|
||||
12
temp/exificient/data/schema/occurrences1.xsd
Normal file
12
temp/exificient/data/schema/occurrences1.xsd
Normal 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="foo">
|
||||
<xs:complexType>
|
||||
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="a" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="b" type="xs:string"/>
|
||||
<xs:element name="c" type="xs:string" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
10
temp/exificient/data/schema/occurrences2.xml
Normal file
10
temp/exificient/data/schema/occurrences2.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<foo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="occurrences2.xsd">
|
||||
<a></a>
|
||||
<a></a>
|
||||
<a></a>
|
||||
<a></a>
|
||||
<b></b>
|
||||
<c></c>
|
||||
</foo>
|
||||
12
temp/exificient/data/schema/occurrences2.xsd
Normal file
12
temp/exificient/data/schema/occurrences2.xsd
Normal 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="foo">
|
||||
<xs:complexType>
|
||||
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="a" minOccurs="0" type="xs:string" />
|
||||
<xs:element name="b" minOccurs="0" type="xs:string" />
|
||||
<xs:element name="c" minOccurs="0" type="xs:string" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
10
temp/exificient/data/schema/occurrences3.xsd
Normal file
10
temp/exificient/data/schema/occurrences3.xsd
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
<xs:element name="foo">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="rec" type="xs:string" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
11
temp/exificient/data/schema/occurrences4.xsd
Normal file
11
temp/exificient/data/schema/occurrences4.xsd
Normal 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="foo">
|
||||
<xs:complexType>
|
||||
<xs:sequence maxOccurs="unbounded" >
|
||||
<xs:element name="el1" type="xs:string" />
|
||||
<xs:element name="el2" type="xs:string" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
67
temp/exificient/data/schema/pattern.xml
Normal file
67
temp/exificient/data/schema/pattern.xml
Normal file
@@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="pattern.xsd" >
|
||||
<!-- http://www.w3schools.com/schema/schema_facets.asp -->
|
||||
|
||||
<pattern1>a</pattern1>
|
||||
<pattern1>z</pattern1>
|
||||
<!-- invalid -->
|
||||
<!--<pattern1>X</pattern1>-->
|
||||
|
||||
<pattern2>ABC</pattern2>
|
||||
<pattern2>XYZ</pattern2>
|
||||
<!-- invalid -->
|
||||
<!--<pattern2>F</pattern2>-->
|
||||
|
||||
<pattern3></pattern3>
|
||||
<pattern3>zzz</pattern3>
|
||||
<!-- invalid -->
|
||||
<!--<pattern3>aaa</pattern3>-->
|
||||
|
||||
<pattern4>_P</pattern4>
|
||||
<pattern4>:l</pattern4>
|
||||
<pattern4>PP</pattern4>
|
||||
|
||||
<pattern5>1</pattern5>
|
||||
<pattern5>6</pattern5>
|
||||
|
||||
<!-- "([$]?([^\. ']+|'[^']+'))" -->
|
||||
<pattern6>A</pattern6>
|
||||
<pattern6>cdas</pattern6>
|
||||
<pattern6>a</pattern6>
|
||||
|
||||
<!-- "([$]?([^\. ']+|'[^']+'))?\.[$]?[A-Z]+[$]?[0-9]+" -->
|
||||
<pattern7>A.B0</pattern7>
|
||||
|
||||
<!-- [A-Z-[C-X]] -->
|
||||
<!-- A, B, Y, Z -->
|
||||
<patternSub1>A</patternSub1>
|
||||
<patternSub1>B</patternSub1>
|
||||
<!-- invalid -->
|
||||
<!--<patternSub1>C</patternSub1>-->
|
||||
<patternSub1>Y</patternSub1>
|
||||
<patternSub1>Z</patternSub1>
|
||||
|
||||
<!-- [A-Z-[C-X-[M-N]]]* -->
|
||||
<!-- A,B,M,N,Y,Z -->
|
||||
<patternSub2>A</patternSub2>
|
||||
<patternSub2>B</patternSub2>
|
||||
<patternSub2>Z</patternSub2>
|
||||
<patternSub2>Y</patternSub2>
|
||||
<patternSub2>M</patternSub2>
|
||||
<patternSub2>N</patternSub2>
|
||||
<!-- invalid -->
|
||||
<!--<patternSub2>C</patternSub2>-->
|
||||
<!--<patternSub2>L</patternSub2>-->
|
||||
|
||||
<patternSSN>078-05-1120</patternSSN>
|
||||
<patternSSN>078 05 1120</patternSSN>
|
||||
<patternSSN>078051120</patternSSN>
|
||||
|
||||
|
||||
<!-- invalid -->
|
||||
<!--<patternSSN>987-65</patternSSN>-->
|
||||
<!--<patternSSN>078 x 05 1120</patternSSN>-->
|
||||
|
||||
|
||||
</root>
|
||||
87
temp/exificient/data/schema/pattern.xsd
Normal file
87
temp/exificient/data/schema/pattern.xsd
Normal file
@@ -0,0 +1,87 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<xs:element name="root">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="pattern1" type="Pattern1" maxOccurs="unbounded"/>
|
||||
<xs:element name="pattern2" type="Pattern2" maxOccurs="unbounded"/>
|
||||
<xs:element name="pattern3" type="Pattern3" maxOccurs="unbounded"/>
|
||||
<xs:element name="pattern4" type="Pattern4" maxOccurs="unbounded"/>
|
||||
<xs:element name="pattern5" type="Pattern5" maxOccurs="unbounded"/>
|
||||
<xs:element name="pattern6" type="Pattern6" maxOccurs="unbounded"/>
|
||||
<xs:element name="pattern7" type="Pattern7" maxOccurs="unbounded"/>
|
||||
<xs:element name="patternSub1" type="PatternSub1" maxOccurs="unbounded"/>
|
||||
<xs:element name="patternSub2" type="PatternSub2" maxOccurs="unbounded"/>
|
||||
<xs:element name="patternSSN" type="PatternSSN" maxOccurs="unbounded"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:simpleType name="Pattern1">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="[a-z]"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="Pattern2">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="[A-Z][A-Z][A-Z]"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
|
||||
<xs:simpleType name="Pattern3">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="z*"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="Pattern4">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="\i\c"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="Pattern5">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="\d"/><!-- \p{Nd} -->
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="Pattern6">
|
||||
<xs:restriction base="xs:string">
|
||||
<!-- Open Office Simple -->
|
||||
<xs:pattern value="([$]?([^\. ']+|'[^']+'))"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="Pattern7">
|
||||
<xs:restriction base="xs:string">
|
||||
<!-- Open Office -->
|
||||
<xs:pattern value="([$]?([^\. ']+|'[^']+'))?\.[$]?[A-Z]+[$]?[0-9]+"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="PatternSub1">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="[A-Z-[C-X]]"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="PatternSub2">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="[A-Z-[C-X-[M-N]]]*"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<!-- Social Security Number -->
|
||||
<xs:simpleType name="PatternSSN">
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:pattern value="[0-9]{3}(-| )?[0-9]{2}(-| )?[0-9]{4}"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
|
||||
</xs:schema>
|
||||
14
temp/exificient/data/schema/sequence.xsd
Normal file
14
temp/exificient/data/schema/sequence.xsd
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<xs:element name="root">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="el1" type="xs:NMTOKEN"/>
|
||||
<xs:element name="el2" type="xs:int" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xs:element name="el3" type="xs:date"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
</xs:schema>
|
||||
8
temp/exificient/data/schema/sequence1.xml
Normal file
8
temp/exificient/data/schema/sequence1.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="sequence.xsd">
|
||||
<el1>s1</el1>
|
||||
<el2>-1</el2>
|
||||
<el2>984932</el2>
|
||||
<el3>2007-12-03</el3>
|
||||
</root>
|
||||
6
temp/exificient/data/schema/sequence2.xml
Normal file
6
temp/exificient/data/schema/sequence2.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="sequence.xsd">
|
||||
<el1>s1</el1>
|
||||
<el3>2007-12-03</el3>
|
||||
</root>
|
||||
17
temp/exificient/data/schema/substitutionGroup1.xsd
Normal file
17
temp/exificient/data/schema/substitutionGroup1.xsd
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
|
||||
<xs:element name="name" type="xs:string"/>
|
||||
<xs:element name="navn" substitutionGroup="name"/>
|
||||
<xs:element name="nome" substitutionGroup="navn"/>
|
||||
|
||||
<xs:complexType name="custinfo">
|
||||
<xs:sequence>
|
||||
<xs:element ref="name"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:element name="customer" type="custinfo"/>
|
||||
<xs:element name="kunde" substitutionGroup="customer"/>
|
||||
|
||||
</xs:schema>
|
||||
5
temp/exificient/data/schema/substitutionGroup1a.xml
Normal file
5
temp/exificient/data/schema/substitutionGroup1a.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<kunde xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="substitutionGroup1.xsd">
|
||||
<name>John Smith</name>
|
||||
</kunde>
|
||||
5
temp/exificient/data/schema/substitutionGroup1b.xml
Normal file
5
temp/exificient/data/schema/substitutionGroup1b.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<customer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="substitutionGroup1.xsd">
|
||||
<navn>John Smith</navn>
|
||||
</customer>
|
||||
8
temp/exificient/data/schema/union1.xml
Normal file
8
temp/exificient/data/schema/union1.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<union xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="union1.xsd">
|
||||
<jeans_size xsi:type="sizebyno">41</jeans_size>
|
||||
<jeans_size>large</jeans_size>
|
||||
<jeans_size>28</jeans_size>
|
||||
<jeans_size xsi:type="sizebystring">small</jeans_size>
|
||||
</union>
|
||||
32
temp/exificient/data/schema/union1.xsd
Normal file
32
temp/exificient/data/schema/union1.xsd
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
|
||||
<xs:element name="union">
|
||||
<xs:complexType>
|
||||
<xs:sequence maxOccurs="unbounded">
|
||||
<xs:element ref="jeans_size"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="jeans_size">
|
||||
<xs:simpleType>
|
||||
<xs:union memberTypes="sizebyno sizebystring" />
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
|
||||
<xs:simpleType name="sizebyno">
|
||||
<xs:restriction base="xs:positiveInteger">
|
||||
<xs:maxInclusive value="42"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:simpleType name="sizebystring">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="small"/>
|
||||
<xs:enumeration value="medium"/>
|
||||
<xs:enumeration value="large"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
</xs:schema>
|
||||
9
temp/exificient/data/schema/unsignedInteger.xml
Normal file
9
temp/exificient/data/schema/unsignedInteger.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<unsignedIntegers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="unsignedInteger.xsd">
|
||||
<unsignedInteger>0</unsignedInteger>
|
||||
<minInclusive>10</minInclusive>
|
||||
<minExclusive>1</minExclusive>
|
||||
<!-- deviation -->
|
||||
<!--<minExclusive>-51</minExclusive>-->
|
||||
<minExclusiveNeg>-25</minExclusiveNeg>
|
||||
</unsignedIntegers>
|
||||
35
temp/exificient/data/schema/unsignedInteger.xsd
Normal file
35
temp/exificient/data/schema/unsignedInteger.xsd
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
|
||||
<xs:element name="unsignedIntegers">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<!-- Built-in Type: UnsignedInteger -->
|
||||
<xs:element name="unsignedInteger" type="xs:nonNegativeInteger" minOccurs="0"
|
||||
maxOccurs="unbounded"/>
|
||||
<xs:element name="minInclusive" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:integer">
|
||||
<xs:minInclusive value="5"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="minExclusive" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:integer">
|
||||
<xs:minExclusive value="0"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="minExclusiveNeg" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:integer">
|
||||
<xs:minExclusive value="-50"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
</xs:schema>
|
||||
7
temp/exificient/data/schema/vehicle.xml
Normal file
7
temp/exificient/data/schema/vehicle.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<vehicles xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="vehicle.xsd">
|
||||
<vehicle xsi:type="Vehicle">
|
||||
<weight xsi:type="xs:unsignedByte">100</weight>
|
||||
</vehicle>
|
||||
</vehicles>
|
||||
28
temp/exificient/data/schema/vehicle.xsd
Normal file
28
temp/exificient/data/schema/vehicle.xsd
Normal 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="vehicles">
|
||||
<xs:complexType>
|
||||
<xs:sequence maxOccurs="unbounded">
|
||||
<xs:element name="vehicle" type="Vehicle" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:complexType name="Vehicle">
|
||||
<xs:sequence>
|
||||
<xs:element name="weight" type="xs:nonNegativeInteger" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="Car">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="Vehicle">
|
||||
<xs:sequence>
|
||||
<xs:element name="availableSeats" type="xs:nonNegativeInteger"/>
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
</xs:schema>
|
||||
10
temp/exificient/data/schema/wildcard.xml
Normal file
10
temp/exificient/data/schema/wildcard.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="wildcard.xsd" >
|
||||
<wildcards >
|
||||
<elInt>312</elInt>
|
||||
</wildcards>
|
||||
<wildcards>
|
||||
<elString>stringilone...</elString>
|
||||
</wildcards>
|
||||
</root>
|
||||
24
temp/exificient/data/schema/wildcard.xsd
Normal file
24
temp/exificient/data/schema/wildcard.xsd
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<xs:element name="root">
|
||||
<xs:complexType>
|
||||
<xs:sequence maxOccurs="unbounded">
|
||||
<xs:element name="wildcards" type="Wildcards"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:complexType name="Wildcards">
|
||||
<xs:sequence >
|
||||
<!--<xs:any/>-->
|
||||
<xs:any processContents="skip"/>
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute/>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:element name="elString" type="xs:string" />
|
||||
<xs:element name="elInt" type="xs:int" />
|
||||
|
||||
</xs:schema>
|
||||
22
temp/exificient/data/schema/wildcard2.xml
Normal file
22
temp/exificient/data/schema/wildcard2.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<foo:root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:foo="http://www.siemens.com/foo"
|
||||
xsi:schemaLocation="http://www.siemens.com/foo wildcard2.xsd" >
|
||||
<foo:wildcardsNS>
|
||||
<foo:elInt>123</foo:elInt>
|
||||
</foo:wildcardsNS>
|
||||
<foo:wildcards >
|
||||
<el xsi:type="xs:string">312</el>
|
||||
</foo:wildcards>
|
||||
<foo:wildcardsNS>
|
||||
<!-- invalid, approprioate namespace expected -->
|
||||
<!--<el xsi:type="xs:string">312</el>-->
|
||||
|
||||
<!-- valid, right namespace -->
|
||||
<foo:elString>llkk</foo:elString>
|
||||
</foo:wildcardsNS>
|
||||
<foo:wildcards >
|
||||
<foo:elInt>8</foo:elInt>
|
||||
</foo:wildcards>
|
||||
</foo:root>
|
||||
35
temp/exificient/data/schema/wildcard2.xsd
Normal file
35
temp/exificient/data/schema/wildcard2.xsd
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:foo="http://www.siemens.com/foo" targetNamespace="http://www.siemens.com/foo"
|
||||
>
|
||||
|
||||
<xs:element name="root">
|
||||
<xs:complexType>
|
||||
<xs:sequence maxOccurs="unbounded">
|
||||
<xs:element name="wildcardsNS" type="foo:WildcardsNS"/>
|
||||
<xs:element name="wildcards" type="foo:Wildcards"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:complexType name="Wildcards">
|
||||
<xs:sequence >
|
||||
<xs:any />
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute/>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="WildcardsNS">
|
||||
<xs:sequence >
|
||||
<xs:any namespace="http://www.siemens.com/foo"/>
|
||||
</xs:sequence>
|
||||
<xs:anyAttribute/>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:element name="elString" type="xs:string" />
|
||||
<xs:element name="elInt" type="xs:int" />
|
||||
|
||||
<xs:attribute name="atFoo1" type="xs:string" />
|
||||
|
||||
</xs:schema>
|
||||
14
temp/exificient/data/schema/wildcard3.xml
Normal file
14
temp/exificient/data/schema/wildcard3.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:foo="http://www.siemens.com/foo"
|
||||
xsi:schemaLocation="http://www.siemens.com/foo wildcard3.xsd" >
|
||||
|
||||
<elementAttributeWildcard at1="dd" at2="123" at3="false"/>
|
||||
<elementAttributeNSWildcard foo:atFoo1="dd" />
|
||||
<!-- invalid NS -->
|
||||
<!--<elementAttributeNSWildcard at1="aaa"/>-->
|
||||
|
||||
<elementAttributeWildcard at1="xx" at2="999" />
|
||||
<elementAttributeNSWildcard />
|
||||
</root>
|
||||
31
temp/exificient/data/schema/wildcard3.xsd
Normal file
31
temp/exificient/data/schema/wildcard3.xsd
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
>
|
||||
<xs:import schemaLocation="wildcard2.xsd" namespace="http://www.siemens.com/foo"></xs:import>
|
||||
|
||||
<xs:element name="root">
|
||||
<xs:complexType>
|
||||
<xs:sequence maxOccurs="unbounded">
|
||||
<xs:element name="elementAttributeWildcard" type="Wildcards"/>
|
||||
<xs:element name="elementAttributeNSWildcard" type="WildcardsNS"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:complexType name="Wildcards">
|
||||
<xs:attribute ref="at1" use="required" />
|
||||
<xs:attribute ref="at2" use="required" />
|
||||
<xs:anyAttribute namespace="##any"/>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="WildcardsNS">
|
||||
<xs:anyAttribute namespace="http://www.siemens.com/foo"/>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:attribute name="at1" type="xs:string" />
|
||||
<xs:attribute name="at2" type="xs:int" />
|
||||
<xs:attribute name="at3" type="xs:boolean" />
|
||||
|
||||
|
||||
</xs:schema>
|
||||
108
temp/exificient/data/schema/xml.xsd
Normal file
108
temp/exificient/data/schema/xml.xsd
Normal file
@@ -0,0 +1,108 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en">
|
||||
|
||||
|
||||
|
||||
<xs:annotation>
|
||||
|
||||
<xs:documentation>This schema defines attributes and an
|
||||
|
||||
attribute group that enable schemas such as the ETSI TS 102 822-3-1 V1.3.1 (2005-06)
|
||||
|
||||
metadata schema and schemas derived from it
|
||||
|
||||
to allow xml:base, xml:lang or xml:space attributes
|
||||
|
||||
on elements they define.</xs:documentation>
|
||||
|
||||
</xs:annotation>
|
||||
|
||||
<xs:annotation>
|
||||
|
||||
<xs:documentation>See http://www.w3.org/XML/1998/namespace.html and
|
||||
|
||||
http://www.w3.org/TR/REC-xml for information about this namespace.
|
||||
|
||||
|
||||
|
||||
This schema document describes the XML namespace, in a form
|
||||
|
||||
suitable for import by other schema documents.
|
||||
|
||||
|
||||
|
||||
Note that local names in this namespace are intended to be defined
|
||||
|
||||
only by the World Wide Web Consortium or its subgroups. The
|
||||
|
||||
following names are currently defined in this namespace and should
|
||||
|
||||
not be used with conflicting semantics by any Working Group,
|
||||
|
||||
specification, or document instance:
|
||||
|
||||
|
||||
|
||||
base (as an attribute name): denotes an attribute whose value
|
||||
|
||||
provides a URI to be used as the base for interpreting any
|
||||
|
||||
relative URIs in the scope of the element on which it
|
||||
|
||||
appears; its value is inherited. This name is reserved
|
||||
|
||||
by virtue of its definition in the XML Base specification.
|
||||
|
||||
|
||||
|
||||
lang (as an attribute name): denotes an attribute whose value
|
||||
|
||||
is a language code for the natural language of the content of
|
||||
|
||||
any element; its value is inherited. This name is reserved
|
||||
|
||||
by virtue of its definition in the XML specification.
|
||||
|
||||
|
||||
|
||||
space (as an attribute name): denotes an attribute whose
|
||||
|
||||
value is a keyword indicating what whitespace processing
|
||||
|
||||
discipline is intended for the content of the element; its
|
||||
|
||||
value is inherited. This name is reserved by virtue of its
|
||||
|
||||
definition in the XML specification.</xs:documentation>
|
||||
|
||||
</xs:annotation>
|
||||
|
||||
|
||||
|
||||
<xs:annotation>
|
||||
|
||||
<xs:documentation>This schema defines attributes and an attribute group
|
||||
|
||||
suitable for use by
|
||||
|
||||
schemas wishing to allow xml:base, xml:lang or xml:space attributes
|
||||
|
||||
on elements they define.
|
||||
|
||||
|
||||
|
||||
To enable this, such a schema must import this schema
|
||||
|
||||
for the XML namespace, e.g. as follows:
|
||||
|
||||
<schema . . .>
|
||||
|
||||
. . .
|
||||
|
||||
<import namespace="http://www.w3.org/XML/1998/namespace"
|
||||
|
||||
schemaLocation="http://www.w3.org/2001/03/xml.xsd"/>
|
||||
|
||||
|
||||
|
||||
31
temp/exificient/data/schema/xsi-type.xml
Normal file
31
temp/exificient/data/schema/xsi-type.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ipo:purchaseOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.example.com/IPO xsi-type.xsd"
|
||||
xmlns:ipo="http://www.example.com/IPO"
|
||||
orderDate="1999-12-01">
|
||||
|
||||
<shipTo exportCode="1" xsi:type="ipo:UKAddress">
|
||||
<name>Helen Zoe</name>
|
||||
<street>47 Eden Street</street>
|
||||
<city>Cambridge</city>
|
||||
<postcode>CB1 1JR</postcode>
|
||||
</shipTo>
|
||||
|
||||
<billTo xsi:type="ipo:USAddress">
|
||||
<name>Robert Smith</name>
|
||||
<street>8 Oak Avenue</street>
|
||||
<city>Old Town</city>
|
||||
<state>PA</state>
|
||||
<zip>95819</zip>
|
||||
</billTo>
|
||||
|
||||
<items>
|
||||
<item partNum="833-AA">
|
||||
<productName>Lapis necklace</productName>
|
||||
<quantity>1</quantity>
|
||||
<USPrice>99.95</USPrice>
|
||||
<ipo:comment>Want this for the holidays!</ipo:comment>
|
||||
<shipDate>1999-12-05</shipDate>
|
||||
</item>
|
||||
</items>
|
||||
</ipo:purchaseOrder>
|
||||
111
temp/exificient/data/schema/xsi-type.xsd
Normal file
111
temp/exificient/data/schema/xsi-type.xsd
Normal file
@@ -0,0 +1,111 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<schema targetNamespace="http://www.example.com/IPO"
|
||||
xmlns="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:ipo="http://www.example.com/IPO">
|
||||
|
||||
<annotation>
|
||||
<documentation xml:lang="en">
|
||||
International Purchase order schema for Example.com
|
||||
Copyright 2000 Example.com. All rights reserved.
|
||||
</documentation>
|
||||
</annotation>
|
||||
|
||||
<!-- include address constructs -->
|
||||
<complexType name="Address">
|
||||
<sequence>
|
||||
<element name="name" type="string"/>
|
||||
<element name="street" type="string"/>
|
||||
<element name="city" type="string"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
|
||||
<complexType name="USAddress">
|
||||
<complexContent>
|
||||
<extension base="ipo:Address">
|
||||
<sequence>
|
||||
<element name="state" type="ipo:USState"/>
|
||||
<element name="zip" type="positiveInteger"/>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
|
||||
<simpleType name="Postcode">
|
||||
<restriction base="string">
|
||||
<length value="7" fixed="true"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
|
||||
<simpleType name="UKPostcode">
|
||||
<restriction base="ipo:Postcode">
|
||||
<pattern value="[A-Z]{2}\d\s\d[A-Z]{2}"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
|
||||
<complexType name="UKAddress">
|
||||
<complexContent>
|
||||
<extension base="ipo:Address">
|
||||
<sequence>
|
||||
<element name="postcode" type="ipo:UKPostcode"/>
|
||||
</sequence>
|
||||
<attribute name="exportCode" type="positiveInteger" fixed="1"/>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
|
||||
<!-- other Address derivations for more countries -->
|
||||
|
||||
<simpleType name="USState">
|
||||
<restriction base="string">
|
||||
<enumeration value="AK"/>
|
||||
<enumeration value="AL"/>
|
||||
<enumeration value="AR"/>
|
||||
<!-- and so on ... -->
|
||||
<enumeration value="PA"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
|
||||
<element name="purchaseOrder" type="ipo:PurchaseOrderType"/>
|
||||
|
||||
<element name="comment" type="string"/>
|
||||
|
||||
<complexType name="PurchaseOrderType">
|
||||
<sequence>
|
||||
<element name="shipTo" type="ipo:Address"/>
|
||||
<element name="billTo" type="ipo:Address"/>
|
||||
<element ref="ipo:comment" minOccurs="0"/>
|
||||
<element name="items" type="ipo:Items"/>
|
||||
</sequence>
|
||||
<attribute name="orderDate" type="date"/>
|
||||
</complexType>
|
||||
|
||||
<complexType name="Items">
|
||||
<sequence>
|
||||
<element name="item" minOccurs="0" maxOccurs="unbounded">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="productName" type="string"/>
|
||||
<element name="quantity">
|
||||
<simpleType>
|
||||
<restriction base="positiveInteger">
|
||||
<maxExclusive value="100"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
</element>
|
||||
<element name="USPrice" type="decimal"/>
|
||||
<element ref="ipo:comment" minOccurs="0"/>
|
||||
<element name="shipDate" type="date" minOccurs="0"/>
|
||||
</sequence>
|
||||
<attribute name="partNum" type="ipo:SKU" use="required"/>
|
||||
</complexType>
|
||||
</element>
|
||||
</sequence>
|
||||
</complexType>
|
||||
|
||||
<simpleType name="SKU">
|
||||
<restriction base="string">
|
||||
<pattern value="\d{3}-[A-Z]{2}"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
|
||||
</schema>
|
||||
7
temp/exificient/data/schema/xsi-type2.xml
Normal file
7
temp/exificient/data/schema/xsi-type2.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="xsi-type2.xsd">
|
||||
<elString>text</elString>
|
||||
<elUnsignedByte>2</elUnsignedByte>
|
||||
<elID>ID1</elID>
|
||||
</root>
|
||||
14
temp/exificient/data/schema/xsi-type2.xsd
Normal file
14
temp/exificient/data/schema/xsi-type2.xsd
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<xs:element name="root">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="elString" type="xs:string"/>
|
||||
<xs:element name="elUnsignedByte" type="xs:unsignedByte"/>
|
||||
<xs:element name="elID" type="xs:ID"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
</xs:schema>
|
||||
5
temp/exificient/data/schema/xsi-type3.xml
Normal file
5
temp/exificient/data/schema/xsi-type3.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ipo:completelyUnknownElement xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ipo="http://www.example.com/IPO"
|
||||
xsi:noNamespaceSchemaLocation="xsi-type.xsd" xsi:type="xs:int">123456</ipo:completelyUnknownElement>
|
||||
<!-- unknown element can be used with xsi:type cast -->
|
||||
24
temp/exificient/data/schema/xsi-type4.xml
Normal file
24
temp/exificient/data/schema/xsi-type4.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<Message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.foo.com xsi-type4.xsd" xmlns="http://www.foo.com">
|
||||
|
||||
<v xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="tTriple">
|
||||
<t>12345</t>
|
||||
<phsA>123.456</phsA>
|
||||
<phsB>234.567</phsB>
|
||||
<phsC>345.678</phsC>
|
||||
</v>
|
||||
|
||||
<v xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="tBoolean">
|
||||
<val>false</val>
|
||||
</v>
|
||||
|
||||
|
||||
<v xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="tInteger">
|
||||
<val>4321</val>
|
||||
</v>
|
||||
|
||||
<v xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="tDouble">
|
||||
<val>12E12</val>
|
||||
</v>
|
||||
</Message>
|
||||
65
temp/exificient/data/schema/xsi-type4.xsd
Normal file
65
temp/exificient/data/schema/xsi-type4.xsd
Normal file
@@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.foo.com"
|
||||
targetNamespace="http://www.foo.com" elementFormDefault="qualified"
|
||||
attributeFormDefault="unqualified">
|
||||
|
||||
<!-- dape: inserted root element -->
|
||||
<xs:element name="Message" type="tMessage"/>
|
||||
|
||||
<!-- Root element for message -->
|
||||
<xs:complexType name="tMessage">
|
||||
<xs:sequence maxOccurs="unbounded">
|
||||
<xs:element name="v" type="tValue"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<!-- Data elements -->
|
||||
<xs:complexType name="tValue" abstract="true">
|
||||
<xs:sequence>
|
||||
<xs:element name="t" type="xs:long" minOccurs="0"/>
|
||||
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="tDouble">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="tValue">
|
||||
<xs:sequence>
|
||||
<xs:element name="val" type="xs:double"/>
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="tInteger">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="tValue">
|
||||
<xs:sequence>
|
||||
<xs:element name="val" type="xs:int"/>
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="tBoolean">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="tValue">
|
||||
<xs:sequence>
|
||||
<xs:element name="val" type="xs:boolean"/>
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="tTriple">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="tValue">
|
||||
<xs:sequence>
|
||||
<xs:element name="phsA" type="xs:double"/>
|
||||
<xs:element name="phsB" type="xs:double"/>
|
||||
<xs:element name="phsC" type="xs:double"/>
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
</xs:schema>
|
||||
5
temp/exificient/data/schema/xsi-type5.xml
Normal file
5
temp/exificient/data/schema/xsi-type5.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<contentFoo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
xsi:noNamespaceSchemaLocation="empty.xsd" xsi:type="xs:date">
|
||||
2007-12-12
|
||||
</contentFoo>
|
||||
Reference in New Issue
Block a user