Re: [xsl] Re: XPath to calculate total of attribute values

Subject: Re: [xsl] Re: XPath to calculate total of attribute values
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 10 Jan 2002 13:12:14 GMT
> I can't figure out how to write an XPath expression to calculate
> a total of all the TD/@COLSPANs....

<xsl:value-of select="sum(TD/@COLSPAN)"/>

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread