diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-12-18 18:48:46 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-02-25 13:45:48 +0300 |
commit | 5e527213a2430bb3018e5eebd909aef294edf9b5 (patch) | |
tree | 94de33c82080b53d9a9e300170f6d221d89078f4 /tests/schema/enumeration | |
parent | 7420f85ea19b0562ffdd8123442f32bc8bac1267 (diff) |
Switch to build2
Diffstat (limited to 'tests/schema/enumeration')
-rw-r--r-- | tests/schema/enumeration/test.xsd | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/tests/schema/enumeration/test.xsd b/tests/schema/enumeration/test.xsd deleted file mode 100644 index b8253d9..0000000 --- a/tests/schema/enumeration/test.xsd +++ /dev/null @@ -1,89 +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"> - - <!-- string-based --> - - <xsd:simpleType name="StringEnum"> - <xsd:restriction base="xsd:string"> - <xsd:enumeration value="one"/> - <xsd:enumeration value="two"/> - <xsd:enumeration value="three"/> - </xsd:restriction> - </xsd:simpleType> - - <xsd:simpleType name="StringSimple"> - <xsd:restriction base="xsd:string"/> - </xsd:simpleType> - - <!-- inheritance of a enum from a simple type --> - <xsd:simpleType name="StringSimpleRestriction"> - <xsd:restriction base="test:StringSimple"> - <xsd:enumeration value="one"/> - <xsd:enumeration value="two"/> - </xsd:restriction> - </xsd:simpleType> - - <!-- inheritance of a enum from a strig-based enum --> - <xsd:simpleType name="StringEnumRestriction"> - <xsd:restriction base="test:StringEnum"> - <xsd:enumeration value="one"/> - <xsd:enumeration value="two"/> - </xsd:restriction> - </xsd:simpleType> - - <!-- inheritance of a complex type from a string-based enum --> - <xsd:complexType name="StringComplex"> - <xsd:simpleContent> - <xsd:extension base="test:StringEnumRestriction"> - <xsd:attribute name="lang" type="xsd:language"/> - </xsd:extension> - </xsd:simpleContent> - </xsd:complexType> - - - - <!-- non string-based --> - - <xsd:simpleType name="IntEnum"> - <xsd:restriction base="xsd:int"> - <xsd:enumeration value="1"/> - <xsd:enumeration value="2"/> - <xsd:enumeration value="3"/> - </xsd:restriction> - </xsd:simpleType> - - <xsd:simpleType name="IntSimple"> - <xsd:restriction base="xsd:int"/> - </xsd:simpleType> - - <!-- inheritance of a enum from a simple type --> - <xsd:simpleType name="IntSimpleRestriction"> - <xsd:restriction base="test:IntSimple"> - <xsd:enumeration value="1"/> - <xsd:enumeration value="2"/> - </xsd:restriction> - </xsd:simpleType> - - <!-- inheritance of a enum from a enum --> - <xsd:simpleType name="IntEnumRestriction"> - <xsd:restriction base="test:IntEnum"> - <xsd:enumeration value="1"/> - <xsd:enumeration value="2"/> - </xsd:restriction> - </xsd:simpleType> - - <!-- inheritance of a complex type from a enum --> - <xsd:complexType name="IntComplex"> - <xsd:simpleContent> - <xsd:extension base="test:IntEnumRestriction"> - <xsd:attribute name="lang" type="xsd:language"/> - </xsd:extension> - </xsd:simpleContent> - </xsd:complexType> - - -</xsd:schema> |