This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: sum for a specific attribute
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 17 Apr 2002 10:11:22 +0100
- Subject: RE: [xsl] sum for a specific attribute
- Reply-to: xsl-list at lists dot mulberrytech dot com
> In my case, I need to get the sum of the detail/@value where the
> detail/@type is 'A'
sum(detail[@type='A']/@value)
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list