Hello,
I'm planning to start a project that should use XM to process XML. However
a must use customized XPath functions in this project.
I've searched for some information about custom XPath functions in XM and
didn't find anything. Since XM uses Jaxen for XPath processing, I looked
into adding custom functions to it and actually is quite easy to do so
(simply by getting the org.jaxen.XPathFunctionContext used and registering a
new Function on it).
However, the JaxenConnector class instead of using a singleton
XPathFunctionContext - that could be provided through
() and be able to be obtained the same
instance all over the code in order to customize it -, it creates a new one,
what makes more difficult for customization.
So, my question is: Is there any reason to create a new XPathFunctionContext
in JaxenConnector or I can modify it in order to use the singleton pattern
without any side-effects?
Thank you,
Guilherme
XM-interest mailing list
XM-interest (AT) lists (DOT) ibiblio.org