diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2024-03-06 10:24:46 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2024-03-06 10:24:46 +0100 |
commit | 372a0e99c2f61543d9e14d9933b59d9d1f4cb26e (patch) | |
tree | bbadf39aed0610c8f8f7b41fefff47773b8ac205 /xsd/tests/schema | |
parent | 23d41842168ac1a1580111b9c5c73500ceee3d57 (diff) | |
parent | 4538829ab86b5a1cd4e845e7eab165029c9d6d46 (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'xsd/tests/schema')
35 files changed, 0 insertions, 1298 deletions
diff --git a/xsd/tests/schema/anonymous/test.xsd b/xsd/tests/schema/anonymous/test.xsd deleted file mode 100644 index cba3300..0000000 --- a/xsd/tests/schema/anonymous/test.xsd +++ /dev/null @@ -1,143 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <!-- Test 'type' name escaping. --> - <xsd:element name="type"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="name" type="xsd:string"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - - - <!-- Anonymous type via global element. --> - <xsd:element name="global_element"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="name" type="xsd:string"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - - - <!-- Anonymous type via global attribute. --> - <xsd:attribute name="global_attribute"> - <xsd:simpleType> - <xsd:restriction base="xsd:string"/> - </xsd:simpleType> - </xsd:attribute> - - - - <!-- Anonymous type via local element. --> - <xsd:complexType name="local_element_type"> - <xsd:sequence> - <xsd:element name="local_element"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="name" type="xsd:string"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - </xsd:sequence> - </xsd:complexType> - - - - <!-- Anonymous type via local attribute. --> - <xsd:complexType name="local_attribute_type"> - <xsd:attribute name="local_attribute"> - <xsd:simpleType> - <xsd:restriction base="xsd:string"/> - </xsd:simpleType> - </xsd:attribute> - </xsd:complexType> - -<!-- - - Various weird anonymous type combinations (some of them are fruits of a - really sick imagination). - ---> - - <xsd:element name="tasks"> - <xsd:complexType> - <xsd:sequence> - <xsd:element ref="test:periodicTask"/> - <xsd:element ref="test:braindamageTask"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="periodicTask"> - <xsd:complexType> - <xsd:sequence> - <xsd:element ref="test:tasks"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="braindamageTask"> - <xsd:complexType> - <xsd:sequence> - <xsd:element ref="test:tasks"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - - <xsd:complexType name="PropertySeq"> - <xsd:sequence> - <xsd:element name="propery"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="name" type="xsd:string"/> - <xsd:element name="value"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="typecode"> - <xsd:simpleType> - <xsd:restriction base="xsd:NCName"> - <xsd:enumeration value="string"/> - <xsd:enumeration value="integer"/> - </xsd:restriction> - </xsd:simpleType> - </xsd:element> - <xsd:element name="content" type="xsd:string"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - </xsd:sequence> - </xsd:complexType> - - - <xsd:element name="periods"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="period" type="xsd:string"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - - <xsd:element name="typecode"> - <xsd:simpleType> - <xsd:restriction base="xsd:NCName"> - <xsd:enumeration value="string"/> - <xsd:enumeration value="integer"/> - </xsd:restriction> - </xsd:simpleType> - </xsd:element> - - -</xsd:schema> diff --git a/xsd/tests/schema/any-attribute/test.xsd b/xsd/tests/schema/any-attribute/test.xsd deleted file mode 100644 index 55419c4..0000000 --- a/xsd/tests/schema/any-attribute/test.xsd +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - - <xsd:complexType name="type"> - <xsd:attribute name="a" type="xsd:string"/> - <xsd:anyAttribute namespace="##other" processContents="skip"/> - <xsd:attributeGroup ref="test:agroup"/> - </xsd:complexType> - - <xsd:attributeGroup name="agroup"> - <xsd:attribute name="b" type="xsd:string"/> - <xsd:anyAttribute namespace="##any" processContents="skip"/> - </xsd:attributeGroup> - - <xsd:element name="root" type="test:type"/> - -</xsd:schema> diff --git a/xsd/tests/schema/any-type/test.xsd b/xsd/tests/schema/any-type/test.xsd deleted file mode 100644 index 9e3ff79..0000000 --- a/xsd/tests/schema/any-type/test.xsd +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <xsd:complexType name="person"> - <xsd:sequence> - <xsd:element name="name"/> <!-- type="anyType" --> - <xsd:element name="name2" type="xsd:anyType" minOccurs="0"/> - <xsd:element name="name3" type="xsd:anyType" maxOccurs="unbounded"/> - </xsd:sequence> - <xsd:attribute name="id"/> <!-- type="anySimpleType" --> - <xsd:attribute name="id2" type="xsd:anySimpleType" use="required"/> - </xsd:complexType> - - <xsd:element name="person" type="test:person"/> - - <xsd:element name="name"/> <!-- type="anyType" --> - -</xsd:schema> diff --git a/xsd/tests/schema/any/fail.xsd b/xsd/tests/schema/any/fail.xsd deleted file mode 100644 index 2eb9513..0000000 --- a/xsd/tests/schema/any/fail.xsd +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <xsd:element name="foo" type="xsd:string"/> - - <xsd:complexType name="person"> - <xsd:sequence> - <xsd:element name="name" type="xsd:string"/> - <xsd:element ref="test:foo"/> - <xsd:any namespace="##any" processContents="strict"/> - <xsd:any namespace="http://www.codesynthesis.com/xmlns/test" processContents="strict"/> - </xsd:sequence> - </xsd:complexType> - -</xsd:schema> diff --git a/xsd/tests/schema/any/test.xsd b/xsd/tests/schema/any/test.xsd deleted file mode 100644 index ff896fd..0000000 --- a/xsd/tests/schema/any/test.xsd +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <xsd:complexType name="person"> - <xsd:sequence> - <xsd:element name="name" type="xsd:string"/> - <xsd:any namespace="##other" processContents="strict" maxOccurs="unbounded"/> - </xsd:sequence> - <xsd:attribute name="id" type="xsd:ID"/> - <xsd:anyAttribute namespace="##other" processContents="strict"/> - </xsd:complexType> - - <xsd:element name="person" type="test:person"/> - -</xsd:schema> diff --git a/xsd/tests/schema/attribute-group/global.xsd b/xsd/tests/schema/attribute-group/global.xsd deleted file mode 100644 index 6ee0539..0000000 --- a/xsd/tests/schema/attribute-group/global.xsd +++ /dev/null @@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <!-- Simple case. --> - - <xsd:attributeGroup name="gfoo_1"> - <xsd:attribute name="foo_1_1" type="xsd:string"/> - <xsd:attribute name="foo_1_2" type="xsd:string"/> - </xsd:attributeGroup> - - <xsd:attributeGroup name="gfoo_2"> - <xsd:attributeGroup ref="gfoo_1"/> - <xsd:attribute name="foo_2_1" type="xsd:string"/> - <xsd:attribute name="foo_2_2" type="xsd:string"/> - </xsd:attributeGroup> - - <xsd:complexType name="Foo"> - <xsd:attributeGroup ref="gfoo_2"/> - </xsd:complexType> - - - - <!-- Forward reference. --> - - <xsd:attributeGroup name="gbar_3"> - <xsd:attribute name="bar_3_1" type="xsd:string"/> - <xsd:attribute name="bar_3_2" type="xsd:string"/> - <xsd:attributeGroup ref="gbar_1"/> - </xsd:attributeGroup> - - <xsd:complexType name="Bar"> - <xsd:attributeGroup ref="gbar_2"/> - </xsd:complexType> - - <xsd:attributeGroup name="gbar_2"> - <xsd:attributeGroup ref="gbar_3"/> - <xsd:attribute name="bar_2_1" type="xsd:string"/> - <xsd:attribute name="bar_2_2" type="xsd:string"/> - </xsd:attributeGroup> - - <xsd:attributeGroup name="gbar_1"> - <xsd:attribute name="bar_1_1" type="xsd:string"/> - <xsd:attribute name="bar_1_2" type="xsd:string"/> - </xsd:attributeGroup> - -</xsd:schema> diff --git a/xsd/tests/schema/attribute/global.xsd b/xsd/tests/schema/attribute/global.xsd deleted file mode 100644 index e2dcc93..0000000 --- a/xsd/tests/schema/attribute/global.xsd +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <!-- Typed with named type. --> - - <xsd:attribute name="foo" type="xsd:string"/> - - - <!-- Typed with anonymous type. --> - - <xsd:attribute name="bar"> - <xsd:simpleType> - <xsd:restriction base="xsd:string"/> - </xsd:simpleType> - </xsd:attribute> - -</xsd:schema> diff --git a/xsd/tests/schema/attribute/local.xsd b/xsd/tests/schema/attribute/local.xsd deleted file mode 100644 index 7a7a480..0000000 --- a/xsd/tests/schema/attribute/local.xsd +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - - <!-- Typed with named type. --> - - <xsd:complexType name="Foo"> - <xsd:attribute name="foo" type="xsd:string"/> - </xsd:complexType> - - - <!-- Forward reference to a yet undeclared type. --> - - <xsd:complexType name="Bar"> - <xsd:attribute name="bar" type="Bar2"/> - </xsd:complexType> - - <xsd:simpleType name="Bar2"> - <xsd:restriction base="xsd:string"/> - </xsd:simpleType> - - - <!-- Typed with anonymous type. --> - - <xsd:complexType name="Baz"> - <xsd:attribute name="baz"> - <xsd:simpleType> - <xsd:restriction base="xsd:string"/> - </xsd:simpleType> - </xsd:attribute> - </xsd:complexType> - -</xsd:schema> diff --git a/xsd/tests/schema/attribute/ref.xsd b/xsd/tests/schema/attribute/ref.xsd deleted file mode 100644 index f6c3c10..0000000 --- a/xsd/tests/schema/attribute/ref.xsd +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - - <!-- Easy case. --> - - <xsd:attribute name="foo" type="xsd:string"/> - - <xsd:complexType name="Foo"> - <xsd:attribute ref="foo"/> - </xsd:complexType> - - - - <!-- Forward reference to a yet undeclared attribute. --> - - <xsd:complexType name="Bar"> - <xsd:attribute ref="bar"/> - </xsd:complexType> - - <xsd:attribute name="bar" type="xsd:string"/> - - - - <!-- Reference to an attribute with a forward reference to a yet - undeclared type. --> - - <xsd:attribute name="baz" type="Baz2"/> - - <xsd:complexType name="Baz"> - <xsd:attribute ref="baz"/> - </xsd:complexType> - - <xsd:simpleType name="Baz2"> - <xsd:restriction base="xsd:string"/> - </xsd:simpleType> - -</xsd:schema> diff --git a/xsd/tests/schema/cardinality/test.xsd b/xsd/tests/schema/cardinality/test.xsd deleted file mode 100644 index b27f923..0000000 --- a/xsd/tests/schema/cardinality/test.xsd +++ /dev/null @@ -1,46 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <!-- - This test tries to cover various cardinality cases with - built-in and user-defined types. - --> - - <xsd:complexType name="Foo"> - <xsd:sequence> - <xsd:element name="foo" type="xsd:string"/> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="Bar"> - <xsd:sequence> - - <xsd:element name="one-int" type="xsd:int"/> - <xsd:element name="opt-int" type="xsd:int" minOccurs="0"/> - <xsd:element name="seq-int" type="xsd:int" maxOccurs="unbounded"/> - - <xsd:element name="one-string" type="xsd:string"/> - <xsd:element name="opt-string" type="xsd:string" minOccurs="0"/> - <xsd:element name="seq-string" type="xsd:string" maxOccurs="unbounded"/> - - <xsd:element name="one-foo" type="test:Foo"/> - <xsd:element name="opt-foo" type="test:Foo" minOccurs="0"/> - <xsd:element name="seq-foo" type="test:Foo" maxOccurs="unbounded"/> - - </xsd:sequence> - - <xsd:attribute name="one-int-a" type="xsd:int" use="required"/> - <xsd:attribute name="opt-int-a" type="xsd:int"/> - - <xsd:attribute name="one-string-a" type="xsd:string" use="required"/> - <xsd:attribute name="opt-string-a" type="xsd:string"/> - - </xsd:complexType> - - <xsd:element name="bar" type="test:Bar"/> - -</xsd:schema> diff --git a/xsd/tests/schema/chameleon/includer.xsd b/xsd/tests/schema/chameleon/includer.xsd deleted file mode 100644 index c93ea18..0000000 --- a/xsd/tests/schema/chameleon/includer.xsd +++ /dev/null @@ -1,17 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:Test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <xsd:include schemaLocation="schemas/includee.xsd"/> - - <xsd:simpleType name="derived"> - <xsd:restriction base="Test:base"/> - </xsd:simpleType> - - <xsd:element name="element" type="Test:base"/> - <xsd:attribute name="attribute" type="Test:base"/> - -</xsd:schema> diff --git a/xsd/tests/schema/chameleon/schemas/includee.xsd b/xsd/tests/schema/chameleon/schemas/includee.xsd deleted file mode 100644 index d89b9c4..0000000 --- a/xsd/tests/schema/chameleon/schemas/includee.xsd +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd"> - - <xsd:simpleType name="base"> - <xsd:restriction base="xsd:string"/> - </xsd:simpleType> - - <xsd:element name="base_e" type="base"/> - -</xsd:schema> diff --git a/xsd/tests/schema/enumeration/test.xsd b/xsd/tests/schema/enumeration/test.xsd deleted file mode 100644 index b8253d9..0000000 --- a/xsd/tests/schema/enumeration/test.xsd +++ /dev/null @@ -1,89 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <!-- string-based --> - - <xsd:simpleType name="StringEnum"> - <xsd:restriction base="xsd:string"> - <xsd:enumeration value="one"/> - <xsd:enumeration value="two"/> - <xsd:enumeration value="three"/> - </xsd:restriction> - </xsd:simpleType> - - <xsd:simpleType name="StringSimple"> - <xsd:restriction base="xsd:string"/> - </xsd:simpleType> - - <!-- inheritance of a enum from a simple type --> - <xsd:simpleType name="StringSimpleRestriction"> - <xsd:restriction base="test:StringSimple"> - <xsd:enumeration value="one"/> - <xsd:enumeration value="two"/> - </xsd:restriction> - </xsd:simpleType> - - <!-- inheritance of a enum from a strig-based enum --> - <xsd:simpleType name="StringEnumRestriction"> - <xsd:restriction base="test:StringEnum"> - <xsd:enumeration value="one"/> - <xsd:enumeration value="two"/> - </xsd:restriction> - </xsd:simpleType> - - <!-- inheritance of a complex type from a string-based enum --> - <xsd:complexType name="StringComplex"> - <xsd:simpleContent> - <xsd:extension base="test:StringEnumRestriction"> - <xsd:attribute name="lang" type="xsd:language"/> - </xsd:extension> - </xsd:simpleContent> - </xsd:complexType> - - - - <!-- non string-based --> - - <xsd:simpleType name="IntEnum"> - <xsd:restriction base="xsd:int"> - <xsd:enumeration value="1"/> - <xsd:enumeration value="2"/> - <xsd:enumeration value="3"/> - </xsd:restriction> - </xsd:simpleType> - - <xsd:simpleType name="IntSimple"> - <xsd:restriction base="xsd:int"/> - </xsd:simpleType> - - <!-- inheritance of a enum from a simple type --> - <xsd:simpleType name="IntSimpleRestriction"> - <xsd:restriction base="test:IntSimple"> - <xsd:enumeration value="1"/> - <xsd:enumeration value="2"/> - </xsd:restriction> - </xsd:simpleType> - - <!-- inheritance of a enum from a enum --> - <xsd:simpleType name="IntEnumRestriction"> - <xsd:restriction base="test:IntEnum"> - <xsd:enumeration value="1"/> - <xsd:enumeration value="2"/> - </xsd:restriction> - </xsd:simpleType> - - <!-- inheritance of a complex type from a enum --> - <xsd:complexType name="IntComplex"> - <xsd:simpleContent> - <xsd:extension base="test:IntEnumRestriction"> - <xsd:attribute name="lang" type="xsd:language"/> - </xsd:extension> - </xsd:simpleContent> - </xsd:complexType> - - -</xsd:schema> diff --git a/xsd/tests/schema/forward/test.xsd b/xsd/tests/schema/forward/test.xsd deleted file mode 100644 index c7cc24e..0000000 --- a/xsd/tests/schema/forward/test.xsd +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - -<!-- - - Various weird forward reference combinations. - ---> - - <!-- case 1 --> - - <xsd:complexType name="Type1A"> - <xsd:complexContent> - <xsd:extension base="test:Type1B"> - <xsd:sequence> - <xsd:element name="bar" type="xsd:string"/> - </xsd:sequence> - </xsd:extension> - </xsd:complexContent> - </xsd:complexType> - - <xsd:complexType name="Type1B"> - <xsd:sequence> - <xsd:element name="foo" type="xsd:string"/> - </xsd:sequence> - </xsd:complexType> - -</xsd:schema> diff --git a/xsd/tests/schema/group/global.xsd b/xsd/tests/schema/group/global.xsd deleted file mode 100644 index 27ccadf..0000000 --- a/xsd/tests/schema/group/global.xsd +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <!-- Simple case. --> - - <xsd:group name="gfoo"> - <xsd:sequence> - <xsd:element name="foo_1" type="xsd:string"/> - <xsd:element name="foo_2" type="xsd:string"/> - </xsd:sequence> - </xsd:group> - - - <xsd:complexType name="Foo"> - <xsd:group ref="gfoo"/> - </xsd:complexType> - - - - <!-- Forward reference. --> - - <xsd:complexType name="Bar"> - <xsd:group ref="gbar"/> - </xsd:complexType> - - <xsd:group name="gbar"> - <xsd:choice> - <xsd:element name="bar_1" type="xsd:string"/> - <xsd:element ref="bar_2"/> - </xsd:choice> - </xsd:group> - - <xsd:element name="bar_2" type="xsd:string"/> - -</xsd:schema> diff --git a/xsd/tests/schema/group/test.xsd b/xsd/tests/schema/group/test.xsd deleted file mode 100644 index 7527cbb..0000000 --- a/xsd/tests/schema/group/test.xsd +++ /dev/null @@ -1,148 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <!-- - - Various weird group combinations. - - --> - - <!-- case 1 --> - - <xsd:group name="g1"> - <xsd:sequence> - <xsd:element name="e1" type="xsd:string"/> - <xsd:element name="e2" type="xsd:long"/> - </xsd:sequence> - </xsd:group> - - <xsd:complexType name="Type1"> - <xsd:sequence> - <xsd:group ref="test:g1"/> - </xsd:sequence> - </xsd:complexType> - - <!-- case 2 --> - - <xsd:group name="g2"> - <xsd:sequence> - <xsd:element ref="test:g2e1"/> - </xsd:sequence> - </xsd:group> - - <xsd:complexType name="TypeTwo"> - <xsd:sequence> - <xsd:group ref="test:g2"/> - </xsd:sequence> - </xsd:complexType> - - <xsd:element name="g2e1" type="xsd:string"/> - - <!-- case 3 --> - - <xsd:complexType name="Type3"> - <xsd:sequence> - <xsd:group ref="test:g3"/> - </xsd:sequence> - </xsd:complexType> - - <xsd:group name="g3"> - <xsd:sequence> - <xsd:element ref="test:g3e1"/> - </xsd:sequence> - </xsd:group> - - <xsd:element name="g3e1" type="xsd:string"/> - - <!-- case 4 --> - - <xsd:complexType name="Type4A"> - <xsd:sequence> - <xsd:group ref="test:g4" minOccurs="0"/> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="Type4B"> - <xsd:sequence minOccurs="0"> - <xsd:group ref="test:g4"/> - </xsd:sequence> - </xsd:complexType> - - - <xsd:group name="g4"> - <xsd:sequence> - <xsd:element name="e1" type="xsd:string"/> - <xsd:element name="e2" type="xsd:long" maxOccurs="unbounded"/> - </xsd:sequence> - </xsd:group> - - <xsd:complexType name="Type4C"> - <xsd:sequence> - <xsd:group ref="test:g4" minOccurs="0"/> - </xsd:sequence> - </xsd:complexType> - - <!-- case 5 --> - - <xsd:group name="g5-1"> - <xsd:choice> - <xsd:group ref="test:g5-2"/> - <xsd:element name="e1" type="xsd:string"/> - </xsd:choice> - </xsd:group> - - <xsd:group name="g5-2"> - <xsd:choice> - <xsd:group ref="test:g5-3"/> - <xsd:element name="e2" type="xsd:string"/> - </xsd:choice> - </xsd:group> - - <xsd:group name="g5-3"> - <xsd:choice> - <xsd:element name="e3" type="xsd:long"/> - </xsd:choice> - </xsd:group> - - <xsd:complexType name="Type5"> - <xsd:choice> - <xsd:group ref="test:g5-1"/> - </xsd:choice> - </xsd:complexType> - - <!-- case 6 --> - - <xsd:group name="g6-3"> - <xsd:choice> - <xsd:group ref="test:g6-1"/> - <xsd:element name="e_3_1" type="xsd:string"/> - <xsd:element name="e_3_2" type="xsd:string"/> - </xsd:choice> - </xsd:group> - - <xsd:complexType name="Type6"> - <xsd:choice> - <xsd:group ref="test:g6-2"/> - </xsd:choice> - </xsd:complexType> - - <xsd:group name="g6-2"> - <xsd:choice> - <xsd:group ref="test:g6-3"/> - <xsd:element name="e_2_1" type="xsd:string"/> - <xsd:element name="e_2_2" type="xsd:string"/> - </xsd:choice> - </xsd:group> - - <xsd:group name="g6-1"> - <xsd:choice> - <xsd:element name="e_1_1" type="xsd:string"/> - <xsd:element name="e_1_2" type="xsd:string"/> - </xsd:choice> - </xsd:group> - -</xsd:schema> diff --git a/xsd/tests/schema/import/importer.xsd b/xsd/tests/schema/import/importer.xsd deleted file mode 100644 index 82fc33c..0000000 --- a/xsd/tests/schema/import/importer.xsd +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:Test="http://www.codesynthesis.com/xmlns/test" - xmlns:Impl="http://www.codesynthesis.com/xmlns/test/impl" - targetNamespace="http://www.codesynthesis.com/xmlns/test/impl"> - - <!-- <xsd::element name="foo" type="xsd:string"/> --> - - <xsd:import namespace="http://www.codesynthesis.com/xmlns/test" schemaLocation="schemas/importee.xsd"/> - - <xsd:simpleType name="derived"> - <xsd:restriction base="Test:base"/> - </xsd:simpleType> - - <xsd:element name="element" type="Test:base"/> - <xsd:attribute name="attribute" type="Test:base"/> - -</xsd:schema> diff --git a/xsd/tests/schema/import/schemas/importee.xsd b/xsd/tests/schema/import/schemas/importee.xsd deleted file mode 100644 index 9b03315..0000000 --- a/xsd/tests/schema/import/schemas/importee.xsd +++ /dev/null @@ -1,15 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - - <xsd:simpleType name="base"> - <xsd:restriction base="xsd:string"/> - </xsd:simpleType> - - <xsd:element name="base_e" type="test:base"/> - -</xsd:schema> diff --git a/xsd/tests/schema/include/includer.xsd b/xsd/tests/schema/include/includer.xsd deleted file mode 100644 index c93ea18..0000000 --- a/xsd/tests/schema/include/includer.xsd +++ /dev/null @@ -1,17 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:Test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <xsd:include schemaLocation="schemas/includee.xsd"/> - - <xsd:simpleType name="derived"> - <xsd:restriction base="Test:base"/> - </xsd:simpleType> - - <xsd:element name="element" type="Test:base"/> - <xsd:attribute name="attribute" type="Test:base"/> - -</xsd:schema> diff --git a/xsd/tests/schema/include/schemas/includee.xsd b/xsd/tests/schema/include/schemas/includee.xsd deleted file mode 100644 index 0a928f5..0000000 --- a/xsd/tests/schema/include/schemas/includee.xsd +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <xsd:simpleType name="base"> - <xsd:restriction base="xsd:string"/> - </xsd:simpleType> - - <xsd:element name="base_e" type="test:base"/> - -</xsd:schema> diff --git a/xsd/tests/schema/inheritance/cycle.xsd b/xsd/tests/schema/inheritance/cycle.xsd deleted file mode 100644 index c705311..0000000 --- a/xsd/tests/schema/inheritance/cycle.xsd +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <xsd:complexType name="Base"> - <xsd:sequence> - <xsd:element name="e1"> - <xsd:complexType> - <xsd:complexContent> - <xsd:extension base="test:Derived"> - <xsd:sequence> - <xsd:element name="e2" type="xsd:int"/> - </xsd:sequence> - </xsd:extension> - </xsd:complexContent> - </xsd:complexType> - </xsd:element> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="Derived"> - <xsd:complexContent> - <xsd:extension base="test:Base"> - <xsd:sequence> - <xsd:element name="e3" type="xsd:int"/> - </xsd:sequence> - </xsd:extension> - </xsd:complexContent> - </xsd:complexType> - -</xsd:schema> diff --git a/xsd/tests/schema/inheritance/sourced-forward/includee.xsd b/xsd/tests/schema/inheritance/sourced-forward/includee.xsd deleted file mode 100644 index 531027d..0000000 --- a/xsd/tests/schema/inheritance/sourced-forward/includee.xsd +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd"> - - <xsd:simpleType name="Derived"> - <xsd:restriction base="Base"/> - </xsd:simpleType> - -</xsd:schema> diff --git a/xsd/tests/schema/inheritance/sourced-forward/includer.xsd b/xsd/tests/schema/inheritance/sourced-forward/includer.xsd deleted file mode 100644 index 7d18efc..0000000 --- a/xsd/tests/schema/inheritance/sourced-forward/includer.xsd +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <xsd:include schemaLocation="includee.xsd"/> - - <xsd:simpleType name="Base"> - <xsd:restriction base="xsd:string"/> - </xsd:simpleType> - -</xsd:schema> diff --git a/xsd/tests/schema/list/anonymous/test.xsd b/xsd/tests/schema/list/anonymous/test.xsd deleted file mode 100644 index 7db39ba..0000000 --- a/xsd/tests/schema/list/anonymous/test.xsd +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <xsd:simpleType name="IntList"> - <xsd:list> - <xsd:simpleType> - <xsd:restriction base="xsd:int"/> - </xsd:simpleType> - </xsd:list> - </xsd:simpleType> - -</xsd:schema> diff --git a/xsd/tests/schema/list/any-simple-type/test.xsd b/xsd/tests/schema/list/any-simple-type/test.xsd deleted file mode 100644 index 29fe95c..0000000 --- a/xsd/tests/schema/list/any-simple-type/test.xsd +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <xsd:simpleType name="any"> - <xsd:list itemType="xsd:anySimpleType"/> - </xsd:simpleType> - -</xsd:schema> diff --git a/xsd/tests/schema/list/driver.cxx b/xsd/tests/schema/list/driver.cxx deleted file mode 100644 index 7bd46e9..0000000 --- a/xsd/tests/schema/list/driver.cxx +++ /dev/null @@ -1,13 +0,0 @@ -#include "test.hxx" - -typedef xmlns::test::IntList<void, int> IntListImpl; -typedef xmlns::test::IntList<void, void> IntListVoidImpl; -typedef xmlns::test::IntComplex<void, int, char*> IntComplexImpl; - -int -main () -{ - IntListImpl int_list_impl; - IntListVoidImpl int_list_void_impl; - IntComplexImpl int_complex_impl; -} diff --git a/xsd/tests/schema/list/test.xsd b/xsd/tests/schema/list/test.xsd deleted file mode 100644 index e16a58d..0000000 --- a/xsd/tests/schema/list/test.xsd +++ /dev/null @@ -1,72 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <xsd:simpleType name="IntList"> - <xsd:list itemType="xsd:int"/> - </xsd:simpleType> - - <!-- local element with anonymous list inside. --> - - <xsd:complexType name="Foo"> - <xsd:sequence> - <xsd:element name="string-list"> - <xsd:simpleType> - <xsd:list itemType="xsd:string"/> - </xsd:simpleType> - </xsd:element> - </xsd:sequence> - </xsd:complexType> - - - <!-- global element with anonymous list inside. --> - - <xsd:element name="string-list"> - <xsd:simpleType> - <xsd:list itemType="xsd:string"/> - </xsd:simpleType> - </xsd:element> - - - - <!-- global element and global list with conflicting names --> - - <xsd:simpleType name="long-list"> - <xsd:list itemType="xsd:long"/> - </xsd:simpleType> - - <xsd:element name="long-list" type="test:long-list"/> - - - <!-- forward reference --> - - <xsd:simpleType name="int-list"> - <xsd:list itemType="test:int"/> - </xsd:simpleType> - - <xsd:simpleType name="int"> - <xsd:restriction base="xsd:int"/> - </xsd:simpleType> - - - <!-- inheritance from list --> - - <xsd:complexType name="IntComplex"> - <xsd:simpleContent> - <xsd:extension base="test:IntList"> - <xsd:attribute name="foo" type="xsd:string"/> - </xsd:extension> - </xsd:simpleContent> - </xsd:complexType> - - <xsd:complexType name="IntComplexEmpty"> - <xsd:simpleContent> - <xsd:extension base="test:IntList"> - </xsd:extension> - </xsd:simpleContent> - </xsd:complexType> - -</xsd:schema> diff --git a/xsd/tests/schema/no-namespace/test.xsd b/xsd/tests/schema/no-namespace/test.xsd deleted file mode 100644 index b426e8a..0000000 --- a/xsd/tests/schema/no-namespace/test.xsd +++ /dev/null @@ -1,15 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd"> - - - <xsd:complexType name="Test"> - <xsd:sequence> - <xsd:element name="name" type="xsd:string"/> - </xsd:sequence> - </xsd:complexType> - - <xsd:element name="test" type="Test"/> - -</xsd:schema> diff --git a/xsd/tests/schema/recursive/test.xsd b/xsd/tests/schema/recursive/test.xsd deleted file mode 100644 index 6efc7d2..0000000 --- a/xsd/tests/schema/recursive/test.xsd +++ /dev/null @@ -1,43 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <xsd:element name="BooleanExpression"> - <xsd:complexType> - <xsd:choice> - <xsd:element name="literal" type="xsd:boolean"/> - <xsd:element ref="test:AND"/> - <xsd:element ref="test:OR"/> - <xsd:element ref="test:XOR"/> - </xsd:choice> - </xsd:complexType> - </xsd:element> - - <xsd:element name="AND"> - <xsd:complexType> - <xsd:sequence> - <xsd:element ref="test:BooleanExpression" maxOccurs="2"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="OR"> - <xsd:complexType> - <xsd:sequence> - <xsd:element ref="test:BooleanExpression" maxOccurs="2"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - - <xsd:element name="XOR"> - <xsd:complexType> - <xsd:sequence> - <xsd:element ref="test:BooleanExpression" maxOccurs="2"/> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - -</xsd:schema> diff --git a/xsd/tests/schema/ref-type/idref.xsd b/xsd/tests/schema/ref-type/idref.xsd deleted file mode 100644 index 49ebe40..0000000 --- a/xsd/tests/schema/ref-type/idref.xsd +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0"?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xse="http://www.codesynthesis.com/xmlns/xml-schema-extension" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <!-- attribute --> - - <xsd:attribute name="attribute" type="xsd:IDREF" xse:refType="test:a-author"/> - - <xsd:complexType name="a-author"> - <xsd:sequence> - <xsd:element name="name" type="xsd:string"/> - </xsd:sequence> - <xsd:attribute name="recommends" type="xsd:IDREF" xse:refType="test:a-author"/> - </xsd:complexType> - - - <!-- element --> - - <xsd:element name="element" type="xsd:IDREF" xse:refType="test:e-author"/> - - <xsd:complexType name="e-author"> - <xsd:sequence> - <xsd:element name="recommends" type="xsd:IDREF" xse:refType="test:e-author"/> - </xsd:sequence> - </xsd:complexType> - - <!-- base --> - - <xsd:simpleType name="author-ref"> - <xsd:restriction base="xsd:IDREF" xse:refType="test:e-author"/> - </xsd:simpleType> - - - <!-- itemType --> - - <xsd:simpleType name="author-refs"> - <xsd:list itemType="xsd:IDREF" xse:refType="test:e-author"/> - </xsd:simpleType> - -</xsd:schema> diff --git a/xsd/tests/schema/ref-type/idrefs.xsd b/xsd/tests/schema/ref-type/idrefs.xsd deleted file mode 100644 index b68ed03..0000000 --- a/xsd/tests/schema/ref-type/idrefs.xsd +++ /dev/null @@ -1,43 +0,0 @@ -<?xml version="1.0"?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xse="http://www.codesynthesis.com/xmlns/xml-schema-extension" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <!-- attribute --> - - <xsd:attribute name="attribute" type="xsd:IDREFS" xse:refType="test:a-author"/> - - <xsd:complexType name="a-author"> - <xsd:sequence> - <xsd:element name="name" type="xsd:string"/> - </xsd:sequence> - <xsd:attribute name="recommends" type="xsd:IDREFS" xse:refType="test:a-author"/> - </xsd:complexType> - - - <!-- element --> - - <xsd:element name="element" type="xsd:IDREFS" xse:refType="test:e-author"/> - - <xsd:complexType name="e-author"> - <xsd:sequence> - <xsd:element name="recommends" type="xsd:IDREFS" xse:refType="test:e-author"/> - </xsd:sequence> - </xsd:complexType> - - <!-- base --> - - <xsd:simpleType name="author-refs"> - <xsd:restriction base="xsd:IDREFS" xse:refType="test:e-author"/> - </xsd:simpleType> - - - <!-- itemType - illegal --> - <!-- - <xsd:simpleType name="author-refss"> - <xsd:list itemType="xsd:IDREFS" xse:refType="test:e-author"/> - </xsd:simpleType> - --> - -</xsd:schema> diff --git a/xsd/tests/schema/ref-type/invalid-0.xsd b/xsd/tests/schema/ref-type/invalid-0.xsd deleted file mode 100644 index 7ce82ed..0000000 --- a/xsd/tests/schema/ref-type/invalid-0.xsd +++ /dev/null @@ -1,17 +0,0 @@ -<?xml version="1.0"?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xse="http://www.codesynthesis.com/xmlns/xml-schema-extension" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - xmlns:phony="http://www.codesynthesis.com/xmlns/phony" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <!-- unresolvable namespace prefix --> - - <xsd:attribute name="attribute1" type="xsd:IDREF" xse:refType="author"/> - <xsd:attribute name="attribute2" type="xsd:IDREF" xse:refType="t:author"/> - - <!-- unresolvable namespace --> - - <xsd:attribute name="attribute3" type="xsd:IDREF" xse:refType="phony:author"/> - -</xsd:schema> diff --git a/xsd/tests/schema/ref-type/invalid-1.xsd b/xsd/tests/schema/ref-type/invalid-1.xsd deleted file mode 100644 index d989065..0000000 --- a/xsd/tests/schema/ref-type/invalid-1.xsd +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0"?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xse="http://www.codesynthesis.com/xmlns/xml-schema-extension" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <!-- unresolvable type --> - - <xsd:attribute name="attribute" type="xsd:IDREF" xse:refType="test:author"/> - -</xsd:schema> diff --git a/xsd/tests/schema/restriction/test.xsd b/xsd/tests/schema/restriction/test.xsd deleted file mode 100644 index 331ba78..0000000 --- a/xsd/tests/schema/restriction/test.xsd +++ /dev/null @@ -1,67 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <!-- Simple content. --> - - <xsd:complexType name="SimpleBase"> - <xsd:simpleContent> - <xsd:extension base="xsd:string"> - <xsd:attribute name="lang" type="xsd:language"/> - <xsd:attribute name="note" type="xsd:string"/> - </xsd:extension> - </xsd:simpleContent> - </xsd:complexType> - - <xsd:complexType name="SimpleType"> - <xsd:simpleContent> - <xsd:restriction base="test:SimpleBase"> - <xsd:maxLength value="255"/> - <xsd:attribute name="lang"> - <xsd:simpleType> - <xsd:restriction base="xsd:language"> - <xsd:enumeration value="en"/> - <xsd:enumeration value="es"/> - </xsd:restriction> - </xsd:simpleType> - </xsd:attribute> - </xsd:restriction> - </xsd:simpleContent> - </xsd:complexType> - - <!-- Complex content. --> - - <xsd:complexType name="ComplexBase"> - <xsd:sequence> - <xsd:element name="lang" type="xsd:language"/> - <xsd:element name="note" type="xsd:string" minOccurs="0"/> - </xsd:sequence> - </xsd:complexType> - - - <xsd:complexType name="ComplexType"> - <xsd:complexContent> - <xsd:restriction base="test:ComplexBase"> - <xsd:sequence> - <xsd:element name="lang" type="xsd:language"/> - <xsd:element name="note" type="xsd:string"/> - </xsd:sequence> - </xsd:restriction> - </xsd:complexContent> - </xsd:complexType> - - <xsd:complexType name="AnyType"> - <xsd:complexContent> - <xsd:restriction base="xsd:anyType"> - <xsd:sequence> - <xsd:element name="lang" type="xsd:language"/> - <xsd:element name="note" type="xsd:string"/> - </xsd:sequence> - </xsd:restriction> - </xsd:complexContent> - </xsd:complexType> - -</xsd:schema> diff --git a/xsd/tests/schema/union/test.xsd b/xsd/tests/schema/union/test.xsd deleted file mode 100644 index 706f6f2..0000000 --- a/xsd/tests/schema/union/test.xsd +++ /dev/null @@ -1,65 +0,0 @@ -<?xml version="1.0" ?> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" - xmlns:test="http://www.codesynthesis.com/xmlns/test" - targetNamespace="http://www.codesynthesis.com/xmlns/test"> - - <xsd:simpleType name="IntUnion"> - <xsd:union memberTypes="xsd:int xsd:string"/> - </xsd:simpleType> - - <!-- local element with anonymous union inside. --> - - <xsd:complexType name="Foo"> - <xsd:sequence> - <xsd:element name="string-union"> - <xsd:simpleType> - <xsd:union memberTypes="xsd:int xsd:string"/> - </xsd:simpleType> - </xsd:element> - </xsd:sequence> - </xsd:complexType> - - - <!-- global element with anonymous union inside. --> - - <xsd:element name="string-union"> - <xsd:simpleType> - <xsd:union memberTypes="xsd:int xsd:string"/> - </xsd:simpleType> - </xsd:element> - - - - <!-- global element and global union with conflicting names --> - - <xsd:simpleType name="long-union"> - <xsd:union memberTypes="xsd:long xsd:string"/> - </xsd:simpleType> - - <xsd:element name="long-union" type="test:long-union"/> - - - <!-- forward reference --> - - <xsd:simpleType name="int-union"> - <xsd:union memberTypes="test:int xsd:string"/> - </xsd:simpleType> - - <xsd:simpleType name="int"> - <xsd:restriction base="xsd:int"/> - </xsd:simpleType> - - - <!-- inheritance from union --> - - <xsd:complexType name="IntComplex"> - <xsd:simpleContent> - <xsd:extension base="test:IntUnion"> - <xsd:attribute name="foo" type="xsd:string"/> - </xsd:extension> - </xsd:simpleContent> - </xsd:complexType> - -</xsd:schema> |