compare of XML Schema datatypes (Xerces/JAXP)
---------------------------------------------
Key: XERCESJ-1082
URL: http://issues.apache.org/jira/browse/XERCESJ-1082
Project: Xerces2-J
Type: Bug
Components: XML Schema datatypes
Versions: 2.6.2
Reporter: Elena Litani
According to schema one should compare types that are in the same value space,
therefore for example dateTime should not be comparable to date.
However, looking at the latest Xerces code, in particular
XMLGregorianCalendarImpl and AbstractDateTimeDV (compareDates method), I did
not see any check for actual type of schema datatypes being compared. This
means that in some cases, for example, dateTime and time values could compare
equal even though these should be "indeterminate". Sandy Gao noticed that same
happens for String/anyURI comparison as well.
There are could be other types affected.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]