diff options
Diffstat (limited to 'test/schemas/facet-unionST-err1_0.xsd')
-rw-r--r-- | test/schemas/facet-unionST-err1_0.xsd | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/schemas/facet-unionST-err1_0.xsd b/test/schemas/facet-unionST-err1_0.xsd new file mode 100644 index 0000000..476668b --- /dev/null +++ b/test/schemas/facet-unionST-err1_0.xsd @@ -0,0 +1,27 @@ +<?xml version="1.0"?> +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + targetNamespace="http://FOO" xmlns:foo="http://FOO"> + + <xsd:element name="foo" type="foo:fooType.B"/> + + <xsd:simpleType name="fooType.B"> + <xsd:restriction base="foo:fooType.A"> + <xsd:enumeration value="medium"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:simpleType name="fooType.A"> + <xsd:union> + <xsd:simpleType> + <xsd:restriction base="xsd:NMTOKEN"> + <xsd:enumeration value="small"/> + <xsd:enumeration value="medium"/> + <xsd:enumeration value="large"/> + </xsd:restriction> + </xsd:simpleType> + </xsd:union> + </xsd:simpleType> + + + +</xsd:schema> |