Attached is a patch that extends the XPathProcessor component so that a
custom namespace prefix resolver can be provided for each evaluation of
an XPath expression.
I need this functionality to implement proper xpointer support in
Cocoon, but it's certainly more widely useful.
The patch introduces a new interface "PrefixResolver", adds additional
methods to the XPathProcessor interface that take such a PrefixResolver
as argument, and also includes a little testcase.
Extract the attached tgz in the avalon-excalibur/xmlutil directory, and
new files should be in the right locations. Then apply the included
xpathpatches.diff to update existing files.
--
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org bruno@apache.org
|