Calculations in XSL

Subject: Calculations in XSL
From: "Alex Pibworth" <alex@xxxxxxxxxx>
Date: Mon, 25 Oct 1999 15:14:44 +0100
I need to add two values togethor, both are attributes.  I have seen several
examples, all which look like they should work fine, but all of them have
given me this error:

Keyword xsl:variable may not be used here.

Are there circumstances where xsl:variable cannot be used?  I'm using it
like this:

<xsl:variable name="sum" select="$a + $b"/>

If anyone knows of an example that works please could they send me the

cheers alex

 XSL-List info and archive:

Current Thread