|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] XQuery and id()/idref(); Controlling the children of nodes in the result sequenceMichael Kay mike at saxonica.comThu Apr 24 10:36:22 PDT 2008
> > 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? They're likely to be pretty much equivalent in Saxon. .//*[pred] will find all the descendant elements and test them against the predicate, there are no rewrites that recognize that particular predicates might enable the search scope to be reduced, other than the indexing optimisations in Saxon-SA which handle predicates such as [relativePath=value]. Michael Kay http://www.saxonica.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|







