[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Arulraj wrote:
You cannot. The value of a variable, once initialized, cannot be changed.
Usually, you achieve your goal using xsl parameters, template calling and recursion. Your case is easier if i understand corfrectly as you can use the position function:
hth,
Manos
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: [xsl] updating xsl:variable inside the loop
Subject: Re: [xsl] updating xsl:variable inside the loop From: Manos Batsis <mbatsis@xxxxxxxxxxx> Date: Thu, 29 Jan 2004 13:38:57 +0200 |
Arulraj wrote:
Hi,
I am using xsl:variable inside the loop.
xsl:variable should be updated in next iteration. How to do this?
You cannot. The value of a variable, once initialized, cannot be changed.
Usually, you achieve your goal using xsl parameters, template calling and recursion. Your case is easier if i understand corfrectly as you can use the position function:
<xsl:for-each select="child::*"> <xsl:if test="(position() < @rowindex)"> <xsl:text>tableRow = new H2WTableRow();<xsl:text> </xsl:if> </xsl:for-each>
hth,
Manos
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] updating xsl:variable inside , Arulraj | Thread | Re: [xsl] updating xsl:variable ins, David Carlisle |
[xsl] updating xsl:variable inside , Arulraj | Date | Re: [xsl] updating xsl:variable ins, David Carlisle |
Month |
Keywords