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

Andrew Welch andrew.j.welch at gmail.com
Thu Apr 24 10:07:25 PDT 2008

On 23/04/2008, Michael Kay <mike at saxonica.com> wrote:
>          $e[not(ancestor::* intersect $e)]
>  or you could do a recursive function which stops searching any deeper when
>  it finds a match:

if you rewrote

not(ancestor::* intersect $e)

to be

not(some $x in ancestor::* satisfies $x is $e)

...would that potentially stop searching when it found a match?  Or
would that generate the same code as the top version?

Andrew Welch
Kernow: http://kernowforsaxon.sf.net/

More information about the talk mailing list