|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: variable not found
On 3/27/08, Z W <mpc8250@xxxxxxxxx> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. 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
|







