This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: date calculation from Excel 1900 Format
- To: Xiaocun Xu <xiaocunxu at yahoo dot com>
- Subject: Re: [xsl] date calculation from Excel 1900 Format
- From: Jeni Tennison <mail at jenitennison dot com>
- Date: Tue, 12 Jun 2001 17:17:04 +0100
- CC: xsl-list at lists dot mulberrytech dot com
- Organization: Jeni Tennison Consulting Ltd
- References: <000801c0f342$13afe6e0$0100007f@PCUKMKA>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi Xiaocun,
The date:add and date:duration functions have both been implemented as
templates in pure XSLT 1.0, and as extension functions using
func:function from EXSLT - Functions. As Mike said, if you use Saxon
6.3 then you can use either.
I recommend that you download the zips for the function packages from:
http://www.exslt.org/date/functions/add/date.add.zip
http://www.exslt.org/date/functions/duration/date.duration.zip
You can read about how to use these function packages at:
http://www.exslt.org/howto.html#function-level
The how to guide is included in the zips, as is the function
documentation. I'm afraid that there aren't any good examples of how
to use the functions as yet - perhaps you can give us some! :)
If you're only interested in the func:function definitions, then
you can download the implementations from:
http://www.exslt.org/date/functions/add/date.add.function.xsl
http://www.exslt.org/date/functions/duration/date.duration.function.xsl
and just import them into your stylesheet.
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list