xsl-list
[Top] [All Lists]

RE: [xsl] Convert milliseconds into date

2006-04-13 09:44:37
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.

I think this is what you would get if

(a) the stylesheet specifies version="1.0"

and

(b) the value of $in is untypedAtomic.

Since you haven't shown us the xsl:stylesheet element or the declaration of
$in, this is just a hypothesis.

Michael Kay
http://www.saxonica.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>
--~--