xsl-list
[Top] [All Lists]

[xsl] Sum of values from XML

2010-04-15 10:07:39
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>