This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: add variables
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl] add variables
- From: "Crowers, Steve" <scrowers at liberate dot com>
- Date: Tue, 17 Jul 2001 16:51:12 -0400
- Reply-To: xsl-list at lists dot mulberrytech dot com
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