[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Date expressions in XSLT 1.0
> 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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|