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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Date expressions in XSLT 1.0, Adrien Lazzaro | Thread | [xsl] XSL-FO footer contd. sign app, Praful Asher |
RE: [xsl] How do I get a SUM of the, Michael Kay | Date | RE: [xsl] simple algebra on attribu, Andrew Welch |
Month |