This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Calculations in an attribute


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]