xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] date calculations


Subject: RE: [xsl] 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: [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)


Current Thread
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor