Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] sum of attribute values [Thread Next] Re: [xsl] sum of attribute valuesTo: Date: 6/1/2006 12:04:00 AM Use the transform-and-sum function/template from FXSL 1.x.
For examples, search for "transform-and-sum".
--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
On 5/31/06, SINGH Navpreet <Navpreet.SINGH@xxxxxxxxx> wrote:
Hi,
I need a sum of all the @width attributes from the following xml. I was using <xsl:value-of select="sum(number(substring-before(//@COLWIDTH, 'in')))"/>. But it did not work. Can anyone help me with this.
<table>
<cols>
<col colnum="1" width="0.984in"/>
<col colnum="2" width="1.880in"/>
<col colnum="3" width="0.984in"/>
</cols>
</table>
Thanks,
Navpreet. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
