Subject: Re: [xsl] xsl loop with variable From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 29 Oct 2002 10:24:17 GMT |
<xsl:if test="not($lastMonth=substring(editionDate,4,2))"> <xsl:variable name="numMonth" select="$numMonth+1"/> </xsl:if> The scope of a variable binding is teh containing element which is teh xsl:if here so you would not be able to use this variable outside that xsl:if element. > I can't make "numMonth" variable update with the correct increment out of In common with ither declarative programming languages, xslt variables can not change their value once bound. If you said what you were trying to do someone could offer some XSLt suggestions. David _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] xsl loop with variable, rit7esyahoo | Thread | Re: [xsl] xsl loop with variable, Vasu Chakkera |
Re: [xsl] Encoding/Entities problem, David Carlisle | Date | Re: [xsl] Sorting on a transformed , David Carlisle |
Month |