Subject: variables in combination.
From: "Pawson, David" <DPawson@xxxxxxxxxxx>
Date: Tue, 1 Feb 2000 13:43:01 -0000
|
I need to do some simple arithmetic on variables.
xt keeps giving syntax errors,
<xsl:variable name="xval" select="@x-coord * 2.29"/> seems OK
but
<xsl:variable name="x2" select="$xval+($xbox / 2)"/> gives the error
node test expected.
I've also tried
<xsl:variable name="x2" ><xsl:value-of select ="$xval+($xbox /
2)"/></xsl:variable>
with the same result.
Ken H (for once) doesn't seem to give such an example.
Any help appreciated please, I'm stuck on this one.
regards, DaveP
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|