commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitri Plotnikov <dmi...@apache.org>
Subject Re: [JXPATH] Child JXPathContext has access to registered namespace of parent JXPathContext?
Date Fri, 11 Feb 2005 22:53:20 GMT
ijorge,
 
JXPath 1.2 had a bug causing the behavior you are observing.  Please try to use the current
build, which has the problem fixed.
 
Thank you,
 
- Dmitri

ijorge <ijorge@ignos.com> wrote:
I`m using commons-jxpath-1.2 and I have two JXPathContext:

JXPathContext context = JXPathContext.newContext(this);
context.registerNamespace("exa", "http://www.example.com/example");

JXPathContext context2 = JXPathContext.newContext(context, this);

context2.getValue($root/exa:example");

This sentence doesn´t work. I have to declare prefix "exa":
context2.registerNamespace("exa", "http://www.example.com/example");

This behaviour is correct?

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message