jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: XPath query using references
Date Thu, 26 Oct 2006 07:50:55 GMT
Hi Zagrol,

zagarol wrote:
> I am trying to get all the article nodes for a given category (note the
> category nodes maybe 1 - 6 extra nodes deep) which have a reference to a
> given publication node) This reference is stored as a property on the
> article node called, unsuprisingly, 'publication'.
> 
> I am assuming that I could look up the UUID of the publication I am
> interested in and then run something like the following query:
> 
> /jcr:root/categories//article[@publication = '<UUID>']
> 
> Is this correct as it doesn't seem to work?

The query looks ok and should work. the query indicates that all your article 
nodes have the same name 'article', is this correct?

regards
  marcel

Mime
View raw message