Mutiple tags in XSLT
Hi Frnds,
Could any one please help me in writing XSLT for the below input and output xmls
input xml :
<LMPRequests>
<LMPRequest>
<LMPMessage>Details
<Section>Criteria
<Row>
<REGION_CODE>524002</REGION_CODE>
<STATUS>Y</STATUS>
<AMOUNT1>25.00></AMOUNT1>
<AMOUNT2>125.00></AMOUNT2>
<AMOUNT3>125.00></AMOUNT3>
<CODE1>A123></CODE1>
<CODE2>CB12></CODE2>
<CODE3>jk12></CODE3>
<UNIT1>A></UNIT1>
<UNIT2>D></UNIT2>
<UNIT3>C</UNIT3>
</Row>
</Section>
</LMPMessage>
</LMPRequest>
</LMPRequests>
Output XML should be like:
<?xml version="1.0" encoding="UTF-8"?>
<CreateClient xmlns="http://ufus.com/us/webservices">
<criteria>
<regioncode>524002</regioncode>
<Status>Y</Status>
<Assets>
<ClientAsset>
<Code>A123</Code>
<Unit>A</Unit>
<Amount>25.00</Amount>
</ClientAsset>
<ClientAsset>
<Code>CB12</Code>
<Unit>D</Unit>
<Amount>125.00</Amount>
</ClientAsset>
<ClientAsset>
<Code>jk12</Code>
<Unit>C</Unit>
<Amount>125.00</Amount>
</ClientAsset>
</Assets>
</criteria>
</CreateClient>
Could any one please guide me in writing XSLT
Thanks
|