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

optimize XPath query to speed up processing

Subject: optimize XPath query to speed up processing
From: "Charlie G." <jcgautier@xxxxxxxxxxx>
Date: Thu, 8 Aug 2002 12:45:21 GMT
xpath speed
Hello you all,

I d like to optimize the following Xpath query :

"//a/@href  | //go/@href  | //card/@onenterforward |
//card/@onenterbackward | //card/@ontimer  | //template/@onenterforward
| //template/@onenterbackward | //template/@ontimer  | //img/@src  |
//option/@onpick "

I know it s bad to use // since the parser parses whole tree each time.

Goal : i want to get certain attributes values of certain nodes.
Eg. for the begining : if a node "<a>" has an attribute named "href" I
want to get the value of the "href" attribute ...
same for several nodes (go[with href] + card[with onenterforward or 
onenterbackward or ontimer])  etc...

Is it possible to optimize my query to speed up processing ? 
Shall i use 2 queries (which would be faster together? )


Thanks for help

Charlie



______________________________________________________________________________
i (france), c'est aussi une gamme complète de PC en exclusivité avec DELL 
http://www.ifrance.com/_reloc/signhdell


 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.