date/time EXSLT functions "not available"

C

Chris

Can someone point me the right way? I'm trying to use the date/time
extensions but with little luck. Here's what I've got:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:date="http://exslt.org/dates-and-times" >

<xsl:template match="/" >
date-time: <xsl:value-of select="date:date-time()"/>
<!-- year: <xsl:value-of select="date:year()"/> -->
</xsl:template>
</xsl:stylesheet>

If I execute this I get:
<?xml version="1.0" encoding="UTF-8"?>
date-time: 2005-09-18T22:05:57-05:00

...which is reasonable. However, if I un-comment the year line I get:
XalanXPathException: The function number
'http://exslt.org/dates-and-times:year' is not available.
(file:///D:/support/xml/date-test.xslt, line 8, column 47)
I can't seem to call any date-time function other than date-time.

Why?

I'm using Xalan-C++ 1.9.

Thanks very much...
Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top