|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Assigning values to variables
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: 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
|
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
|

Cart








