Base type of xs:negativeInteger is reported as xs:integer instead of
xs:nonPositiveInteger.
-------------------------------------------------------------------------------------------
Key: XERCESJ-1321
URL: https://issues.apache.org/jira/browse/XERCESJ-1321
Project: Xerces2-J
Issue Type: Bug
Components: XML Schema 1.0 Datatypes
Affects Versions: 2.9.1
Reporter: Michael Glavassevich
Priority: Minor
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>
[1] http://www.w3.org/TR/xmlschema-2/#built-in-datatypes
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]