You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by le...@apache.org on 2003/05/16 17:18:29 UTC
cvs commit: avalon-excalibur/xmlutil/src/java/org/apache/excalibur/xml/xpath XPathProcessorImpl.java
leosutic 2003/05/16 08:18:29
Modified: xmlutil/src/java/org/apache/excalibur/xml/xpath
XPathProcessorImpl.java
Log:
Applied patch from Bruno Dumon:
Attached is a small patch for the XPathProcessorImpl from excalibur xmlutil.
It solves the problem that XPath expressions like "/a/b" don't return
any result, even if there are elements in the document conforming to
that XPath expression. (these kind of expressions were actually
throwing exceptions but those are silently catched -- something I'll
address at a later time).
The purpose of Xalan's PrefixResolver.handlesNullPrefixes() method
is not entirely clear to me, but returning false helps (which is also what
Xalan itself does in all of its PrefixResolver implementations).
Revision Changes Path
1.11 +2 -2 avalon-excalibur/xmlutil/src/java/org/apache/excalibur/xml/xpath/XPathProcessorImpl.java
Index: XPathProcessorImpl.java
===================================================================
RCS file: /home/cvs/avalon-excalibur/xmlutil/src/java/org/apache/excalibur/xml/xpath/XPathProcessorImpl.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- XPathProcessorImpl.java 27 Feb 2003 09:24:47 -0000 1.10
+++ XPathProcessorImpl.java 16 May 2003 15:18:29 -0000 1.11
@@ -224,7 +224,7 @@
public boolean handlesNullPrefixes()
{
- return true;
+ return false;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org