Subject: RE: RE: [xsl] Variables From: cknell@xxxxxxxxxx Date: Wed, 19 Nov 2003 14:55:06 -0500 |
The short answer is that you can't change the value of a variable once it's bound. If you are calling a template multiple times, you can assign a new value to the variable each time you call it. This could be based either on the value of a parameter passed to the template, or on the value of some node in the template. -- Charles Knell cknell@xxxxxxxxxx - email -----Original Message----- From: kakridge@xxxxxxxxxxxxx Sent: Wed, 19 Nov 2003 14:32:47 -0500 To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: RE: [xsl] Variables I know how to initialize the value, but that won't work for changing it. If $startTime is 1, I want to make $startTime 2. <xsl:variable name="startTime">100</xsl:variable> This will say I have defined startTime twice. -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of cknell@xxxxxxxxxx Sent: Wednesday, November 19, 2003 2:06 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] Variables > -----Original Message----- > From: kakridge@xxxxxxxxxxxxx > > I'm not certain how to handle a specific variable operation. > > <xsl:variable name="startTime"/> > > I want to set startTime = a specific number, how do I do that? <xsl:variable name="startTime">100</xsl:variable> -- Charles Knell cknell@xxxxxxxxxx - email XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list 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: [xsl] Variables, David Carlisle | Thread | RE: [xsl] Problems with entities, cknell |
RE: [xsl] Variables, kakridge | Date | RE: [xsl] xpath problem, Ryan Graham |
Month |