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

Re: optimization of complex XPath

Subject: Re: optimization of complex XPath
From: Liam R E Quin <liam@xxxxxx>
Date: Fri, 19 Nov 2010 11:17:55 -0500
Re:  optimization of complex XPath
On Fri, 2010-11-19 at 07:31 -0500, Graydon wrote:

> Right now, I'm doing that via XQuery in eXist, since while it is in
> principle simple to extend that loop to operate on a collection I'm
> pretty sure that will slam into resource limits somewhere. 

Try it first and see.

Note, if you are confident your id-valued attributes do not
contain quotes, you can also use grep and sed over all the
files to make a single file of those values. XML was designed so
that you can process it with text tools when you need to (although
comments and CDATA sections complicate things).

Also check that the XQuery database you are using is indexing
attribute values. For eXist-db see
http://exist.sourceforge.net/indexing.html - e.g.

<create qname="@cite" type="xs:string"/>

(if the data can be shared it might make an interesting little
test-case for comparing XQuery impleentations!)

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org

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.