commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitri Plotnikov <dplot...@yahoo.com>
Subject RE: [jxpath] context with root and local object
Date Mon, 05 May 2003 20:38:06 GMT
Knut,

The bug you reported is fixed as of last night's build.

Thanks for reporting it.

- Dmitri


--- Dmitri Plotnikov <dplotnik@yahoo.com> wrote:
> Knut,
> 
> Yeah, I see where the bug is.  I'll fix it over the weekend.
> 
> Thanks,
> 
> - Dmitri
> 
> --- "Wannheden, Knut" <knut.wannheden@paranor.ch> wrote:
> > Related to this topic...
> > 
> > I would have thought that a relative context inherits the functions
> > of the
> > parent context.  That is even stated in the Javadoc (for function
> > JXPathContext#getRelativeContext(String)).  But it doesn't seem to
> be
> > the
> > case.  Has this been fixed in CVS (I'm using version 1.1) or should
> I
> > file a
> > bug report?
> > 
> > --
> > knut
> > 
> > > -----Original Message-----
> > > From: Wannheden, Knut [mailto:knut.wannheden@paranor.ch]
> > > Sent: Freitag, 2. Mai 2003 09:20
> > > To: 'Jakarta Commons Users List'
> > > Subject: RE: [jxpath] context with root and local object
> > > 
> > > 
> > > Yes, that looks just like it.  Thanks!
> > > 
> > > --
> > > knut
> > > 
> > > > -----Original Message-----
> > > > From: Dmitri Plotnikov [mailto:dplotnik@yahoo.com]
> > > > Sent: Donnerstag, 1. Mai 2003 17:20
> > > > To: Jakarta Commons Users List
> > > > Subject: Re: [jxpath] context with root and local object
> > > > 
> > > > 
> > > > Knut,
> > > > 
> > > > If I understood your requirement correctly, then yes it is 
> > > possible to
> > > > create a relative context.  See
> > > > 
> > > > http://jakarta.apache.org/commons/jxpath/users-guide.html#Rela
> > > > tive%20Contexts
> > > > 
> > > > I hope this helps.
> > > > 
> > > > - Dmitri
> > > > 
> > > > --- "Wannheden, Knut" <knut.wannheden@paranor.ch> wrote:
> > > > > Hi,
> > > > > 
> > > > > Is it be possible to create a JXPathContext which both has a
> > root
> > > > > object and
> > > > > a local context object?  Consider this document (or 
> > > equivalent bean
> > > > > structure):
> > > > > 
> > > > > <address-book>
> > > > >  <entry name="foo">
> > > > >   <phone-number type="home" number="123"/>
> > > > >  </entry>
> > > > >  <entry name="bar">
> > > > >   <phone-number type="work" number="456"/>
> > > > >   <phone-number type="cell" number="789"/>
> > > > >  </entry>
> > > > > </address-book>
> > > > > 
> > > > > Now I think it would be nice if I could create a 
> > > JXPathContext with
> > > > > the root
> > > > > element <address-book/> as root object and for instance
> <entry
> > > > > name="foo"/>
> > > > > as local context object.  These paths would return all
> <entry/>
> > > > > elements:
> > > > > 
> > > > > //entry
> > > > > /address-book/entry
> > > > > ../entry
> > > > > 
> > > > > And this relative path would return all <phone-number/> 
> > > elements of
> > > > > the
> > > > > local context object:
> > > > > 
> > > > > phone-number
> > > > > 
> > > > > Is this currently possible or doesn't it make any sense at
> all?
> > > > > 
> > > > > Cheers,
> > > > > 
> > > > > --
> > > > > knut
> > > > > 
> > > > 
> > > > 
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > The New Yahoo! Search - Faster. Easier. Bingo.
> > > > http://search.yahoo.com
> > > > 
> > > > 
> > >
> >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > commons-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: 
> > > commons-user-help@jakarta.apache.org
> > > > 
> > > 
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

Mime
View raw message