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(_at_)Carlson(_dot_)com]
Sent: 18 June 2004 16:12
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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(_at_)mhk(_dot_)me(_dot_)uk]
Sent: Thursday, June 17, 2004 5:18 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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(_dot_)Canfield(_at_)plumtree(_dot_)com]
Sent: 17 June 2004 20:19
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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(_at_)Carlson(_dot_)com]
Sent: Thursday, June 17, 2004 8:52 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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(_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>
--+--
--+------------------------------------------------------------------
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>
--+--