View Full Version : current-dateTime() not working
javaguy1007
04-28-2009, 05:57 PM
Hi frnds
I am using current-dateTime() to get current date. I got the following error
Error checking type of the expression 'funcall(current-dateTime, [])'.'
I am using
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:datetime="http://exslt.org/dates-and-times"
xmlns:java="java" exclude-result-prefixes="lookup java">
Am I using wrong version of xsl.
Please help me
Thanks
Javaguy
oesxyl
04-28-2009, 06:10 PM
Hi frnds
I am using current-dateTime() to get current date. I got the following error
Error checking type of the expression 'funcall(current-dateTime, [])'.'
I am using
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:datetime="http://exslt.org/dates-and-times"
xmlns:java="java" exclude-result-prefixes="lookup java">
Am I using wrong version of xsl.
Please help me
Thanks
Javaguy
there is no current-date-time function, where did you get it?
there is a date-time() function:
http://exslt.org/date/functions/date-time/index.html
best regards
javaguy1007
04-30-2009, 03:53 AM
there is no current-date-time function, where did you get it?
there is a date-time() function:
http://exslt.org/date/functions/date-time/index.html
best regards
Hi
I found in w3schools
fn:current-dateTime() Returns the current dateTime (with timezone)
http://www.w3schools.com/Xpath/xpath_functions.asp
oesxyl
04-30-2009, 04:16 AM
Hi
I found in w3schools
fn:current-dateTime() Returns the current dateTime (with timezone)
http://www.w3schools.com/Xpath/xpath_functions.asp
is a xpath not exlt function:
http://www.w3.org/TR/xpath-functions/#namespace-prefixes
http://www.w3.org/TR/xpath-functions/#func-current-dateTime
but don't work for me too.
use one of this:
http://exslt.org/date/index.html
best regards
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.