Subject: [xsl] date:difference function in xsl From: "Ravi Chayanam" <ravic@xxxxxxxxxx> Date: Mon, 3 May 2004 16:52:26 -0700 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Custom function and Saxon, adrien . dauchez | Thread | Re: [xsl] table creation with eleme, Fantuzzi Alessandro |
[xsl] Custom function and Saxon, adrien . dauchez | Date | RE: [xsl] tail recursion and NaN, Jarno.Elovirta |
Month |