diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2024-03-06 10:24:46 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2024-03-06 10:24:46 +0100 |
commit | 372a0e99c2f61543d9e14d9933b59d9d1f4cb26e (patch) | |
tree | bbadf39aed0610c8f8f7b41fefff47773b8ac205 /xsd/tests/cxx/parser/validation/attribute/test.xsd | |
parent | 23d41842168ac1a1580111b9c5c73500ceee3d57 (diff) | |
parent | 4538829ab86b5a1cd4e845e7eab165029c9d6d46 (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'xsd/tests/cxx/parser/validation/attribute/test.xsd')
-rw-r--r-- | xsd/tests/cxx/parser/validation/attribute/test.xsd | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/xsd/tests/cxx/parser/validation/attribute/test.xsd b/xsd/tests/cxx/parser/validation/attribute/test.xsd deleted file mode 100644 index 833eb8e..0000000 --- a/xsd/tests/cxx/parser/validation/attribute/test.xsd +++ /dev/null @@ -1,71 +0,0 @@ -<?xml version="1.0"?> -<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test" targetNamespace="test"> - - - <!-- Test optional and required attributes as well as a wildcard. --> - <complexType name="pass-a"> - <attribute name="a" type="string" use="optional"/> - <attribute name="b" type="string" use="required"/> - <anyAttribute namespace="##targetNamespace" processContents="skip"/> - </complexType> - - - <!-- Test that in inheritance attributes are checked before wildcards. --> - <complexType name="pass-b-base"> - <attribute name="a" type="string"/> - <anyAttribute namespace="#any" processContents="skip"/> - </complexType> - - <complexType name="pass-b"> - <complexContent> - <extension base="t:pass-b-base"> - <attribute name="b" type="string"/> - <anyAttribute namespace="#any" processContents="skip"/> - </extension> - </complexContent> - </complexType> - - - <!-- Test that in inheritance by restriction required attribute is - checked for even though it is not explicitly mentioned in - derived. --> - <complexType name="pass-c-base"> - <attribute name="a" type="string" use="required"/> - <attribute name="b" type="string" use="optional"/> - </complexType> - - <complexType name="pass-c"> - <complexContent> - <restriction base="t:pass-c-base"> - <attribute name="b" type="string" use="required"/> - </restriction> - </complexContent> - </complexType> - - - <!-- Test detection of missing required attribute. --> - <complexType name="fail-base"> - <attribute name="a" type="string" use="optional"/> - </complexType> - - <complexType name="fail"> - <complexContent> - <restriction base="t:fail-base"> - <attribute name="a" type="string" use="required"/> - </restriction> - </complexContent> - </complexType> - - - <complexType name="type"> - <sequence> - <element name="pass-a" type="t:pass-a"/> - <element name="pass-b" type="t:pass-b"/> - <element name="pass-c" type="t:pass-c"/> - <element name="fail" type="t:fail"/> - </sequence> - </complexType> - - <element name="root" type="t:type"/> - -</schema> |