Subject: Re: [xsl] Speeding up collection() From: Andrew Welch <andrew.j.welch@xxxxxxxxx> Date: Wed, 10 Jun 2009 08:32:39 +0100 |
> I'm using collection() function with wild cards and regex to generate > a list of document filenames: > > <xsl:for-each select="for $x in > collection(iri-to-uri('someDir/?select=*.xml')) return > saxon:discard-document($x)"> > <filename href="{tokenize(document-uri(.), '/')[last()]}"/> > </xsl:for-each> > > It works fine but it takes a lot of time loading the documents. > > How can I speed up the process, considering that I dont really need > to load the documents, I just want there URLs returned? You could call out to Java to get the directory list: http://www.biglist.com/lists/lists.mulberrytech.com/xsl-list/archives/200607/ msg00570.html -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Speeding up collection(), Jesper Tverskov | Thread | Re: [xsl] Speeding up collection(), Jesper Tverskov |
[xsl] Speeding up collection(), Jesper Tverskov | Date | Re: [xsl] Speeding up collection(), Jesper Tverskov |
Month |