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

date:difference function in xsl

Subject: date:difference function in xsl
From: "Ravi Chayanam" <ravic@xxxxxxxxxx>
Date: Mon, 3 May 2004 16:52:26 -0700
xsl date difference
I am using the date:difference function as found in the following web page
to calculate the date difference between two dates.

http://exslt.org/date/functions/difference/index.html

It works just fine in XMLSpy, and also when I generate the HTML using
xalan.exe (version 1.3).

But, when I deploy the code to an engine which uses Xalan for XSL
transformation, the function ignores the month value in the two dates and
treats them as the same month. As a result, I won't get correct result.

When using XMLSpy and Xalan.exe the following are the results

start:2004-01-01 end:2004-04-27 difference:P116D

start:2004-01-03 end:2004-04-27 difference:P114D

When using the engine the following are the results

start:2004-01-01 end:2004-04-27 difference:P26D

start:2004-01-03 end:2004-04-27 difference:P24D

I am pretty sure that the months are being ignored for some reason by the
function.

Any thoughts on this?. TIA.

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.