[xquery-talk] XQuery and id()/idref(); Controlling the children of nodes in the result sequence

Florent Georges lists at fgeorges.org
Wed Apr 23 19:04:48 PDT 2008


Maik Stührenberg wrote:

> The only difference I'd like to achieve is the following
> resulting output:

  So if I am right, you want to not include an element if one of its
ancestors is included too?  If you want so, use the following instead
of the for:

    let $e := $d/a:collection/a:entry/a:data
                // *[@a:span = $s/@xml:id]
      return
        $e[not(ancestor::* = $e)]

  Regards,

--drkm























__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités 
http://mail.yahoo.fr Yahoo! Mail 



More information about the talk mailing list