jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torgeir Veimo <torg...@netenviron.com>
Subject Re: 'reverse path prefix' xpath query
Date Thu, 18 Nov 2010 02:16:59 GMT
On 18 November 2010 00:21, Clemens Wyss <clemensdev@mysign.ch> wrote:
> I re-read your initial post ;-)
> How about:
> //element(*)[@prefix='<path prefix extracted from the nodes path>']

The trick is to get that path prefix extracted

What I was thinking was that if the subscription contained a reference
to a node instead of it's path, then if it was possible to implicitly
dereference this reference in the query, and check if it refers to a
parent node of the given node / path from the event listeners onevent

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


View raw message