Ypu haven't said what transformation you are tyrying to do, or posted
any input or a full stylesheet that can be run, but some comments on one
of your templates
<xsl:template name="cur_time_duration_cifo">
<xsl:param name="value"/>
<xsl:for-each
select="document($currentJTL_cifo)/testResults/*[not(@label =
preceding::*/@label)]">
<xsl:variable name="label" select="@label" />
<!--
This variable $label is never used, so you don't need to define it (saxon will
have made a warning about this)
-->
<xsl:variable name="minTimeStamp_prev_2">
<xsl:call-template
name="find_minTimeStamp_prev_2">
<xsl:with-param
name="nodes" select="/testResults/sampleResult" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="maxTimeStamp_prev_2">
<xsl:call-template
name="find_maxTimeStamp_prev_2">
<xsl:with-param
name="nodes" select="/testResults/sampleResult" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="timeSpan"
select="$maxTimeStamp_prev_2 - $minTimeStamp_prev_2" />
<!--
This variable is only used in one place so you don't really need it, you
could just move this code to the xsl:with-param
line.
-->
<xsl:if test="position() = last()">
<!--
You are in a for-each loop and do nothing except set some variables in
every iteration except the last so in all cases except the last the
variables are not used and setting them is a wast of time (it's wquite
likely that the system spots this, and never evaluates them at all.
Whenevr you have
<xsl:for-each select="something">
<xsl:if test="position()=last()">
...
</xsl:if>
</xsl:for-each>
Then you should simply not evaluate the code on teh nodes other than the
last and instead do
<xsl:for-each select="(something)[position()=last()]">
</xsl:for-each>
so that only the last one is processed.
-->
<xsl:call-template
name="display-seconds">
<xsl:with-param
name="value" select="$timeSpan"/>
</xsl:call-template>
</xsl:if>
</xsl:for-each>
<xsl:value-of select="$value"/>
</xsl:template>
________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
________________________________________________________________________
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--