RE: [xsl] Date expressions in XSLT 1.0

Subject: RE: [xsl] Date expressions in XSLT 1.0
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 27 May 2005 10:25:37 +0100
> Is there anyway to do simple date calculations?

You've pretty-well identified the two possibilities already: move to XSLT
2.0, or use the EXSLT library. (Note that many of the EXSLT routines have
portable implementations written in pure XSLT).
> 
> For example: Get tomorrow's date by adding 1 to today's date
> <xsl:comment>Ideal solution</xsl:comment>
> <xsl:variable name="today" select="05/26/2005" />
> <xsl:value-of select="$today + 1" /
> 

Whatever solution you adopt, processing dates will be much easier if you
store them in the international YYYY-MM-DD format.

Michael Kay
http://www.saxonica.com/

Current Thread