It seems, there's not a function datetime:date-time(arg) in EXSLT. I'm
just curious, what do you want this function to do with the argument?

ref, http://exslt.org/date/functions/date-time/index.html

but there's a function:
datetime:date-time() which returns the current date & time

On Mon, Jun 7, 2010 at 9:54 PM, L Duperval <duper...@videotron.com> wrote:
> Hi,
>
> I am trying to use some date and time functions in my XSL but when I do, I get
> this error:
>
> For extension function, could not find method
> org.apache.xalan.lib.ExsltDatetime.dateTime([ExpressionContext,] #NODESET).
>
> My XSL declaration looks like this:
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>  xmlns:redirect="http://xml.apache.org/xalan/redirect";
>  xmlns:datetime="http://exslt.org/dates-and-times";
>  extension-element-prefixes="redirect datetime" version="1.0">
>
> and my usage like this:
>
> <xsl:template match="DATAFILE">
>  <xsl:variable name="nextUpdate">
>    <xsl:value-of select="datetime:date-time(@GENTIME)" />
>  </xsl:variable>
>  <NextUpdate>
>    <xsl:value-of select="nextUpdate" />
>  </NextUpdate>
> </xsl:template>
>
> What am I doing wrong?
>
> Thanks,
>
> L



-- 
Regards,
Mukul Gandhi

Reply via email to