> let $c := //*[. &= 'information']
> for $x in $c return $x/ancestor::*[@KEY][1]
The "for" loop is unnecessary and expensive:
let $c := //*[. &= 'information']
return $c/ancestor::*[@KEY][1]
should produce the same result.
Wolfgang
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open