ietprofessional
Programmer
I have a for-each that has a value-of statement, which has a price value. Can someone tell me how to add the values of the prices? I need to be able to print the total price for the services.
Thanks,
Harold
<xsl:for-each select="NewDataSet/Table">
<table cellpadding="1" width ="575">
<tr>
<td width = "80%">
<xsl:value-of select="ServiceName"/>
</td>
<td width = "10%">
<xsl:value-of select="TimesPerDay"/>
</td>
<td align = "right" width = "10%">
<xsl:value-of select="ServicePrice"/>
</td>
</tr>
</table>
</xsl:for-each>
Thanks,
Harold
<xsl:for-each select="NewDataSet/Table">
<table cellpadding="1" width ="575">
<tr>
<td width = "80%">
<xsl:value-of select="ServiceName"/>
</td>
<td width = "10%">
<xsl:value-of select="TimesPerDay"/>
</td>
<td align = "right" width = "10%">
<xsl:value-of select="ServicePrice"/>
</td>
</tr>
</table>
</xsl:for-each>