i have two variables in xslt,i am not able to add those and assign to another variable, Any help would be appreciated.
<xsl:variable name="Book" select="hummpty" />
<xsl:variable name="Book1" select="andro" />
<xsl:variable name="Total">
<xsl:value-of select="$Book + $Book1/>
</xsl:variable>
When i try to print 'Total' i am getting value as NaN. How do i achieve this? After achieving this , i would like to assign this as an attribute value. eg:
<Book totakBook="$Total" />
Something like above. Any help appreciated.
If you actually want to concatenate string values, try this:
<xsl:value-of select="concat($Book, $Book1)" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With