xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Calculations in an attribute


Subject: RE: [xsl] Calculations in an attribute
From: "Bryan Rasmussen" <bry@xxxxxxxxxx>
Date: Mon, 11 Mar 2002 19:17:32 +0100

>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



Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor