Reputation: 255
<td>
<xsl:value-of select="sum(//Form[@PRONME = current()/@PRONME]/@TBONUSP)" />
</td>
<td>
<xsl:value-of select="sum(//Form[@PRONME = current()/@PRONME]/@NACRES)" />
</td>
<td>
<xsl:value-of select=" First <TD> Value divided by Second)" />
</td>
I have a problem with printing third TD which is the Division of first two. how do i do? How to get the value?
Upvotes: 1
Views: 497
Reputation: 24816
You could define your values in separate variables and refer them later.
[XSLT 1.0]
<xsl:variable name="vFirst" select="sum(//Form[@PRONME = current()/@PRONME]/@TBONUSP)"/>
<xsl:variable name="vSecond" select="sum(//Form[@PRONME = current()/@PRONME]/@NACRES)"/>
<td>
<xsl:value-of select="$vFirst"/>
</td>
<td>
<xsl:value-of select="$vSecond"/>
</td>
<td>
<xsl:value-of select="$vFirst div $vSecond"/>
</td>
Upvotes: 2