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/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--