Altova Mailing List Archives

Re: Faster method for for-each loops

From: "Chris Barber" <chris@----------.--.--.------>
Date: 12/17/2003 10:53:00 PM
Well ... removing the transform will make it quick since there will be no
bytes to transfer to the client and no render time etc.

I'll take a better look tomorrow to see if I can spot anything - you can
email the XML and XSLT to me - it would definitely help since I can just run
it in Xselerator and check the timings for it.



"Matt" <mcqueenenospam@h...> wrote in message

I don't have access to a public location for the code so it may be
difficult to help me.

I believe the transform is the long step. If I take out the inner most
loop the response is almost immediate. This loop is the core part of the
code. For every row, it checks every possible column to see if it is

My only hope is that I'm doing something really wrong and that a format
or logic change can speed things up. I've learned that XSL takes a
different mind set than traditional coding so I'm hopeful. Here's the
code that causes the big lag:

<xsl:for-each select="$vColNames">
<xsl:variable name="vCol"><xsl:value-of select="."/></xsl:variable>
<xsl:when test="$so = $vCol"><Cell ss:Index="{position() + 3}"><ss:Data

*** Sent via Developersdex ***
Don't just participate in USENET...get rewarded for it!


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.