xslt sum
Hi,
<cac:InvoiceLine>
<cac:AllowanceCharge>
<cbc:SequenceNumeric>1</cbc:SequenceNumeric>
<cbc:Amount currencyID="TRY">2.00</cbc:Amount>
</cac:AllowanceCharge>
<cac:AllowanceCharge>
<cbc:SequenceNumeric>2</cbc:SequenceNumeric>
<cbc:Amount currencyID="TRY">3.00</cbc:Amount>
</cac:AllowanceCharge>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cac:AllowanceCharge>
<cbc:SequenceNumeric>1</cbc:SequenceNumeric>
<cbc:Amount currencyID="TRY">4.00</cbc:Amount>
</cac:AllowanceCharge>
<cac:AllowanceCharge>
<cbc:SequenceNumeric>2</cbc:SequenceNumeric>
<cbc:Amount currencyID="TRY">5.00</cbc:Amount>
</cac:AllowanceCharge>
</cac:InvoiceLine>
xslt version 2.0
i want
if "SequenceNumeric=1" sum(cbc:Amount)
if "SequenceNumeric=2" sum(cbc:Amount)
how make this formul.
Thank you
|