[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

FW: Optimisation (was Re[6]: Aggregate)

Subject: FW: Optimisation (was Re[6]: Aggregate)
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 17 Nov 2000 17:17:03 -0000
free rss aggreg

-----Original Message-----
From: Kay Michael 
Sent: 17 November 2000 17:17
To: 'Jeni Tennison'
Subject: RE: Optimisation (was Re[6]: Aggregate)


> Does Saxon recognise XPaths with more than one predicate to apply
> this?  For example:
> 
>   $x[foo][1]
>   $x[1][foo]
>   $x[foo][1][bar]
> 
For expressions it works with any number of predicates. In fact it works for
any numeric predicate whose value doesn't depend on the context node or
context position (it just terminates the loop when a matching node is
found). So $x[$y] where $y is numeric will also work.

For patterns there's a similar optimisation, but this applies only to
patterns of the form para[1], with a single predicate having the constant
value 1, but appearing anywhere in the path, e.g. section[1]/para[1]/@name
is fine.

Mike Kay 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.