Subject: RE: [xsl] Convert milliseconds into date From: "xslt xslfo" <xslt.techie@xxxxxxxxx> Date: Thu, 13 Apr 2006 11:26:11 -0500 |
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.techie@xxxxxxxxx] > Sent: 13 April 2006 16:42 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > 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.gorman@xxxxxxxxx> 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.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Convert milliseconds into, Michael Kay | Thread | RE: [xsl] Convert milliseconds into, Michael Kay |
Re: [xsl] Attributes and Axis, Wendell Piez | Date | Re: [xsl] cross references in xslt, Wendell Piez |
Month |