Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

change my XML tag dynamically whenever the currency changes?

vsubbakrishna
Participant
0 Kudos

Hi all,

I need to change my XML dynamically whenever the currency changes..I am using standard ISO template for bank interface.

- <CdtTrfTxInf>

- <PmtId>

<InstrId>12345656</InstrId>

<EndToEndId>12345656</EndToEndId>

</PmtId>

- <Amt>

<InstdAmt Ccy="EUR">28.10</InstdAmt> --->>this tag should change based on currency coming from different field

</Amt>


At the moment i have made this field as "attribute" in XLST simple transformation tool(SEE ATTACHMENT)...I need to know how to make this dynamic in XML coding??


  <AMT>

          <InstdAmt Ccy="EUR" tt:value-ref="AMT.INSTDAMT_CCY"/>

   </AMT>

Thanks in advance,

Subba

2 REPLIES 2

Former Member
0 Kudos

Hi Krishna,

i think there is no such availability to get assigned with dynamic attribute name in XML.

in around, why cant we regenerate the XML whenever the currency changes ?

are you going with custom transormation or standard one ?

Regards,

bhaskar

0 Kudos

Hi,

I am writing custom transformation ...does that mean that i need to have different transformations for each currency??

tnx