Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Mar 2009
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts

    current-dateTime() not working

    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
    Code:
    <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

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by javaguy1007 View Post
    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
    Code:
    <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

  • #3
    New Coder
    Join Date
    Mar 2009
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by oesxyl View Post
    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

  • #4
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by javaguy1007 View Post
    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...space-prefixes
    http://www.w3.org/TR/xpath-functions...rrent-dateTime

    but don't work for me too.
    use one of this:

    http://exslt.org/date/index.html

    best regards


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •