 |
 |
 |
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.
|
 | 

|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |