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 bu...@apache.org on 2003/03/27 22:32:09 UTC
DO NOT REPLY [Bug 18428] New: -
dateTime datatype
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18428>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18428
dateTime datatype
Summary: dateTime datatype
Product: Xerces2-J
Version: 2.3.0
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: XML Schema datatypes
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: nmehrega@ca.ibm.com
CC: nddelima@ca.ibm.com
Xerces-J complains when a dateTime element is assigned a time of 24:00:00
Consider the following schema code:
<element name="testElement">
<complexType>
<sequence>
<element name="elem" type="dateTime"/>
</sequence>
</complexType>
</element>
The instance document contains the following line:
<elem>2000-12-30T24:00:00</elem>
Xerces-J produces the following error:
"cvc-datatype-valid.1.2.1: '2000-12-30T24:00:00' is not a valid 'dateTime' value."
This error is caused because the time is set to 24:00:00, but according to E2-41
(under 3.2.7.1) 24:00:00 is permitted in the lexical space of dateTime, but it's
not permitted in its value space. This section of the errata appears below:
"'24' is permitted if the minutes and seconds represented are zero, and the
dateTime value so represented is the first instant of the following day (the
hour property of a dateTime object in the �value space� cannot have a value
greater than 23)"
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org