Re: [exslt] RE: another error in date:difference template ...
Jeni Tennison <[email protected]>
| Newsgroups | gmane.text.xml.xsl.general.mulberrytech,gmane.text.xml.xslt.extensions |
|---|---|
| Organization | Jeni Tennison Consulting Ltd |
| Message-ID | <[email protected]> |
Hi Tom, Harry, > I modified the date:difference template to get the test harness to > pass. Thanks for your patch. An alternative fix is to modify how $start-days and $end-days are calculated. Line 139 was: <xsl:when test="$start-leap"> and should be: <xsl:when test="$start-leap and $start-month > 2"> Line 160 was: <xsl:when test="$end-leap"> and should be: <xsl:when test="$end-leap and $end-month > 2"> Making those changes gives the right results for all the test cases. I'll upload the fix to the EXSLT site as soon as I'm able (it's not accepting my password at the moment...). Thanks for pointing out the error and working on fixes yourselves. Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/