aboutsummaryrefslogtreecommitdiff
path: root/tests/processing
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-09-17 07:15:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-09-17 07:15:29 +0200
commitf0510d2f90467de8e8f260b47d79a9baaf9bef17 (patch)
tree0b9929946f06a9cbe9b9e8f2a7600dae4e048f79 /tests/processing
Start tracking XSD with git
Diffstat (limited to 'tests/processing')
-rw-r--r--tests/processing/inheritance/test-000.xsd22
-rw-r--r--tests/processing/inheritance/test-001.xsd26
2 files changed, 48 insertions, 0 deletions
diff --git a/tests/processing/inheritance/test-000.xsd b/tests/processing/inheritance/test-000.xsd
new file mode 100644
index 0000000..ef1ef71
--- /dev/null
+++ b/tests/processing/inheritance/test-000.xsd
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test" targetNamespace="test">
+
+ <!-- Type base "depends" on itself via e element -->
+
+ <element name="e">
+ <complexType>
+ <complexContent>
+ <extension base="t:base"/>
+ </complexContent>
+ </complexType>
+ </element>
+
+ <complexType name="base">
+ <sequence>
+ <element ref="t:e"/>
+ </sequence>
+ </complexType>
+
+ <element name="root" type="t:base"/>
+
+</schema>
diff --git a/tests/processing/inheritance/test-001.xsd b/tests/processing/inheritance/test-001.xsd
new file mode 100644
index 0000000..5afc997
--- /dev/null
+++ b/tests/processing/inheritance/test-001.xsd
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test" targetNamespace="test">
+
+ <!-- Type base depends on derived which in turn depends on base -->
+
+ <complexType name="derived">
+ <complexContent>
+ <extension base="t:base"/>
+ </complexContent>
+ </complexType>
+
+ <complexType name="base">
+ <sequence>
+ <element name="e">
+ <complexType>
+ <complexContent>
+ <extension base="t:derived"/>
+ </complexContent>
+ </complexType>
+ </element>
+ </sequence>
+ </complexType>
+
+ <element name="root" type="t:base"/>
+
+</schema>