[relaxng-user] date datatype, w3c, java, aargh

George Cristian Bina george at oxygenxml.com
Tue Jan 18 01:49:10 ICT 2005


Hi Sebastian,

We run into this problem last Friday and I traced it down.
The implementation the the GregorianCalendar class was changed in Java 
1.5. Deep down Jing gets an IllegalArgumentException with the message 
HOUR_OF_DAY (or something like that) in the GregorianCalendar class and 
that causes the date datatype not to work.
The best thing is to stay with Java 1.4 for now. As soon as I will get 
in the office I can send more details about the exact part of the code 
that has this problem if that helps.

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Sebastian Rahtz wrote:
> I've got an element called <death> with an attribute "value" containing 
> the date  or time
> of death. "value" is defined as follows:
> 
> tei.temporalExpr.attributes.value.content =
>      xsd:date
>      | xsd:gYear
>      | xsd:gMonth
>      | xsd:gDay
>      | xsd:gYearMonth
>      | xsd:gMonthDay
>      | xsd:time
>      | xsd:dateTime
> 
> allowing for all sorts of variants.
> 
> Sometimes, this works. But sometimes I get irrational errors
> when using Jing. For example, it tells me that the value
> here
>     <death value="1967-09-28">
> is bad.
> 
> How to pin this down? Well, I observe that I get the error when I use 
> the Java 1.5 JRE,
> but not when I use the Java 1.4.
> 
> I am scrabbling around here. Does anyone have any clues where I can 
> follow this up?
> Where does Jing get its datatype library from? deep in Java somewhere?
> 


More information about the relaxng-user mailing list