diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2025-05-02 07:42:02 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2025-05-02 07:42:02 +0200 |
commit | fc486627a4ecbae797fa6856d8a9204ea85f4db8 (patch) | |
tree | ff3dae4c0e5d980d8e2da4fc6256ae839269bbcd /xsd/tests/schema/cardinality | |
parent | 1c188393cd2e271ed2581471b601fb5960777fd8 (diff) | |
parent | ecba0bbd9947036dd82f16ab95252f8db445e149 (diff) |
Merge tag 'debian/4.0.0-10' into developdevelop
Bugfix release
Diffstat (limited to 'xsd/tests/schema/cardinality')
-rw-r--r-- | xsd/tests/schema/cardinality/test.xsd | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/xsd/tests/schema/cardinality/test.xsd b/xsd/tests/schema/cardinality/test.xsd new file mode 100644 index 0000000..b27f923 --- /dev/null +++ b/xsd/tests/schema/cardinality/test.xsd @@ -0,0 +1,46 @@ +<?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> |