GNOME Bugzilla – Bug 157592
date:{day-of-|}week-in-month buggy
Last modified: 2009-08-15 18:40:50 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.
Created attachment 33522 [details] testcase
Created attachment 33523 [details] [review] Patch Courtesy of "Sal Paradise" <m2kyj0402@sneakemail.com>
Excellent find, analysis and correction! Patch applied to CVS, and also expected test output fixed. Thanks for the report.
This should be closed by release of libxslt-1.1.15 thanks, Daniel