Re: [xsl] optimization of complex XPath

Subject: Re: [xsl] optimization of complex XPath
From: Liam R E Quin <liam@xxxxxx>
Date: Fri, 19 Nov 2010 11:17:55 -0500
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 - 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 Quin - XML Activity Lead, W3C,
Pictures from old books:

Current Thread