Subject: Re: [xsl] XSL Trnasfromation - Is it possible to do a bottom up transformation? From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Mon, 19 Nov 2007 08:51:21 +0100 |
Cheers, -- Abel Braaksma
Each line is defined as below: ===================== <orderline> <linenum>1</linenum> <productName>15' Monitor</productName> <netPrice>100</netPrice> <itemTypeCode>1</itemTypeCode> <untiPrice> To be caluclated </unitPrice> <orderline></orderline> <orderline></orderline> <orderline></orderline> <orderline></orderline> <orderline></orderline> </orderline>
I need to calculate a new element called unitPrice based on the below logic:
1. If the itemTypeCode of the current Item is '1' then unitPrice is netPrice
2. If the itemTypeCode of the current Item is '2' then unitPrice is
sum of all the (unitPrice/quantity) of all the child lines
3. If the itemTypeCode of the current Item is '3' then unitPrice is
Sum of unitPrice of only the first level child elements
HTH, Cheers, -- Abel Braaksma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL Trnasfromation - Is it po, Raghu Narayan Korata | Thread | Re: [xsl] XSL Trnasfromation - Is i, Raghu Narayan Korata |
[xsl] XSL Trnasfromation - Is it po, Raghu Narayan Korata | Date | Re: [xsl] XSL Trnasfromation - Is i, Raghu Narayan Korata |
Month |