Joseph McGarvey
03-03-2003, 07:15 PM
I have been reading about sum() to evaluate some nodes. I am very confused and cannot get anything working.
Here is my (simplified) XML:
<entity>
<value>55</value>
</entity>
<entity>
<value>7</value>
</entity>
<entity>
<value>18</value>
</entity>
How do I write my XSL to add the <value> nodes to return the total? Do I use "sum()" with a "call-template" and what should that called template look like?
Thanks!!
P.S. Sorry if this has been covered in the forum, but you cannot search for strings less than 4 characters... like "sum", so I was unable to get any search results.
Here is my (simplified) XML:
<entity>
<value>55</value>
</entity>
<entity>
<value>7</value>
</entity>
<entity>
<value>18</value>
</entity>
How do I write my XSL to add the <value> nodes to return the total? Do I use "sum()" with a "call-template" and what should that called template look like?
Thanks!!
P.S. Sorry if this has been covered in the forum, but you cannot search for strings less than 4 characters... like "sum", so I was unable to get any search results.