Subject: Re: Change the value of global variables/params ?? From: Paul Levin <plevin@xxxxxxx> Date: Tue, 07 Dec 1999 14:59:49 -0500 |
The first (changing the value of a global variable) can not be done. The second works fine (changing the value of a local variable). <xsl:template name="sub"> <xsl:variable name="foo" select="'abc'"/> <xsl:value-of select="$foo"/> <xsl:variable name="foo" select="'def'"/> <xsl:value-of select="$foo"/> </xsl:template> Calling this template will output -- abcdef Note that replacing xsl:variable with xsl:param will produce the same result. Paul David Carlisle wrote: > > LotusXsl does allow a local variable (a variable inside of a template) > > to have it's value changed. A "feature" I depend on. > > do you mean that the local variable in the template can have a value > different from the value of a global variable of the same name, or do > you mean that in the same template you can set it and then change the > value. The first is allowed, the second is not. (What could be the > syntax for that anyway?) > > David > > 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 -> |
---|---|---|
Re: Change the value of global vari, David Carlisle | Thread | Re: Change the value of global vari, David Carlisle |
EZ/X Speed: Rebunking Oracle's Debu, Michael Sick | Date | Re: Change the value of global vari, Sebastian Rahtz |
Month |