Hi,

OK. So my problem still stands but I have a new approach. Below is source XML...

Code:
<xml>
  <data>
    <value>1</value>
    <item>200-500</item>
  </data>
  <data>
    <value>2</value>
    <item>300-100</item>
  </data>
  <data>
    <value>3</value>
    <item>450-151A</item>
  </data>
</xml>
The result that I would like to see is as follows: -

Code:
<xml>
  <data>
    <total>6</total>
  </data>
</xml>
So I want to add up the values in the "value" nodes. Does anybody know how to do this? I am now trying to use the sum() function as below: -

<xsl:value-of select="/xml/data[sum(value) > 0]">

this does not work....... please please help!!!

DJ