| 
 
Subject: RE: [xsl] Assigning values to variables From: "Haque, Suraiya" <Suraiya.Haque@xxxxxxx> Date: Mon, 20 Aug 2001 10:15:24 -0400  | 
Sorry, I had deleted the line where I was trying to do the assignment.
<xsl:variable name="LastDate">None</xsl:variable>
<xsl:template name="DoTitle">
    <xsl:param name="Date">N/A</xsl:param>
    <xsl:param name="Time">N/A</xsl:param>
    <xsl:variable name="CurrentDate" select="concat($Date,$Time)"/>
	<xsl:if test="$LastDate = 'None'">
    <td>First<xsl:value-of select="$LastDate"/>/<xsl:value-of
select="$CurrentDate"/></td>
    </xsl:if>
	<xsl:if test="$CurrentDate = $LastDate">
    <td><xsl:value-of select="$Date"/>:<xsl:value-of select="$Time"/></td>
    </xsl:if>
	<xsl:if test="$CurrentDate != $LastDate">
-->	<xsl:variable name="LastDate"><xsl:value-of
select="$CurrentDate"/></xsl:variable>
    <td></td>
    </xsl:if>
</xsl:template>
-----Original Message-----
From: Goetz Bock [mailto:bock@xxxxxxxxxxx]
Sent: Monday, August 20, 2001 9:54 AM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject: Re: [xsl] Assigning values to variables
On Mon, Aug 20 '01 at 09:32, Haque, Suraiya wrote:
> How do you assign values to a variable once they've already been declared?
You can not assigne a value to a variable that has already been
declared. (In XSLT variables are static)
> [ ... ]
I did not get what your XSLT is supposed to do (or better where in your
XSLT youre (re)assigning a variable's value.
-- 
Goetz Bock                                              IT Consultant
Dipl.-Inf. Univ.
 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] Assigning values to varia, Goetz Bock | Thread | Re: [xsl] Assigning values to varia, Goetz Bock | 
| RE: [xsl] Installing Cocoon, Joost Fleuren | Date | Re: [xsl], Gurnandan Kaur | 
| Month |