You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org> on 2009/11/22 19:23:39 UTC
[jira] Updated: (XERCESJ-1321) Base type of xs:negativeInteger is
reported as xs:integer instead of xs:nonPositiveInteger.
[ https://issues.apache.org/jira/browse/XERCESJ-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Glavassevich updated XERCESJ-1321:
------------------------------------------
Fix Version/s: 2.10.0
> 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
> Assignee: Michael Glavassevich
> Priority: Minor
> Fix For: 2.10.0
>
>
> 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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org