Subject: [xsl] xsl numeric calculations-NP From: "NILESH PATEL" <jayganesh786@xxxxxxxxxxx> Date: Fri, 02 Aug 2002 07:19:54 +0000 |
XML: ====== <Shopping> <fruits> <apple quantity="10" unit_price="1"></apple> <orange quantity="20" unit_price="5"></orange> <banana quantity="30" unit_price="5"></banana> <grapes quantity="40" unit_price="5"></grapes> </fruits> <vegs> <onion quantity="10" unit_price="5"></onion> <carrot quantity="5" unit_price="10"></carrot> <chiili quantity="20" unit_price="5"></chilli> <tomato quantity="10" unit_price="5"></tomato> <potato quantity="20" unit_price="5"></potato> </vegs> </shopping>
Required Result: ================= FRUITS: (10*1) + (20*5) + (30*5) + (40*5) = 460 VEGS : (10*5) + (5*10) + (20*5) + (10*5) + (20*5) = 350
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Complete newbie stupid qu, Macaulay,Malcolm (US | Thread | RE: [xsl] xsl numeric calculations-, Andrew Welch |
RE: [xsl] XML to html, Falls, Travis D (CAS | Date | [no subject], aruniima . chakrabar |
Month |