jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frédéric Esnault <f...@legisway.com>
Subject RE: getNode without the name
Date Wed, 27 Jun 2007 06:10:41 GMT
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:mwaschkowski@gmail.com] 
Envoyé : mardi 26 juin 2007 20:41
À : users@jackrabbit.apache.org
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,


Mime
View raw message