Jump to content

XML to XML Transform on modification with XSL


Guest avishek

Recommended Posts

Guest avishek

Hi ,I am new to this mode of usage of XML Transformation.How to convert a xml as shown below to the one further down.Notably the chane is only in one field having value 123456 to something else say 654321.The whole xml has to be transformed.Wat sort of XSL command can be used for this?? <?xml version="1.0" ?> <!DOCTYPE MxML (View Source for full doctype...)> - <MxML version="1-1">+ <documentProperties type="documentProperties">+ <events> - <trades type="trades"> - <trade id="trade_737111" type="trade">+ <parties type="Parties"> + <portfolios type="Portfolios"><currency1Flow type="flow"> <payerPartyReference href="#ABCDEF" /> - <receiverPartyReference href="#xyz"> <portfolioReference href="#PRC_USD_EX_XAU" /> </receiverPartyReference> <date type="date">20081126</date> <currency type="string">XAU</currency> <amount type="decimal">123456</amount> <fxCls type="string">no</fxCls> </currency1Flow>- <currency2Flow type="flow">;;;;;;;; <?xml version="1.0" ?> <!DOCTYPE MxML (View Source for full doctype...)> - <MxML version="1-1">+ <documentProperties type="documentProperties">+ <events> - <trades type="trades"> - <trade id="trade_737111" type="trade">+ <parties type="Parties"> + <portfolios type="Portfolios"><currency1Flow type="flow"> <payerPartyReference href="#ABCDEF" /> - <receiverPartyReference href="#xyz"> <portfolioReference href="#PRC_USD_EXO_XAU" /> </receiverPartyReference> <date type="date">20081126</date> <currency type="string">XAU</currency> <amount type="decimal">654321</amount> <fxCls type="string">no</fxCls> </currency1Flow>- <currency2Flow type="flow">;;;;;;;;

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...