[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How to sum() with multiplaction

Subject: Re: How to sum() with multiplaction
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Wed, 11 Dec 2002 00:12:30 -0800 (PST)
multiplaction table
<Jarno.Elovirta@xxxxxxxxx> wrote in message
news:E392EEA75EC5F54AB75229B693B1B6A7052900D3@xxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
> 
> > <node>
> >  <subnode1>test</subnode1>
> >  <subnode2>test</subnode2>
> >  <Node2>
> >    <test1>2</test1>
> >    <test2>25</test1>
> > </Node2>
> >  <Node2>
> >    <test1>3</test1>
> >    <test2>50</test1>
> > </Node2>
> > 
> > I want to get the sum of (in the test case)
> > 2*25 and 3*50
> > So i want to get a result of 200
> > How do i do this? 
> 
> A recursive template that goes throught Node2 elements, summing the
results of multiplying the child element values. Dimitre propably has
some neat mapping template for this.
> 
> Cheers,
> 
> Jarno


http://sources.redhat.com/ml/xsl-list/2002-10/msg00271.html



=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.