A
ad
I have a xslt file, there are tree columns in a table,
There is Value1 in column 1 and Value2 in column2.
The type of Value1 and Value2 are number.
I want to add Value1 and Value2 together and display it in column3
I use <xsl:value-of select="Value1"/>+ <xsl:value-of
select="Value2"/>
in the below example, but it display as string concatenate , not number add.
How can I do a number adding in xslt?
----------------------------------------------------------------------------------------------------------------------------
<table width="100%" border="1">
<tbody>
<xsl:for-each select="DocumentElement/SightMatrix">
<tr>
<td width="24%">
<xsl:value-of select="Value1"/>
</td>
<td width="24%">
<xsl:value-of select="Value2"/>
</td>
<td width="24%">
<xsl:value-of select="Value1"/>+
<xsl:value-of select="Value2"/>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
There is Value1 in column 1 and Value2 in column2.
The type of Value1 and Value2 are number.
I want to add Value1 and Value2 together and display it in column3
I use <xsl:value-of select="Value1"/>+ <xsl:value-of
select="Value2"/>
in the below example, but it display as string concatenate , not number add.
How can I do a number adding in xslt?
----------------------------------------------------------------------------------------------------------------------------
<table width="100%" border="1">
<tbody>
<xsl:for-each select="DocumentElement/SightMatrix">
<tr>
<td width="24%">
<xsl:value-of select="Value1"/>
</td>
<td width="24%">
<xsl:value-of select="Value2"/>
</td>
<td width="24%">
<xsl:value-of select="Value1"/>+
<xsl:value-of select="Value2"/>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>