jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zagarol <shane.prea...@googlemail.com>
Subject Re: XPath query using references
Date Thu, 26 Oct 2006 10:29:15 GMT

Quick update for you.
That query does indeed work fine, it was an error in the path to the
categories node which was causing the problem.

I do have another quick question though:
Currently I am doing 2 queries: 1 to find the UUID of the publication node
and another to then find the articles that reference that publication. Is it
possible to merge these into one query?

Any help would be fantastic,

zagarol wrote:
> Hi Marcel,
> The simple answer is yes they do kind of, the actual name depends on the
> locale you are in as you retrieve the article in your chosen language.
> Thanks for the help, I would imagine it is something to do with the way I
> have constructed the path to the categories node as it isn't quite as
> simple as my example.
> Regards,
> Zagarol.
> Marcel Reutegger wrote:
>> 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

View this message in context: http://www.nabble.com/XPath-query-using-references-tf2501830.html#a7008632
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

View raw message