On 3/27/08, Z W <mpc8250(_at_)gmail(_dot_)com> wrote:
[xslt] Variable $timeSpan has not been declared
<xsl:template name="currentJTLDetail">
<xsl:for-each select="document($currentJTL)/testResults/*[not(@label =
preceding::*/@label)]">
<tr>
<xsl:variable name="timeSpan" select="$maxTimeStamp_prev -
$minTimeStamp_prev" />
</xsl:for-each>
<td>
<xsl:call-template name="display-seconds">
<xsl:with-param name="value"
select="$timeSpan" />
</xsl:call-template>
</td>
</tr>
</xsl:template>
Your stylesheet doesn't seem to be well-formed.
Perhaps, you need something like:
<xsl:for-each ..
<tr>
<xsl:variable name="timeSpan" select="$maxTimeStamp_prev -
$minTimeStamp_prev" />
<td>
<xsl:call-template name="display-seconds">
<xsl:with-param name="value" select="$timeSpan" />
</xsl:call-template>
</td>
</tr>
</xsl:for-each>
You have <tr> & </tr> tags at wrong places, and this will fail at the
XML parsing stage.
--
Regards,
Mukul Gandhi
--~------------------------------------------------------------------
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>
--~--