jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Waschkowski" <mwaschkow...@gmail.com>
Subject Re: getNode without the name
Date Tue, 26 Jun 2007 18:40:44 GMT
I believe you may be looking for this:

/node/node/descendant::*[2]

As well, you can see more examples here (a resource I've found useful in the
past):

  http://www.zvon.org/xxl/XPathTutorial/General/examples.html

Best,

Mark

On 6/26/07, Frédéric Esnault <fesn@legisway.com> wrote:
>
> Hi all,
>
>
>
> I was wondering, is there a way to get a node (with NodeImpl.getNode() or
> something else), to get a node without knowing its name ?
>
> For example, under the lgw:contracts node, I have plenty of nodes named
> with their uuid. I want, from the lgw:contracts node, to get the node with
> index 5.
>
>
>
> The * being forbidden, and no child axis existing, I don't know if it's
> possible.
>
>
>
> Any idea?
>
>
>
> Frederic Esnault
>
>


-- 
Best,

Mark Waschkowski

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