Hi
I'm totally new to XSL and I'm trying to get the format-dateTime() function to work...
From the web I found this simple bit of code:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fn="http://www.w3.org/2006/xpath-functions">
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:text>
 It's currently </xsl:text>
<xsl:value-of select="current-dateTime()"/>
<xsl:value-of select="format-dateTime(current-dateTime(),'[h01]:[m01] [P] on [FNn] the [D1o].')"/>
</xsl:template>
</xsl:stylesheet>
which should, given any XML, print out the date and time. But if I run it in XMLSpy I get "Unknown XPath function"
When I run this in [
w3schools.com...]
it seems to just ignore the 2 date functions and just prints out "It's currently"
I'm sure I'm doing something stupid - can anyone assist?
Andy