Summing up in a loop
Hello,
I want to do something like this in XSLT (Perl-like code):
$sum = 0;
foreach $item @list
{
$sum += $hash{$item};
}
do_something($sum);
Essentially I want to sum up the columns of a table WITHOUT using
sum with an XPATH Expression:
<s><xsl:value-of select="sum(/path/to/values)"/></s>
Thanks
Tschuri
|