This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: sum of products
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] sum of products
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Wed, 10 Oct 2001 14:00:20 +0100
- References: <F45e1OWhMnU5JzUIDk40000192a@hotmail.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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