Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.9.1
-
None
Description
Xerces 2.9.1 has a bug in its construction of the XML Schema 1.0 simple type hierarchy [1]. The base type of xs:negativeInteger is assigned to be xs:integer instead of xs:nonPositiveInteger. This bug causes the following instance document to be reported as invalid with respect to the schema (below it):
<root xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xs:negativeInteger">-9</root>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="root" type="xs:nonPositiveInteger"/>
</xs:schema>