|
Subject: [xsl] max of sum From: "Charly" <cohana@xxxxxxxxxxxxxxx> Date: Thu, 31 Jan 2002 15:43:03 -0800 |
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 ?
<company>
<department id="IT">
<expense value="10"/>
<expense value="12"/>
<expense value="13"/>
<expense value="18"/>
<expense value="28"/>
</department>
<department id="Research">
<expense value="40"/>
<expense value="150"/>
<expense value="75"/>
<expense value="17"/>
<expense value="21"/>
</department>
<department id="Finance">
<expense value="34"/>
<expense value="77"/>
</department>
<department id="HR">
<expense value="22"/>
</department>
</company>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] basic question about xpath su, Bryan Rasmussen | Thread | RE: [xsl] basic question about xpat, Michael Kay |
| Re: [xsl] Need 3 good reasons why X, Thomas B. Passin | Date | RE: [xsl] Need 3 good reasons why X, Joshua . Kuswadi |
| Month |