On 18 November 2010 00:21, Clemens Wyss <[email protected]> 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
call.

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



-- 
-Tor

Reply via email to