xsl-list
[Top] [All Lists]

Re: xsl:for-each efficiency

2003-09-16 05:07:00
Please see --

http://xml.apache.org/xalan-j/faq.html#faq-N1014A

for hints to speed XSLT transformations..


It says --
1) Don't use "//" (descendant axes) patterns near the
root of a large document. 

2) Use xsl:key elements and the key() function as an
efficient way to retrieve node sets. 

Regards,
Mukul


--- andrew(_dot_)curry(_at_)pa(_dot_)press(_dot_)net wrote:
Would there be a better way of doing:

<xsl:for-each select="//element[(_at_)element-key =
$id]">
</xsl:for-each>

for use over a very very large document?

 XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list



__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list