J
Juho Jussila
Hi
I'm trying to calculate sum of absolute values using Xslt 1.0
and math:abs (http://www.exslt.org/math/functions/abs/index.html)
I thought this would work:
<xsl:value-of select="sum(math:abs(/A/B/C))"/>
Well it doesn't, because there are multiple C's.
Is there any nice trick how to do this, or do I have to use
for-each -loop?
Thanks in advance
I'm trying to calculate sum of absolute values using Xslt 1.0
and math:abs (http://www.exslt.org/math/functions/abs/index.html)
I thought this would work:
<xsl:value-of select="sum(math:abs(/A/B/C))"/>
Well it doesn't, because there are multiple C's.
Is there any nice trick how to do this, or do I have to use
for-each -loop?
Thanks in advance