[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: RE: Variables
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: 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: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|