Hi, I want to find the difference between 2 dates in cocoon 2.1.8. I have the following pseudo code
<xsl:variable name="current-date" as="xs:date">2006-10-23</xsl:variable> <xsl:variable name="compare-date" as="xs:date">2006-10-12</xsl:variable> <xsl:variable name="diff" select="xs:integer(fn:days-from-duration($current-date - $compare-date))"/> where "fn" is defined as xmlns:fn="http://www.w3.org/2005/02/xpath-functions" and "xs is defined as xmlns:xs="http://www.w3.org/2001/XMLSchema". If I run the same with saxon then, I get the correct difference, but the same doesnot work inside cocoon. Is there any way that I can get this working. Do suggest me if there is any other way, apart from the xpath-functions() that I can use Thanks, Sanket --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]