[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

max of sum

Subject: max of sum
From: "Charly" <cohana@xxxxxxxxxxxxxxx>
Date: Thu, 31 Jan 2002 15:43:03 -0800
 max of sum
Hello friends,

Is there a way to get the max for a bunch of sum on an attribute.
I have the following XML and would like to find what's the highest expenses
(sum of all expense/@value). Which would be 303 .
any idea ?

   <department id="IT">
      <expense value="10"/>
      <expense value="12"/>
      <expense value="13"/>
      <expense value="18"/>
      <expense value="28"/>

   <department id="Research">
      <expense value="40"/>
      <expense value="150"/>
      <expense value="75"/>
      <expense value="17"/>
      <expense value="21"/>

   <department id="Finance">
      <expense value="34"/>
      <expense value="77"/>

   <department id="HR">
      <expense value="22"/>

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

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.