Hi,
I'm observing different output/behaviour on Solaris 32 and 64 bit platforms
as well as AIX 64 bit platforms as compared to RedHat Linux and HP when
running two of the exslt tests.
The two tests are add.1.xsl, add.1.xml and datetime.1.xsl with datetime.1.xml,
in the tests/exslt/date directory.
The correct output on these platforms was occuring on the libxslt-1.0.23
release, but as of libxslt-1.0.25 it is incorrect. I think libxslt-1.0.24 is
incorrect as well, but I don't have that version around at the moment to
confirm.
Has anyone else observed this behaviour?
Here is the output from running add.1.xsl and add.1.xml on redhat using
version 1.0.25:
xsltproc add.1.xsl add.1.xml
add : 2000-01-01T01:01:00Z + PT0S
result : 2000-01-01T01:01:00Z
add : 2000-01-01T01:01:00Z + PT60S
result : 2000-01-01T01:02:00Z
add : 2000-01-01T01:01:00Z + PT59S
result : 2000-01-01T01:01:59Z
add : 2000-01-01 + PT86400S
result : 2000-01-02
add : 2000-02-29 + PT86400S
result : 2000-03-01
add : 2000-01-01 + -PT86400S
result : 1999-12-31
add : -0001-12-31T23:59:59 + PT1S
result : 0001-01-01T00:00:00Z
add : 0001-01-01T00:00:00 + -PT1S
result : -0001-12-31T23:59:59Z
add : 2000-01-01T00:00:00Z + -PT59S
result : 1999-12-31T23:59:01Z
add : -0001 + -PT59S
result : -0002-12-31T23:59:01Z
add : -0001 + P1Y
result : 0001
add : 2000-01 + -PT86400S
result : 1999-12-31
add : 2000-01 + -P1D
result : 1999-12-31
add : 1970-01-01T00:00:00-00:30 + -PT30S
result : 1969-12-31T23:29:30Z
Here is the output from running add.1.xsl and add.1.xml on Solaris 32 bit
(Solaris 7) using version 1.0.25:
add : 2000-01-01T01:01:00Z + PT0S
result : 2000-01-01T01:01:00Z
add : 2000-01-01T01:01:00Z + PT60S
result : 2000-01-01T01:02:00Z
add : 2000-01-01T01:01:00Z + PT59S
result : 2000-01-01T01:01:59Z
add : 2000-01-01 + PT86400S
result : 2000-01-02
add : 2000-02-29 + PT86400S
result : 2000-03-01
add : 2000-01-01 + -PT86400S
result : 1999-12-31
add : -0001-12-31T23:59:59 + PT1S
result : 0001-01-01T00:00:00Z
add : 0001-01-01T00:00:00 + -PT1S
result : -0001-12-31T23:59:59Z
add : 2000-01-01T00:00:00Z + -PT59S
result : 1999-12-31T23:59:01Z
add : -0001 + -PT59S
result : -0002-12-31T23:59:01Z
add : -0001 + P1Y
result : 0001
add : 2000-01 + -PT86400S
result : 1999-12-31
add : 2000-01 + -P1D
result : 1999-12-31
add : 1970-01-01T00:00:00-00:30 + -PT30S
result :
Notice the last line is blank.
The other files datetime.1.xsl and datetime.1.xml produce this result
on redhat using version 1.0.25:
Test Date : 2001-02-28T10:31:07
year : 2001
leap-year : false
month-in-year : 2
month-name : February
month-abbreviation : Feb
week-in-year : 9
day-in-year : 59
day-in-month : 28
day-of-week-in-month : 5
day-in-week : 4
day-name : Wednesday
day-abbreviation : Wed
time : 10:31:07
hour-in-day : 10
minute-in-hour : 31
second-in-minute : 7
Test Date : 0001-12-31T23:59:59.1234-05:00
year : 1
leap-year : false
month-in-year : 12
month-name : December
month-abbreviation : Dec
week-in-year : 53
day-in-year : 365
day-in-month : 31
day-of-week-in-month : 5
day-in-week : 2
day-name : Monday
day-abbreviation : Mon
time : 23:59:59.1234-05:00
hour-in-day : 23
minute-in-hour : 59
second-in-minute : 59.1234
Test Date : -0001-12-31T23:59:59-05:00
year : -1
leap-year : false
month-in-year : 12
month-name : December
month-abbreviation : Dec
week-in-year : 52
day-in-year : 365
day-in-month : 31
day-of-week-in-month : 5
day-in-week : 1
day-name : Sunday
day-abbreviation : Sun
time : 23:59:59-05:00
hour-in-day : 23
minute-in-hour : 59
second-in-minute : 59
Test Date : 10000-12-31T23:59:59.9901Z
year : 10000
leap-year : true
month-in-year : 12
month-name : December
month-abbreviation : Dec
week-in-year : 52
day-in-year : 366
day-in-month : 31
day-of-week-in-month : 5
day-in-week : 1
day-name : Sunday
day-abbreviation : Sun
time : 23:59:59.9901Z
hour-in-day : 23
minute-in-hour : 59
second-in-minute : 59.9901
Test Date : -10000-12-31T23:59:59Z
year : -10000
leap-year : true
month-in-year : 12
month-name : December
month-abbreviation : Dec
week-in-year : 53
day-in-year : 366
day-in-month : 31
day-of-week-in-month : 5
day-in-week : 4
day-name : Wednesday
day-abbreviation : Wed
time : 23:59:59Z
hour-in-day : 23
minute-in-hour : 59
second-in-minute : 59
Running the datetime files on Solaris using 1.0.25:
Test Date : 2001-02-28T10:31:07
year : 2001
leap-year : false
month-in-year : 2
month-name : February
month-abbreviation : Feb
week-in-year : 9
day-in-year : 59
day-in-month : 28
day-of-week-in-month : 5
day-in-week : 4
day-name : Wednesday
day-abbreviation : Wed
time : 10:31:07
hour-in-day : 10
minute-in-hour : 31
second-in-minute : 7
Test Date : 0001-12-31T23:59:59.1234-05:00
year : NaN
leap-year : NaN
month-in-year : NaN
month-name :
month-abbreviation :
week-in-year : NaN
day-in-year : NaN
day-in-month : NaN
day-of-week-in-month : NaN
day-in-week : NaN
day-name :
day-abbreviation :
time :
hour-in-day : NaN
minute-in-hour : NaN
second-in-minute : NaN
Test Date : -0001-12-31T23:59:59-05:00
year : NaN
leap-year : NaN
month-in-year : NaN
month-name :
month-abbreviation :
week-in-year : NaN
day-in-year : NaN
day-in-month : NaN
day-of-week-in-month : NaN
day-in-week : NaN
day-name :
day-abbreviation :
time :
hour-in-day : NaN
minute-in-hour : NaN
second-in-minute : NaN
Test Date : 10000-12-31T23:59:59.9901Z
year : 10000
leap-year : true
month-in-year : 12
month-name : December
month-abbreviation : Dec
week-in-year : 52
day-in-year : 366
day-in-month : 31
day-of-week-in-month : 5
day-in-week : 1
day-name : Sunday
day-abbreviation : Sun
time : 23:59:59.9901Z
hour-in-day : 23
minute-in-hour : 59
second-in-minute : 59.9901
Test Date : -10000-12-31T23:59:59Z
year : -10000
leap-year : true
month-in-year : 12
month-name : December
month-abbreviation : Dec
week-in-year : 53
day-in-year : 366
day-in-month : 31
day-of-week-in-month : 5
day-in-week : 4
day-name : Wednesday
day-abbreviation : Wed
time : 23:59:59Z
hour-in-day : 23
minute-in-hour : 59
second-in-minute : 59
Thanks,
Susan Cline