This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Boolean XPath Expression and sum
- To: <xsl-list at lists dot mulberrytech dot com>, "'Xsl-List \(E-mail\)'" <owner-xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Boolean XPath Expression and sum
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Wed, 9 May 2001 17:53:13 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I need to sum up the all the values of things where their
> value is not equal
> to N/A, and am having a bit of trouble.
> XML might look like
> <abuncha>
> <thing>1</thing>
> <thing>2</thing>
> <thing>3</thing>
> <thing>5</thing>
> <thing>N/A</thing>
> </abuncha>
sum(//thing[.!='N/A'])
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list