[Home] [By Thread] [By Date] [Recent Entries]

Subject: Sum of values from XML
From: Tom T <tomw289@xxxxxxxxxxxxxx>
Date: Thu, 15 Apr 2010 16:07:14 +0100
Given the following XML structure:

<a>
  <b>
    <c>23</c>
    <d>4</d>
  </b>
  <b>
    <c>45</c>
    <d>67</d>
  </b>
</a>

Using XSLT 2 how can I retreive the sum of all the integers at /a/b/c?

thanks

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member