xsl-list
[Top] [All Lists]

RE: RE: Variables

2003-11-19 12:55:06
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(_at_)onebox(_dot_)com - email



-----Original Message-----
From:     kakridge(_at_)bellsouth(_dot_)net
Sent:     Wed, 19 Nov 2003 14:32:47 -0500
To:       <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
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(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of
cknell(_at_)onebox(_dot_)com
Sent: Wednesday, November 19, 2003 2:06 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Variables

-----Original Message-----
From:     kakridge(_at_)bellsouth(_dot_)net

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(_at_)onebox(_dot_)com - 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



<Prev in Thread] Current Thread [Next in Thread>