#886 gYear and gYearMonth handle year -1 incorrectly

v9.1
closed
Michael Kay
5
2012-10-08
2008-10-22
Michael Kay
No

For the two primitive types xs:gYear and xs:gYearMonth, if the value is input with the year as -0001, then it is displayed on output as 0000. Year numbers of -0002 and earlier are displayed correctly. (Note that 0000 is not accepted as a valid year, and -0001 means the year before year +0001. This is changing in XML Schema 1.1, and will probably change in some future Saxon release as well.)

A patch (to classes GYearValue and GYearMonthValue) will be placed in Subversion for the 9.1 and 9.0 branches.

Discussion

  • Michael Kay
    Michael Kay
    2008-12-17

    Fixed in 9.1.0.5