RE: [xsl] adding a duration to a date/time

Subject: RE: [xsl] adding a duration to a date/time
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 18 Jun 2004 17:10:00 +0100
In XSLT 2.0 you can add a duration to a date simply by using the "+"
operator.

But as I mentioned, for this you will need an XSLT 2.0 processor. (XML Spy
does have support for XPath 2.0, which also includes these functions, but
not, I believe, in its XSLT processor). 

> -----Original Message-----
> From: Belkin, Alla [mailto:abelkin@xxxxxxxxxxx] 
> Sent: 18 June 2004 16:12
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE: [xsl] adding a duration to a date/time
> 
> 
> What kind of standard functions? I have XMLSpy version5.
> 
> 
> Thank you, 
> 
> Alla Belkin 
> 
> 
> -----Original Message-----
> From: Michael Kay [mailto:mhk@xxxxxxxxx] 
> Sent: Thursday, June 17, 2004 5:18 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE: [xsl] adding a duration to a date/time
> 
> There are standard functions to do this in XSLT 2.0 (implemented in
> Saxon
> 8.0)
> 
> Michael Kay 
> 
> > -----Original Message-----
> > From: Josh Canfield [mailto:Josh.Canfield@xxxxxxxxxxxx] 
> > Sent: 17 June 2004 20:19
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject: RE: [xsl] adding a duration to a date/time
> > 
> > This will be tough to do without an extension function. Look 
> > at the EXSLT date:
> > 
> > http://www.exslt.org/date/functions/add-duration/date.add-dura
> > tion.html
> > 
> > Josh
> > 
> > -----Original Message-----
> > From: Belkin, Alla [mailto:abelkin@xxxxxxxxxxx]
> > Sent: Thursday, June 17, 2004 8:52 AM
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject: [xsl] adding a duration to a date/time
> > 
> > 
> > 
> > Hello,
> > In the stylesheet I have to create an expiration date which 
> will be a
> > specific date in the future (e.g. 2005-01-01) minus 10 days.
> > Could you, please, help me with this?
> > 
> > Thank you, 
> > abelkin 
> >  
> > 
> > 
> > 
> > 
> --+------------------------------------------------------------------
> > 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@xxxxxxxxxxxxxxxxxxxxxx>
> > --+--
> > 
> > 
> > 
> --+------------------------------------------------------------------
> > 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@xxxxxxxxxxxxxxxxxxxxxx>
> > --+--
> > 
> > 
> 
> 
> --+------------------------------------------------------------------
> 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@xxxxxxxxxxxxxxxxxxxxxx>
> --+--
> 
> 
> --+------------------------------------------------------------------
> 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@xxxxxxxxxxxxxxxxxxxxxx>
> --+--
> 
> 


Current Thread