Subject:Newbie XPath Question Author:Jerry Janofsky Date:03 Aug 2006 12:31 PM
I am trying to use the XPath function "escape-uri". I keep getting the error 'Function "escape-uri" does not exist (or is invalid XSL). Is this because Stylus Studio is not up to date enough? Is there anything I can do?
Subject:Newbie XPath Question Author:Jerry Janofsky Date:03 Aug 2006 01:55 PM
OK, how do I set it to version 2? In the help I see
"Querying in the Text View of a Sample Document
Stylus Studio provides support for both XPath 1.0 and 2.0. You control the version you want Stylus Studio to use to process your XPath using the v.1 and v.2 buttons in the XML Editor tool bar. The default XPath used is version 1.0. "
The image from the help is not here, but I don't see the buttons it is talking about?
Sorry about these newbie questions.
Jerry
PS. Is that a sailboat you are standing on in your picture?
Subject:Newbie XPath Question Author:(Deleted User) Date:03 Aug 2006 02:10 PM
Hi, Jerry. In Stylus Studio 2003, we introduced the XPath Query Editor. Currently, XPath 2.0 is supported by default, but XPath 1.0 constructs will still be valid. There is no way to explicitly specify the XPath version.
The documentation you are referring to is out of date and will be corrected for the next release. I apologize for any confusion.
The online help should provide more information (press F1 when the focus is within the XPath Query Editor), or you can look here:
Subject:Newbie XPath Question Author:Ivan Pedruzzi Date:03 Aug 2006 05:02 PM
Jerry,
Before adding any additional confusion.
My understanding is that you are:
- working on a XSLT transformation, correct?
- trying to use the escape-uri function in your XSLT, correct?
- you are getting an error when trying to execute, correct?
If the above is true open your XSLT in Stylus Studio, at the begging of the file you should have something like the following
Subject:Newbie XPath Question Author:Jerry Janofsky Date:07 Aug 2006 11:50 AM
Ivan,
Sorry for the delay, but I am still having trouble with escape-uri. I think it must be a problem with Saxon. I am processing with Saxon 8.7.1 in stylus studio.
Here is my input XML:
<?xml version="1.0"?>
<test>
<uri>www.test.com/s p a c e s/</uri>
</test>