Current datetime in xslt
777372Sep 23 2011 — edited Oct 1 2011Hi ,
I want to get the current datetime during my xlst tranform. I used the below codes but can not get it .
xslt 1.0
<xsl:stylesheet ...
xmlns:ex="http://exslt.org/dates-and-times" extension-element-prefixes="ex">
...
<xsl:value-of select="ex:date-time()"/> ...
</xsl:stylesheet>
error i got: the function date-time() can not be found.
xlst 2.0
...
<xsl:value-of select="current-dateTime()"/>
..
error i got : the function current-dateTime() can not be found.
Does anyone know how i can solve this problem? Any example or suggestion is welcomed.
Thanks in advance.
Dennis