Mukul
I took your suggestion to use this approach:
<xsl:variable name="x">
<xsl:for-each ..
</xsl:for-each>
</xsl:variable>
ie
<td>
<xsl:variable name="cib_time_duration">
<xsl:for-each select="document($currentJTL)/testResults/*[not(@label =
preceding::*/@label)]">
<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" />
<xsl:value-of select="$timeSpan"/>
</xsl:for-each>
</xsl:variable>
<xsl:value-of select="$cib_time_duration"/>
</td>
But I get the $cib_time_duration printed 3 times. How do I get it to
print once ?
On Thu, Mar 27, 2008 at 1:28 AM, Mukul Gandhi
<gandhi(_dot_)mukul(_at_)gmail(_dot_)com> wrote:
On 3/27/08, Z W <mpc8250(_at_)gmail(_dot_)com> wrote:
I'm trying to create a html where I'm only interested in this
label=Client responds.
However I need to loop through all these rows to get other information.
How do I loop through them and store some values into variables and at
the same time not having XSLT complaining that
variables undefined if these variables are put inside the for-each
loop and made to print out outside of the for-each loop ?
This could be one of the strategy:
<xsl:variable name="x">
<xsl:for-each ..
</xsl:for-each>
</xsl:variable>
--~------------------------------------------------------------------
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>
--~--