[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] change the variable value
Subject: Re: [xsl] change the variable value From: Gavin Corfield <gavin@xxxxxxxxxxxxxxxxxx> Date: Fri, 15 Jun 2001 13:22:35 +0800 |
Jayaranga Subasinghe wrote: > > i want to change the variable value during the processing of xsl; when > different templates processing. > can anybody give me a solution? You can't, once the value of a variable is declared in a specific scope it is fixed, depending on what you want to do, you can use a recursive call to the same template: <xsl:template name="whatever"> <xsl:with-param name="variable" /> do some stuff which may use $variable <xsl:call-template name="whatever"> <xsl:with-param name="variable"> <xsl:value-of select="whatever it has changed to" /> </xsl:with-param> </xsl:call-template> </xsl:template> if you are wanting to mimic a loop put a conditional branch before the call-template. gavin > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] change the variable value, Jayaranga Subasinghe | Thread | RE: [xsl] change the variable value, Michael Kay |
[xsl] change the variable value, Jayaranga Subasinghe | Date | [xsl] Problem in Using two RTFs tog, Yang |
Month |
Keywords