RE: [xsl] Convert milliseconds into date

Subject: RE: [xsl] Convert milliseconds into date
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 12 Apr 2006 21:59:34 +0100
> Thank you for your response. I read thru some archive and tried
> implementing this:
> date:add('1970-01-01T00:00:00Z',
>            date:duration($milliseconds div 1000))
> 
> I used the exslt namespace and imported date.xsl into my stylesheet.
> Am I missing something here?

There are two ways EXSLT functionality can be provided: as extension
functions or as named templates. You have imported the templates and then
tried to call the extension functions.

Check whether the extension functions are available for your chosen XSLT
processor; if not, use the templates (which you invoke using
xsl:call-template)

Michael Kay
http://www.saxonica.com/

Current Thread