2009-03-23 03:22:17 UTC
What is the best way of using formate-date?
I tried several alternatives, but had no success:
1.) <xsl:value-of select="xsl:format-date(bll:date,'YYYY-MM-DD')"/>
Error: Cannot find a matching 2-argument function named {http://www.w3.org/1999/XSL/Transform}format-date()
2.) <xsl:value-of select="format-date(bll:date,'YYYY-MM-DD')"/>
no error message, but instead of getting some date value, I get the picture string YYYY-MM-DD
3.) <xsl:value-of select="fn:format-date(bll:date,'YYYY-MM-DD')"/>
same result as 2.
4.) <xsl:value-of select="date:format-date(bll:date,'yyyy-MM-dd')"/> with the appropriate namespaces xmlns:date="
http://exslt.org/dates-and-times" extension-element-prefixes="date" defined in the xsl:stylesheet headline.
Error: Cannot find a matching 2-argument function named {http://exslt.org/dates-and-times}format-date()
I got to use saxon 8.7 because I can not find a maven repository containing a newer version.
What did I miss?
Rolf