mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-31 13:47:30 +03:00
bd6c3f7df8
* xmlschemas.c: Fixed facet errors to be channelled back for union type members; facet-validation will stop now on the first error. Reported by GUY Fabrice to the mailing-list. * xmlschemastypes.c: Changed to ignore lengh-related facet validation for QNames and NOTATIONs as proposed by the schema people. * test/schemas/union2* result/schemas/union2*: Added regression tests for union types (by GUY Fabrice).
21 lines
694 B
XML
21 lines
694 B
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:test:foo">
|
|
<xsd:element name="ELEMENTS">
|
|
<xsd:simpleType>
|
|
<xsd:union>
|
|
<xsd:simpleType>
|
|
<xsd:restriction base="xsd:int">
|
|
<xsd:minInclusive value="10"/>
|
|
<xsd:maxInclusive value="20"/>
|
|
</xsd:restriction>
|
|
</xsd:simpleType>
|
|
<xsd:simpleType>
|
|
<xsd:restriction base="xsd:int">
|
|
<xsd:minInclusive value="30"/>
|
|
<xsd:maxInclusive value="40"/>
|
|
</xsd:restriction>
|
|
</xsd:simpleType>
|
|
</xsd:union>
|
|
</xsd:simpleType>
|
|
</xsd:element>
|
|
</xsd:schema> |