I am beginner.Please help me to do this.
The following is a part of my xmlfile
<UsageItem>
<UsageDetail>
<CallStamp>21-05-2003 08:25:46 (GMT +05:00:00)</CallStamp>
<CalledNo>123456</CalledNo>
<Volume>45</Volume>
<Unit>Seconds</Unit>
<Remark>OSB</Remark>
<Country>Singapore</Country>
<RateCode>R</RateCode>
<Amount ChargeType="G">
<Currency>ZWD</Currency>
<Value>334.100</Value>
</Amount>
</UsageDetail>
<Amount ChargeType="G">
<Currency>ZWD</Currency>
<Value>334.100</Value>
<TaxAmount>
<TaxName>For Standard tax</TaxName>
<Percentage>5.000</Percentage>
<Value>16.000</Value>
</TaxAmount>
</Amount>
</UsageItem>
<UsageItem>
<UsageDetail>
.
.
.
.
.
I want to loop through the above
<xsl:for-each select="PersProd/ProductNode/SectionPart/UsageItem">
I need to sum the
--------PersProd/ProductNode/SectionPart/UsageItem/amount/TaxAmount/Value
---------------
of all the Tax that come under the USAGEITEM Tag.....
and display the sum before displaying the Details of USAGEDETAILS...
Waiting for the reply..
Deepa
The following is a part of my xmlfile
<UsageItem>
<UsageDetail>
<CallStamp>21-05-2003 08:25:46 (GMT +05:00:00)</CallStamp>
<CalledNo>123456</CalledNo>
<Volume>45</Volume>
<Unit>Seconds</Unit>
<Remark>OSB</Remark>
<Country>Singapore</Country>
<RateCode>R</RateCode>
<Amount ChargeType="G">
<Currency>ZWD</Currency>
<Value>334.100</Value>
</Amount>
</UsageDetail>
<Amount ChargeType="G">
<Currency>ZWD</Currency>
<Value>334.100</Value>
<TaxAmount>
<TaxName>For Standard tax</TaxName>
<Percentage>5.000</Percentage>
<Value>16.000</Value>
</TaxAmount>
</Amount>
</UsageItem>
<UsageItem>
<UsageDetail>
.
.
.
.
.
I want to loop through the above
<xsl:for-each select="PersProd/ProductNode/SectionPart/UsageItem">
I need to sum the
--------PersProd/ProductNode/SectionPart/UsageItem/amount/TaxAmount/Value
---------------
of all the Tax that come under the USAGEITEM Tag.....
and display the sum before displaying the Details of USAGEDETAILS...
Waiting for the reply..
Deepa