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



>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


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