xsl-list
[Top] [All Lists]

[xsl] sum of attribute values

2006-05-31 16:35:22
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>