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(_dot_)SINGH(_at_)tenix(_dot_)com> 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.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--