Re: EXSLT: Date/time
Florent Georges <[email protected]> Fri, 3 Aug 2007 14:59:24 +0200 (CEST)
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Message-ID | <[email protected]> |
Attila wrote:
> Sorry I fixed the incorrect URI, however I still get a similar error.
> Error console:
> XalanXPathException: The function number '
> http://exslt.org/dates-and-times:date' is not available.
>
(file:///C:/p4/dev/aaros/devmain_aa/SimTools/SimulatorTools/Generate_ConfigDocumentation_TEXT.xsl,
> line 18, column 64)
> 1>Error generating TEXT documentation, return code: 65280
First, the error message is weird (function "number"). The following
stylesheet runs fine with Xalan-J 2.7.0:
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:date="http://exslt.org/dates-and-times">
<xsl:output method="text"/>
<xsl:template match="/">
Date: <xsl:value-of select="date:dat()"/>
</xsl:template>
</xsl:stylesheet>
(drkm)[3] ~/xslt/tests$
xalan -IN exslt-date.xsl -XSL exslt-date.xsl
Date: 2007-08-03+02:00
I'm affraid that will require more work for you to track down a bug
somewhere else in your stylesheet, in your environment, or in your XSLT
processor (you can try the Xalan ML).
Regards,
--drkm
______________________________________________________________________________
Stockage illimité de vos mails avec Yahoo! Mail. Changez aujourd'hui de mail !