summaryrefslogtreecommitdiff
path: root/tests/schema/anonymous/test.xsd
diff options
context:
space:
mode:
Diffstat (limited to 'tests/schema/anonymous/test.xsd')
-rw-r--r--tests/schema/anonymous/test.xsd143
1 files changed, 0 insertions, 143 deletions
diff --git a/tests/schema/anonymous/test.xsd b/tests/schema/anonymous/test.xsd
deleted file mode 100644
index cba3300..0000000
--- a/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>