Subject: RE: date calculations
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 24 Mar 2007 09:44:21 -0000
|
If you had a schema that defined the data types of your elements, it would
be even simpler:
StartTime + Duration
Michael Kay
http://www.saxonica.com/
> -----Original Message-----
> From: Geert Bormans [mailto:geert@xxxxxxxxxxxxxxxxxxx]
> Sent: 24 March 2007 09:03
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: date calculations
>
> So it is that simple...( makes me feel a bit stupid now :-)
> It works great, thanks for your help
>
> cheers
> geert
>
>
> >You can use:
> >xs:dateTime(StartTime) + xs:dayTimeDuration(Duration)
> >
> >Where prefix "xs" is bound to URI: http://www.w3.org/2001/XMLSchema
> >
> >(This works with Saxon 8.9J)
|