[jdom-interest] Using XPath in Multi-Threaded Env

Laurent Bihanic laurent.bihanic at atosorigin.com
Tue Jun 10 04:14:10 PDT 2003


Rajan Gupta wrote:
> But if were to use XPath is a threaded environment, we are assuming that
> in the future the XPath code will not be changed to start using context in
> some other way?
> Do u have an insight into why Jason Hunter is storing context in a private
> variable?

To provide automatic namespace prefix resolution, the NamespaceContext 
implementation needs to acces the context object. But Jaxen does not provide 
any way to pass context information to translateNamespacePrefixToUri(). The 
only way was then to use a private variable.

Laurent




More information about the jdom-interest mailing list