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 157592 - date:{day-of-|}week-in-month buggy
date:{day-of-|}week-in-month buggy
Status: VERIFIED FIXED
Product: libxslt
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2004-11-07 15:39 UTC by Mike Hommey
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
testcase (546 bytes, text/x-xslt)
2004-11-07 15:39 UTC, Mike Hommey
  Details
Patch (546 bytes, patch)
2004-11-07 15:40 UTC, Mike Hommey
none Details | Review

Description Mike Hommey 2004-11-07 15:39:01 UTC
[ These issues have been reported on
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=279924 and
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=279926 ]

The EXSLT functions date:day-of-week-in-month() and date:week-in-month() produce
bad values on some inputs. By applying the attached stylesheet to any XML document
(the XML input is ignored) using xsltproc, you get the output:
2
2
while it should be:
1
1

See http://www.exslt.org/date/functions/week-in-month/index.html and
http://www.exslt.org/date/functions/day-of-week-in-month/index.html as to why.
Comment 1 Mike Hommey 2004-11-07 15:39:33 UTC
Created attachment 33522 [details]
testcase
Comment 2 Mike Hommey 2004-11-07 15:40:25 UTC
Created attachment 33523 [details] [review]
Patch

Courtesy of "Sal Paradise" <m2kyj0402@sneakemail.com>
Comment 3 William M. Brack 2004-11-08 03:46:47 UTC
Excellent find, analysis and correction!  Patch applied to CVS, and also 
expected test output fixed.  Thanks for the report.
Comment 4 Daniel Veillard 2005-09-05 09:43:51 UTC
This should be closed by release of libxslt-1.1.15

  thanks,

Daniel