can we do sum like this sum($t)
Hi ,
can we do sum like this sum($t) -- Where $t - is the tag name of my xml
my sample xml:
================
<sample>
<AA>10</AA>
<AA>20</AA>
<AA>30</AA>
<AA>40</AA>
</sample>
xsl
=====
<xsl:for-each select="sample">
<xsl:variable name="t"><xsl:value-of select="'AA'"/></xsl:variable>
<P><xsl:value-of select="sum($t)"/></P>
</xsl:for-each>
so that my out put should be like below
<P>100</P>
kindly advice
Thanks
anil
|