XPATH functions

Hi All,

What's the deal with the XPath functions? I have used some of them like position(), last(), current() with no problem at all, I did not declare the namespace and I did not prefix it with fn:. Now I have tried to use current-dateTime() and it returns that is not a valid XSLT or XPath function. So I included the namspace xmlns:fn="http://www.w3.org/2005/04/xpath-functions", and it returns that there are no functions specified at the URI. I am transforming my XML document with Internet Explorer v6.

Any help is appreciated
Thanks
Byron
[578 byte] By [Bnt] at [2007-11-19 11:49:24]
# 1 Re: XPATH functions
Indeed there is no such function in XPath 1.0 which is probably what you are using. The namespace you refer to is ofcourse part of XPath 2.0.

You can get the complete list of XPath 1.0 functions here http://www.w3.org/TR/xpath#corelib
khp at 2007-11-10 3:27:25 >
# 2 Re: XPATH functions
Thanks again khp for your help.

One more question though, is it possible for me to specify that I would like to use version 2? What determines the version is it the xslt engine?

Byron
Bnt at 2007-11-10 3:28:25 >
# 3 Re: XPATH functions
One more question though, is it possible for me to specify that I would like to use version 2?

Not when running XSL transformations.

What determines the version is it the xslt engine?

Yes, XSL 1.0 goes with XPath 1.0. While XSL 2.0 goes with XPath 2.0.
Of course XSL 2.0 is still relativly new, so finding finding applications that support it, is a little difficult
khp at 2007-11-10 3:29:24 >
# 4 Re: XPATH functions
Ok,

Thanks again for all your help.

Byron
Bnt at 2007-11-10 3:30:23 >