RE: [xsl] sum for a specific attribute

Subject: RE: [xsl] sum for a specific attribute
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 17 Apr 2002 10:11:22 +0100
> 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@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 
 

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


Current Thread