This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Calculations in an attribute
- From: "Bryan Rasmussen" <bry at itnisk dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 11 Mar 2002 19:17:32 +0100
- Subject: RE: [xsl] Calculations in an attribute
- Keywords: xsltDEV
- Reply-to: xsl-list at lists dot mulberrytech dot com
>I want to have a percentage on the width so I have
>tried this (among other things):
>width="<xsl:value-of select="142 * total div 100"/>"
<rect x="291" y="121" height="10"
fill="green" >
<xsl:attribute name="width"><xsl:value-of select="142 * total div
100"/></xsl:attribute></rect>
or
<rect x="291" y="121" width="{142 * total div 100}" height="10"
fill="green" />
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list