Date Difference month change incorrect using xsl transform object .NET framework

"David Smith" <[email protected]>
Newsgroups gmane.text.xml.xslt.extensions
Organization Comtel Resources
Message-ID <[email protected]>
When using xslt date.difference.template.xsl on anything except .NET
Framework 1.0 it works perfectly.

 

<xsl:call-template name="date:difference">

<xsl:with-param name="start" select="$StartDate"/>

<xsl:with-param name="end" select="$EndDate"/>

</xsl:call-template>

Where $StartDate = 004-09-10T00:00:00 and $EndDate = 2004-10-04T00:00:00

Result is P25D

Using EXACTLY the same code but using xsl transform object in .NET Framework
the result is:

P-5D

 

In other words, date.difference (or what the transform object is doing to
it) is ignoring the month change.

Has anyone else encountered this problem and hopefully discovered a
solution?

Regards

David Smith

email: [email protected]

Web: www.ComTelRes.com

_______________________________________________
exslt mailing list
[email protected]
http://www.exslt.org/list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.