This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: date calculation from Excel 1900 Format


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]