I have the following xml element. I want to calculate this height in xslt so it
displays as 65 inches. I know I have to multiply 5 feet by 12 and then add 5 inches. But I am not sure how to do it.
Code:
<HeightFeet>5</HeightFeet>
<HeightInches>5</HeightInches>
Here is my xslt code
Code:
<nc:PersonHeightMeasure>
<nc:MeasureText>
<xsl:value-of select="HeightFeet"/>
<xsl:value-of select="HeightInches"/>
</nc:MeasureText>
<nc:MeasureUnitText>
<xsl:text>inches</xsl:text>
</nc:MeasureUnitText>
<nc:LengthUnitCode>
<xsl:text>INH</xsl:text>
</nc:LengthUnitCode>
</nc:PersonHeightMeasure>
This xslt displays the following which is not what I want.
Code:
<nc:PersonHeightMeasure>
<nc:MeasureText>55</nc:MeasureText>
<nc:MeasureUnitText>inches</nc:MeasureUnitText>
<nc:LengthUnitCode>INH</nc:LengthUnitCode>
</nc:PersonHeightMeasure>