Hi Mark, thanks for the answer !

You're right, I'm looking for something like what you wrote : 

/lgw:root/lgw:contracts/descendant::*[2]

But I get the same error as I get with * alone or with child::* 

javax.jcr.RepositoryException: failed to resolve path 
lgw:root/lgw:contracts/descendant::*[2] relative to /: Invalid name: 
descendant::*

And I used zvon.org a long time ago also, more for xsl at this time, but it was 
definitely one of my bookmarks ;)

Frédéric Esnault
 
-----Message d'origine-----
De : Mark Waschkowski [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 26 juin 2007 20:41
À : [email protected]
Objet : Re: getNode without the name

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,

Reply via email to