This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: add variables


try 

<xsl:variable name="val3"><xsl:value-of select="$val1 +
$val2"/></xsl:variable>


Steve Crowers
Software Engineer


Liberate Technologies
2 Walnut Grove,
Suite 200
Horsham, PA 19044
Phone: 215-773-9400 x 9514
Fax: 215-773-9401
scrowers@liberate.com
http://www.liberate.com



-----Original Message-----
From: Chen, Zhongqing [mailto:chenz@glstrat.com]
Sent: Tuesday, July 17, 2001 4:39 PM
To: 'xsl-list@lists.mulberrytech.com'
Subject: [xsl] add variables


Hi,

How do you add two variable and assign to the third one in XSLT?


<xsl:variable name="val1">1</xsl:variable>
<xsl:variable name="val2">1</xsl:variable>
<xsl:variable name="val3">1</xsl:variable>

How to do: $val3=$val1+$val2


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]