After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 343440 - EXSLT date:week-in-year reports incorrect ISO8601 week
EXSLT date:week-in-year reports incorrect ISO8601 week
Status: RESOLVED FIXED
Product: libxslt
Classification: Platform
Component: general
1.1.x
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2006-05-30 20:59 UTC by Kevin James
Modified: 2007-01-11 21:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kevin James 2006-05-30 20:59:56 UTC
Please describe the problem:
The number reurned is one less than the actual ISO8601 numbered week

Steps to reproduce:
1. create basic xsl stylesheet with these lines in the stylesheet element
    xmlns:date="http://exslt.org/dates-and-times"
        extension-element-prefixes="date"
2. create xsl:template for "/" element
3. add <xsl:value-of select="date:week-in-year('2006-01-16'))" />
4. close xsl:template
5. attempt to parse any well-formed xml-document
6. This occured while using PHP 5 and the XSL extension (core)

Actual results:
The week is printed as 2 instead of 3

Expected results:
The week should be printed as 3

Does this happen every time?
Yes

Other information:
Should be simple to correct
Comment 1 William M. Brack 2007-01-11 21:16:30 UTC
I believe this was fixed toward the end of 2005 after a posting to the mailing list by Thomas Broyer.  In any event, it works correctly with current releases.