On Thursday 14 January 2010 23:16, Ard Schrijvers wrote:

> Apart from the fact that I doubt whether you are modelling your
> content in a sensible way, you can achieve what you want like this:
>
> //*[not(fn:name() = 'abc:XYZ')]/Foobar

Thanks for the answer, but it seems, that the problem is slightly more 
complex.

I want to seach all Foobar beyond

/X/Y

but not beyond

/X/Y/Z

with the solution above the query looks like this:

/X/Y/*[not(fn:name() = 'Z')]//Foobar

But this avoids finding nodes like /X/Y/Foobar

Reply via email to