[xquery-talk] Selecting Descendants

Michael Kay mhk at mhk.me.uk
Tue Jun 14 00:40:35 PDT 2005

//X except //X//X
Michael Kay


From: talk-bounces at xquery.com [mailto:talk-bounces at xquery.com] On Behalf Of
EXTERNAL Kruse Peter (Praktikant;CR/AEF4)
Sent: 13 June 2005 16:14
To: talk at xquery.com
Subject: [xquery-talk] Selecting Descendants

Hi folks 

I'm seeking a way to select only those descandants in a tree which fit a
criterion but not their descandants (even if those fit the critirion as

I know, you can select with //node-name, but that will give back children of
node-name with name node-name as well and i don't want them (got it?)

I have a tree like this 

        <B name="b1"> 
                <B name="b2"> 
        <B name="b3"> 
        <B name="b4"> 
                <B name="b5"> 
                        <B name="b6"> 

And i want to select b1, b3, b4, b5 (but not b2 and b6, because their
parents (or one of there ancestors) is already selected).

Any hints? 

Kind Regards 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xquery.com/pipermail/talk/attachments/20050613/8d72d25a/attachment.htm

More information about the talk mailing list