Or use Java inside your XSL.
See http://www.cafeconleche.org/books/xmljava/chapters/ch17s03.html for
more information.
Kind regards,
Jeroen Reijn
Jasha Joachimsthal wrote:
Hi,
you can use http://www.exslt.org/date/functions/sum/date.sum.html
Please note that date:month-in-year() may behave differently in some
xslt processors (january may be 0 or 1 which results in decvember being
11 or 12 resp).
Jasha Joachimsthal
---------
Hippo
Oosteinde 11
1017 WT Amsterdam
The Netherlands
+31 (0)20 5224466
[EMAIL PROTECTED]
www.hippo.nl
-----Original Message-----
*From:* Sébastien Geindre [mailto:[EMAIL PROTECTED]
*Sent:* maandag 4 december 2006 15:50
*To:* [email protected]
*Subject:* Manipulate date with xsl
hello,
I'd like to add x hours to a date, e.G. :
2006-11-14T16:30:00.000Z + 9h20 = 2006-11-15T01:50:00.000Z
Is there any xslt library for date manipulating ?
Thanx,
Sébastien.
In XML, from
<meta>
<productScale>local</productScale>
<productType>ice</productType>
<issuedTime>2006-11-14T12:05:13.000Z</issuedTime>
<analysisTime>2006-11-14T12:00:00.000Z</analysisTime>
<observationTime/>
<forecastTime>00</forecastTime>
</meta
i'd like to transform into :
<meta>
<productScale>local</productScale>
<productType>ice</productType>
<validityTime> /_*analysisTime +
forecastTime*_=/2006-11-15T01:50:00.000Z/<//<validityTime>>
<analysisTime>2006-11-14T12:00:00.000Z</analysisTime>
<forecastTime>00</forecastTime>
</meta
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]