[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! 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
|