RE: Computations using XSLT

Subject: RE: Computations using XSLT
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 14 Jul 1999 13:53:48 +0100
> I would like to know how do we accomplish simple computations 
> such as a + b, 
> a - b or a * b in XSLT. 

Answer: using simple expressions such as
 
<xsl:variable name="sum" select="$a + $b"/>
<xsl:variable name="difference" select="$a - $b"/>
<xsl:variable name="product" select="$a * $b"/>

Mike Kay


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


Current Thread