diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/XInclude/docs/fallback2.xml | 10 | ||||
-rw-r--r-- | test/regexp/branch | 14 | ||||
-rw-r--r-- | test/schemas/attruse_0_0.xml | 8 | ||||
-rw-r--r-- | test/schemas/attruse_0_0.xsd | 32 | ||||
-rw-r--r-- | test/schemas/attruse_0_1.xml | 8 | ||||
-rw-r--r-- | test/schemas/attruse_0_2.xml | 8 | ||||
-rw-r--r-- | test/schemas/union_0_0.xml | 7 | ||||
-rw-r--r-- | test/schemas/union_0_0.xsd | 50 | ||||
-rw-r--r-- | test/xmlid/id_err1.xml | 1 | ||||
-rw-r--r-- | test/xmlid/id_err2.xml | 5 | ||||
-rw-r--r-- | test/xmlid/id_tst1.xml | 1 | ||||
-rw-r--r-- | test/xmlid/id_tst2.xml | 1 | ||||
-rw-r--r-- | test/xmlid/id_tst3.xml | 1 | ||||
-rw-r--r-- | test/xmlid/id_tst4.xml | 4 |
14 files changed, 150 insertions, 0 deletions
diff --git a/test/XInclude/docs/fallback2.xml b/test/XInclude/docs/fallback2.xml new file mode 100644 index 0000000..dac71f9 --- /dev/null +++ b/test/XInclude/docs/fallback2.xml @@ -0,0 +1,10 @@ +<a> + <xi:include href="b.xml" xmlns:xi="http://www.w3.org/2001/XInclude"> + <xi:fallback>There is no b.xml ... </xi:fallback> + </xi:include> + <xi:include href="c.xml" xmlns:xi="http://www.w3.org/2001/XInclude"> + <xi:fallback>There is no c.xml ... </xi:fallback> + </xi:include> + +</a> + diff --git a/test/regexp/branch b/test/regexp/branch new file mode 100644 index 0000000..6a728e6 --- /dev/null +++ b/test/regexp/branch @@ -0,0 +1,14 @@ +=>a|b(d|e(g|h|i)|f)|c +a +c +bd +bf +beg +beh +bei +b +be +bi +f +ab +ac diff --git a/test/schemas/attruse_0_0.xml b/test/schemas/attruse_0_0.xml new file mode 100644 index 0000000..241ab27 --- /dev/null +++ b/test/schemas/attruse_0_0.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<foo> + <barA attr="bar"/> + <barB attr="bar"/> + <barB /> + <barC/> +</foo> + diff --git a/test/schemas/attruse_0_0.xsd b/test/schemas/attruse_0_0.xsd new file mode 100644 index 0000000..bc9ccef --- /dev/null +++ b/test/schemas/attruse_0_0.xsd @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> + +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> + + <xs:element name="foo"> + <xs:complexType> + <xs:choice minOccurs="0" maxOccurs="unbounded"> + + <xs:element name="barA" > + <xs:complexType> + <xs:attribute name="attr" type="xs:string" use="required" /> + </xs:complexType> + </xs:element> + + <xs:element name="barB" > + <xs:complexType> + <xs:attribute name="attr" type="xs:string" use="optional" /> + </xs:complexType> + </xs:element> + + <xs:element name="barC" > + <xs:complexType> + <xs:attribute name="attr" type="xs:string" use="prohibited" /> + </xs:complexType> + </xs:element> + + </xs:choice> + </xs:complexType> + </xs:element> + +</xs:schema> + diff --git a/test/schemas/attruse_0_1.xml b/test/schemas/attruse_0_1.xml new file mode 100644 index 0000000..b857c6d --- /dev/null +++ b/test/schemas/attruse_0_1.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<foo> + <barA /> + <barB attr="bar"/> + <barB /> + <barC/> +</foo> + diff --git a/test/schemas/attruse_0_2.xml b/test/schemas/attruse_0_2.xml new file mode 100644 index 0000000..f55ccdc --- /dev/null +++ b/test/schemas/attruse_0_2.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<foo> + <barA attr="bar" /> + <barB attr="bar"/> + <barB /> + <barC attr="bar" /> +</foo> + diff --git a/test/schemas/union_0_0.xml b/test/schemas/union_0_0.xml new file mode 100644 index 0000000..79078f9 --- /dev/null +++ b/test/schemas/union_0_0.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<foo xmlns="http://foo" +xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > + <em>EMP0090</em> + <em>EMP0099</em> +</foo> + diff --git a/test/schemas/union_0_0.xsd b/test/schemas/union_0_0.xsd new file mode 100644 index 0000000..a6dfad0 --- /dev/null +++ b/test/schemas/union_0_0.xsd @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + targetNamespace="http://foo" + xmlns="http://foo" + xmlns:a="http://foo"> + + <xsd:element name="foo"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="em" type="emType" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + </xsd:element> + + <xsd:simpleType name="emp0001_3Type"> + <xsd:restriction base="xsd:ID"> + <xsd:enumeration value="EMP0040"/> + <xsd:enumeration value="EMP0003"/> + <xsd:enumeration value="EMP0004"/> + <xsd:enumeration value="EMP0005"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:simpleType name="emp0004_5Type"> + <xsd:restriction base="xsd:ID"> + <xsd:enumeration value="EMP0002"/> + <xsd:enumeration value="EMP0090"/> + <xsd:enumeration value="EMP0007"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:simpleType name="unboundedEmType"> + <xsd:union memberTypes="a:emp0001_3Type emp0004_5Type"> + <xsd:simpleType> + <xsd:restriction base="xsd:ID"> + <xsd:enumeration value="EMP0099"/> + </xsd:restriction> + </xsd:simpleType> + </xsd:union> + </xsd:simpleType> + + <xsd:simpleType name="emType"> + <xsd:restriction base="unboundedEmType"> + <xsd:pattern value="EMP[0-9]*"/> + </xsd:restriction> + </xsd:simpleType> + + + +</xsd:schema> diff --git a/test/xmlid/id_err1.xml b/test/xmlid/id_err1.xml new file mode 100644 index 0000000..d8c47cc --- /dev/null +++ b/test/xmlid/id_err1.xml @@ -0,0 +1 @@ +<foo xml:id="0bar"/> diff --git a/test/xmlid/id_err2.xml b/test/xmlid/id_err2.xml new file mode 100644 index 0000000..99010a7 --- /dev/null +++ b/test/xmlid/id_err2.xml @@ -0,0 +1,5 @@ +<!DOCTYPE foo [ +<!ELEMENT foo EMPTY> +<!ATTLIST foo xml:id CDATA #IMPLIED> +]> +<foo xml:id="bar"/> diff --git a/test/xmlid/id_tst1.xml b/test/xmlid/id_tst1.xml new file mode 100644 index 0000000..7c3249c --- /dev/null +++ b/test/xmlid/id_tst1.xml @@ -0,0 +1 @@ +<foo xml:id="bar"/> diff --git a/test/xmlid/id_tst2.xml b/test/xmlid/id_tst2.xml new file mode 100644 index 0000000..2bf5861 --- /dev/null +++ b/test/xmlid/id_tst2.xml @@ -0,0 +1 @@ +<n:foo xml:id="bar"/> diff --git a/test/xmlid/id_tst3.xml b/test/xmlid/id_tst3.xml new file mode 100644 index 0000000..7316a13 --- /dev/null +++ b/test/xmlid/id_tst3.xml @@ -0,0 +1 @@ +<f:o:o xml:id="bar"/> diff --git a/test/xmlid/id_tst4.xml b/test/xmlid/id_tst4.xml new file mode 100644 index 0000000..ea057a3 --- /dev/null +++ b/test/xmlid/id_tst4.xml @@ -0,0 +1,4 @@ +<doc> +<foo xml:id="bar"/> +<err xml:id="bar"/> +</doc> |