Would like to use XPath inside cargo code in order to manipulate configurations, so need to choose an xpath implementation dependency.
– Original Message –
I have been doing some more work on support for merging within cargo
(beyond the existing patches).
What I'm currently adding is a way of manipulating the files that need
to be merged beyond the simple 'overwrite or preserve' that is in the
For example, if you use spring, you commonly have (in web.xml)
If you're merging, you should concatenate the configs together to get
So - what I'm envisioning is a configuration that would say something
like 'for applicationContextConfig, the output should be
Where $left:/param-value is composed of
$left: - an instruction to use the left hand item in the merge
/param-value - an XPath to the value to use
My current test implementation is just using XPathAPI from the 1.5
JVM, so obviously I would need to use a different implementation that
is happy on all systems - something like xalan would need to be added
as a dependency.