xsl-list
[Top] [All Lists]

RE: [xsl] Convert milliseconds into date

2006-04-13 09:26:26
I used the following expression that I read in one of the archives:

<xsl:value-of select="xs:dateTime('1970-01-01T00:00:00') + $in *
xs:dayTimeDuration('PT0.001S')"/>

The name space used is xmlns:xdt="http://www.w3.org/2005/xpath-datatypes";

The result I get is NaN.

Saxon (both 6.5.5 and 8.7.1) support the "core" EXSLT date functions
but not
the "other" (non-core) functions listed at
http://www.exslt.org/date/index.html. The core functions don't include
any
date arithmetic.

I suggest you use Saxon 8.7.1 and use the XPath 2.0 date arithmetic
functions and operators as the simplest solution to your problem.

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

-----Original Message-----
From: xslt xslfo [mailto:xslt(_dot_)techie(_at_)gmail(_dot_)com]
Sent: 13 April 2006 16:42
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Convert milliseconds into date

Hello:

RenderX is used for the processing. It uses SAXON as the xslt engine.
I have searched high and dry for a solution to this. I would
appreciate if you could point me in the right direction for a
solution.

Jon Gorman <jonathan(_dot_)gorman(_at_)gmail(_dot_)com> wrote:

    On 4/13/06, xslt xslfo wrote:
    > Hello:
    >
    > I am using version 1.0.

    You need to know the processor. You're just stating the version
of
    the stylesheet. That's like responding to someone asking
what browser
    you use and you say "HTML 4.01". You need to look for
examples with
    the processor you're running (xsltproc, saxon, xalan...

    Can you point me to an example to implement
    > these templates using EXSLT extensions?

    Not without knowing the processor.

    Interesting gmail addy.


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

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