[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] sum for a specific attribute


Subject: Re: [xsl] sum for a specific attribute
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 16 Apr 2002 21:11:49 +0100

'tis easier than you think

<xsl:value-of select="sum(detail[@type='A']/@value)"/>

<xsl:value-of select="sum(detail[@type='C']/@value)"/>

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