Re: [xsl] sum of products

Subject: Re: [xsl] sum of products
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 10 Oct 2001 14:00:20 +0100
> Is there another method that does not use node-set?

yes write a recursive named template that accumulates the sum,
there's examples in this list archives, if not the faq.
basically just add a*b to the value passed in as the parameter then call
yourself on a following node, passing on this new value.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread