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
