xsl-list
[Top] [All Lists]

RE: [xsl] date calculations

2007-03-24 02:44:47
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(_at_)gbormans(_dot_)telenet(_dot_)be] 
Sent: 24 March 2007 09:03
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] 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)



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--