Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.jet.tests/data/substGroup_2.4')
-rw-r--r--tests/org.eclipse.jet.tests/data/substGroup_2.4/ReallySpecialChildren.xml8
-rw-r--r--tests/org.eclipse.jet.tests/data/substGroup_2.4/XMLSchemaWithGroups.xsd11
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/org.eclipse.jet.tests/data/substGroup_2.4/ReallySpecialChildren.xml b/tests/org.eclipse.jet.tests/data/substGroup_2.4/ReallySpecialChildren.xml
new file mode 100644
index 0000000..f1e6f57
--- /dev/null
+++ b/tests/org.eclipse.jet.tests/data/substGroup_2.4/ReallySpecialChildren.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tns:topElement xmlns:tns="http://www.example.org/XMLSchemaWithGroups" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.example.org/XMLSchemaWithGroups XMLSchemaWithGroups.xsd ">
+ <tns:child name="James"/>
+ <tns:specialChild name="Harry" specialNeed="Lots of Action"/>
+ <tns:reallySpecialChild name="Harry" specialNeed="Lots of Action" reallySpecialNeed="And candy"/>
+ <tns:child name="Lilly"/>
+ <tns:specialChild name="Dudley" specialNeed="Lots of Candy"/>
+</tns:topElement>
diff --git a/tests/org.eclipse.jet.tests/data/substGroup_2.4/XMLSchemaWithGroups.xsd b/tests/org.eclipse.jet.tests/data/substGroup_2.4/XMLSchemaWithGroups.xsd
index b07e459..b0ff1a1 100644
--- a/tests/org.eclipse.jet.tests/data/substGroup_2.4/XMLSchemaWithGroups.xsd
+++ b/tests/org.eclipse.jet.tests/data/substGroup_2.4/XMLSchemaWithGroups.xsd
@@ -35,4 +35,15 @@
</extension>
</complexContent>
</complexType>
+
+ <element name="reallySpecialChild" type="tns:ReallySpecialChildComplexType" substitutionGroup="tns:specialChild"></element>
+ <complexType name="ReallySpecialChildComplexType">
+ <complexContent>
+ <extension base="tns:SpecialChildComplexType">
+ <attribute name="reallySpecialNeed" type="string" use="required"></attribute>
+ </extension>
+ </complexContent>
+ </complexType>
+
+
</schema> \ No newline at end of file

Back to the top