Hi Friends,
I am unable to add variables and store it in an array.
The Question is:
let us take an example:
Here we have a senerio like this
Loop on InvoiceLineItem/Tax
Extract values:
taxamt=//taxamount
taxtypecd=//taxtypecode
taxlocation=//taxlocation
taxrate=//taxrate
construct an tax_key = taxamt+taxtypecode+taxlocation+taxrate
form refarray[] for holding taxkeys
sort the refarray and loop on it
obtain taxcd from first taxcd and also extract taxamt,taxlocation
During loop sum up all the tax amounts of same taxtypecd and map totaltax amount for every unique taxcode and also for other tax elements extracted above to the tax[0]
This is the requirment
<xsl:for-each select="NonExempt">
<xsl:variablename="taxAmt"select="TaxAmount/MonetaryAmount/MonetaryValue"/>
<xsl:variable name="taxTypeCd" select="TaxTypeCode"/>
<xsl:variable name="taxlocation" select="$PLeft1"/>
<xsl:variable name="taxrate" select="TaxRate"/>
<xsl:variable name="taxcurrency" select="TaxAmount/MonetaryAmount/CurrencyCode"/>
<xsl:variable name="tax_key">
Inside taxkey I need to add all variable and store in it from here i have unable to proceed further
Kindly help me.
.