Subject: [xsl] XSLT optimisation From: Alexander Johannesen <alex@xxxxxxxxxx> Date: Fri, 28 Mar 2003 17:10:53 +0100 |
which can contain several thousands of complex "topic" nodes. I realise that both key() and <xsl:copy> are ways of improving the speed of processing, but my knowledge of how to use them is a bit flakey. Any good resources or suggestions on this? I usually would use it as such;
which also can contain thousands of "association" nodes with lots of sub-nodes. I perform quite complex XPath searches on this one, such as;
<xsl:variable name="theseOnes" select="$associations [instanceOf/topicRef/@xlink:href='#group-subgroup'] [member/topicRef/@xlink:href=concat('#',$currentID)] /member[roleSpec/topicRef/@xlink:href='#child'] /topicRef"/>
And some expressions even more complex than this, also including recursive calling of the templates. (I guess it is hard to understand all of this without seeing the full code)
One serious consideration I have is to move all of this processing away from XPath (and xSLT) and use JavaScript (in a parser that supports it) instead. The question is of course if the work I need to do in order to get it all into JavaScript is worth it if there are some good optimalisations of XSLT I can do first. :)
Alexander -- __________________ ________________________ ____________________________ | | http://shelter.nu | alex at shelter dot nu | http://shelter.nu/xsiteable __________________|________________________|____________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] In-order traversal of XHT, Kaine Varley | Thread | Re: [xsl] XSLT optimisation, David Carlisle |
RE: [xsl] In-order traversal of XHT, Bryan Archer | Date | Re: [xsl] In-order traversal of XHT, Jeni Tennison |
Month |