[xsl] sum partial of the text

Subject: [xsl] sum partial of the text
From: piming.kuo@xxxxxxxxxxxxx
Date: Wed, 5 Oct 2005 08:47:16 -0500
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

Current Thread