cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeroen Reijn <j.re...@hippo.nl>
Subject Re: Manipulate date with xsl
Date Mon, 04 Dec 2006 14:58:16 GMT
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
> 
> jasha@hippo.nl
> www.hippo.nl
> 
>     -----Original Message-----
>     *From:* S├ębastien Geindre [mailto:sebastien.geindre@meteo.fr]
>     *Sent:* maandag 4 december 2006 15:50
>     *To:* users@cocoon.apache.org
>     *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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message