[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|