Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 47319 invoked from network); 4 Dec 2006 14:53:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Dec 2006 14:53:40 -0000 Received: (qmail 22071 invoked by uid 500); 4 Dec 2006 14:53:45 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 22018 invoked by uid 500); 4 Dec 2006 14:53:44 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 22007 invoked by uid 99); 4 Dec 2006 14:53:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2006 06:53:44 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [213.133.33.40] (HELO smtp.is.nl) (213.133.33.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2006 06:53:32 -0800 Received: from [213.133.51.241] (HELO hai01.hippo.local) by smtp.is.nl (CommuniGate Pro SMTP 5.0.10) with ESMTP id 5598329 for users@cocoon.apache.org; Mon, 04 Dec 2006 15:52:46 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C717B3.D4BAFE94" Subject: RE: Manipulate date with xsl Date: Mon, 4 Dec 2006 15:52:33 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Manipulate date with xsl Thread-Index: AccXs3VeBkLzs7ebRM6gvMr6b04gvwAADBQQ From: "Jasha Joachimsthal" To: X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C717B3.D4BAFE94 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, =20 you can use http://www.exslt.org/date/functions/sum/date.sum.html =20 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). =20 Jasha Joachimsthal=20 ---------=20 Hippo=20 Oosteinde 11=20 1017 WT Amsterdam=20 The Netherlands=20 +31 (0)20 5224466=20 jasha@hippo.nl=20 www.hippo.nl=20 -----Original Message----- From: S=E9bastien 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 =3D 2006-11-15T01:50:00.000Z Is there any xslt library for date manipulating ? Thanx, S=E9bastien. In XML, from local ice 2006-11-14T12:05:13.000Z 2006-11-14T12:00:00.000Z 00 local ice analysisTime + = forecastTime=3D2006-11-15T01:50:00.000Z> 2006-11-14T12:00:00.000Z 00
Hi,
 
you=20 can use http://www= .exslt.org/date/functions/sum/date.sum.html
 
Please = note that=20 date:month-in-year() may behave differently in some xslt processors = (january may=20 be 0 or 1 which results in decvember being 11 or 12 = resp).
 
Jasha Joachimsthal

---------

Hippo
Oosteinde=20 11
1017 WT Amsterdam =
The Netherlands
+31 (0)20=20 5224466

jasha@hippo.nl
www.hippo.nl

-----Original Message-----
From: S=E9bastien = Geindre=20 [mailto:sebastien.geindre@meteo.fr]
Sent: maandag 4 december = 2006=20 15:50
To: users@cocoon.apache.org
Subject: = Manipulate date=20 with xsl

hello,

I'd like to add x hours to = a date,=20 e.G. :
2006-11-14T16:30:00.000Z  + 9h20  =3D=20 2006-11-15T01:50:00.000Z

Is there any xslt library for date=20 manipulating ?

Thanx,
S=E9bastien.

In XML,=20 = 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/>
<foreca= stTime>00</forecastTime>
</meta

i'd=20 like to transform into=20 = :
<meta>
<productScale>local</productScale>
&l= t;productType>ice</productType>
<validityTime>=20 analysisTime +=20 = forecastTime=3D2006-11-15T01:50:00.000Z</<validi= tyTime>>
<analysisTime>2006-11-14T12:00:00.000Z</analys= isTime>
<forecastTime>00</forecastTime>
</meta ------_=_NextPart_001_01C717B3.D4BAFE94--