[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: Calculations in XSL


Subject: RE: Calculations in XSL
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 25 Oct 1999 18:16:21 +0100

> > <xsl:variable name="sum" select="$a + $b"/>
> 
> The select attribute of xsl:variable expect a nodeset, so you should
> use the following instead :
> 
> <xsl:variable name="sum">
> 	<xsl:value-of select="$a + $b"/>
> </xsl:variable>
>
 
Not so. The select attribute of xsl:variable can be any expression.

Mike Kay


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



Current Thread