jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clemens Wyss <clemens...@mysign.ch>
Subject AW: 'reverse path prefix' xpath query
Date Wed, 17 Nov 2010 14:21:29 GMT
I re-read your initial post ;-) 
How about:
//element(*)[@prefix='<path prefix extracted from the nodes path>']

If your subscription nodes have a specific nodetype, e.g. 'myblog:subscription':
//element(*, myblog:subscription)[@prefix='<path prefix extracted from the nodes path>']

-----Urspr√ľngliche Nachricht-----
Von: Torgeir Veimo [mailto:torgeir@netenviron.com] 
Gesendet: Mittwoch, 17. November 2010 14:49
An: users@jackrabbit.apache.org
Betreff: Re: 'reverse path prefix' xpath query

On 17 November 2010 23:40, Clemens Wyss <clemensdev@mysign.ch> wrote:
> Where are the subscribers located/persisted?
> Beneath /blog/<category>/subscribers (e.g. /blog/wildlife/subscribers)? If so you
could take the node's path, apply the following regexp /(\/.*\/.*\/)/ on it (->/blog/wildlife/)
and then get the childnodes of the regexp result concatenated with 'subscribers' (-> /blog/wildlife/subscribers)...

So the only solution is to store the subscriber list local to the data being subscribed to?


View raw message