Using EXSLT dates-and-times module in XSLT 1.0 yields unknown error

Posted by danielle on Stack Overflow See other posts from Stack Overflow or by danielle
Published on 2010-05-22T19:11:36Z Indexed on 2010/05/22 19:21 UTC
Read the original article Hit count: 308

Filed under:
|
|
|

I added the EXSLT dates-and-times module in my XSLT 1.0 file by declaring:

    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" ... xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date">

This doesn't affect my resulting page, but when I try to call the actual date with:

<xsl:value-of select="date:date-time()"/>

I receive an "Error loading stylesheet: An unknown error has occurred ()" message when loading my page. Does anyone have a suggestion as to what I might be missing? Thanks in advance!

© Stack Overflow or respective owner

Related posts about datetime

Related posts about xslt