xsl-list
[Top] [All Lists]

sum partial of the text

2005-10-05 06:47:16

Is there any wavy to sum partial of the text? For example, I want to sum
all substring(data,7,4) from the following:

<segment>
      <data>XXXYYY1000</data>
      <data>XXXZZZ 100</data>
      <data>SSSYYY1200</data>
</segment>

The result will be:
1000 + 100 + 1200 = 2300

Have a nice day!

Piming Kuo


--~------------------------------------------------------------------
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>