[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Calculations in an attribute

Subject: RE: Calculations in an attribute
From: "Eamonn Neylon" <eneylon@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 11 Mar 2002 18:30:34 -0000
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.