[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: [exslt] RE: another error in date:difference templ

Subject: Re: [exslt] RE: another error in date:difference template ...
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Fri, 9 Jul 2004 22:03:43 +0100
xsl date difference
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/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.