Hash :
b63d2fab
Author :
Date :
2006-04-19T11:20:49
Fixed incorrect validation of restricted enumerations. Added related * xmlschemas.c test/schemas/restriction-enum-1* result/schemas/restriction-enum-1*: Fixed incorrect validation of restricted enumerations. Added related regression tests.
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:simpleType name="fooType">
<xs:restriction base="xs:string">
<xs:enumeration value="a"/>
<xs:enumeration value="b"/>
<xs:enumeration value="c"/>
<xs:enumeration value="d"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="barType">
<xs:restriction base="fooType">
<xs:enumeration value="a"/>
<xs:enumeration value="b"/>
<xs:enumeration value="d"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="foo" type="barType" />
</xs:schema>