Subject: RE: [xsl] Calculations in an attribute From: "Eamonn Neylon" <eneylon@xxxxxxxxxxxxxxxxxxxxx> Date: Mon, 11 Mar 2002 18:30:34 -0000 |
Bryan You need to use '$total' instead of 'total' to access this variable, and you need to use xsl:attribute within the rect tags (your XSLT processor will evaluate this to provide an empty element for rect on output), i.e.: <rect x="291" y="121" height="10" fill="green"> <xsl:attribute name="width"> <xsl:value-of select="(142* $total) div 100" /> </xsl:attribute> </rect> Regards Eamonn Eamonn Neylon Manifest Solutions John Eccles House, Oxford Science Park Oxford, OX4 4GP, United Kingdom T: +44 1865 338033; F: +44 1865 338100 http://www.manifestsolutions.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Calculations in an attrib, Thomas B. Passin | Thread | [xsl] test, Mathy V Arumugam |
Re: [xsl] Calculations in an attrib, Thomas B. Passin | Date | RE: [xsl] my fist question., Michael Kay |
Month |