|
[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: variable not found
Subject: Re: variable not found
From: Ruud Grosmann <r.grosmann@xxxxxx>
Date: Thu, 27 Mar 2008 09:31:54 +0100
|
Z W wrote:
Hi
What did I do wrong here ?
Is there a workaround to this ?
xslt3_summary:
[xslt] Processing omacm.jtl to reporting.html
[xslt] Loading stylesheet summary_v3.xsl
[xslt] v3.xsl:424: Fatal Error! XPath syntax error at char 9 on
line 424 in {$timeSpan}:
[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>
Hi ZW.
The timespan variable only 'lives' in the scope of the for-each loop.
You cannot use it outside the loop, as you have experienced.
Ruud
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
| RSS 2.0 |
|
| Atom 0.3 |
|
|