diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-16 18:14:00 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-16 18:14:00 +0200 |
commit | bd6f1415823a473da4518769fc292c10330d821d (patch) | |
tree | 98bf0ab2565dfdfbef6fbba16e2c24cb442ee304 /tests/schema/element-group/test-000.xsd |
Start tracking libxsd-frontend with git
Diffstat (limited to 'tests/schema/element-group/test-000.xsd')
-rw-r--r-- | tests/schema/element-group/test-000.xsd | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/schema/element-group/test-000.xsd b/tests/schema/element-group/test-000.xsd new file mode 100644 index 0000000..1864b28 --- /dev/null +++ b/tests/schema/element-group/test-000.xsd @@ -0,0 +1,39 @@ +<?xml version="1.0"?> +<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test" targetNamespace="test"> + + <!-- Multiple levels of forward reference. --> + + <complexType name="type"> + <sequence> + <group ref="t:g1" minOccurs="0" maxOccurs="unbounded"/> + </sequence> + </complexType> + + <group name="g1"> + <choice> + <group ref="t:g2" minOccurs="0"/> + <group ref="t:g3" maxOccurs="unbounded"/> + </choice> + </group> + + <group name="g2"> + <choice> + <element ref="t:foo2"/> + <element ref="t:bar2" minOccurs="0"/> + </choice> + </group> + + <group name="g3"> + <choice> + <element ref="t:foo3" maxOccurs="unbounded"/> + <element ref="t:bar3" minOccurs="0" maxOccurs="unbounded"/> + </choice> + </group> + + <element name="foo2" type="string"/> + <element name="bar2" type="string"/> + + <element name="foo3" type="string"/> + <element name="bar3" type="string"/> + +</schema> |