RE: [xsl] Convert milliseconds into date

Subject: RE: [xsl] Convert milliseconds into date
From: "xslt xslfo" <xslt.techie@xxxxxxxxx>
Date: Thu, 13 Apr 2006 10:18:11 -0500
Hello:

I am using version 1.0. Can you point me to an example to implement
these templates using EXSLT extensions?

Thank you



Michael Kay <mike@xxxxxxxxxxxx> wrote:


    >
    > 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