I generated by a for each the following field: 214.2+428.4+end
I have used substring-before(prices,'+end') but this is a string.
Any ideas how I can take the 214.2+428.4 and sum it up?
input: xml:
<items>
<item>
<price>12.50</price>
<quantity>2</quantity>
</item>
<item>
<price>13.20</price>
<quantity>3</quantity>
</item>
</items>
xsl:
<xsl:variable name="total"><xsl:for-each select="item"><xsl:value-of select="price*quantity"></xsl:value-of><xsl:text>+</xsl:text></xsl:for-each>end
</xsl:variable>
output: 25,39.6
Thank you in advanced.