The SAXPath parser does not handle XPath expressions
consisting of a function call with a namespace prefix in
the function name. Without the namespace prefix there
is no problem, but according to the XPath
recommendation (http://www.w3.org/TR/xpath#NT-
FunctionName) a function name is any QName (except
a NodeType).
The following test program demonstrates this parsing
bug:
org.saxpath.XPathReader r =
XPathReaderFactory.createReader();
r.parse("foo:bar()");
where the valid XPath expression "foo:bar()" causes the
following exception to be thrown:
com.werken.saxpath.XPathSyntaxException: 8:
Unexpected '('
at
com.werken.saxpath.XPathReader.throwSyntaxExceptio
n(XPathReader.java:1077)
at
com.werken.saxpath.XPathReader.throwUnexpected
(XPathReader.java:1096)
at com.werken.saxpath.XPathReader.parse
(XPathReader.java:111)
Regards,
Knut Wannheden
Logged In: YES
user_id=1191265
Hi,
This is bug is blocking me in moving further in my program's
XPath evaluation support. If this is not fixed, I would have
to parse the expression manually, in order to support
functions with namespaces in the XPath expression.
Is there some priority on this one?
If there isn't any body, I might be able to fix this.
Thanks,
Van.