Hi,
I am newbie to XSL transformations . I am finding it hard to work out the XSL transformation for the following XML. Can someone suggest me how to approach this XML or in general how should I start up if given a XML?
SOURCE XML:
TRANSFORMED FINAL XML (what i need):
Regards,
SP.
I am newbie to XSL transformations . I am finding it hard to work out the XSL transformation for the following XML. Can someone suggest me how to approach this XML or in general how should I start up if given a XML?
SOURCE XML:
Code:
<?xml version="1.0" encoding="iso-8859-1"?> <Batch BatchCreated="" TransType="TA" xmlns="http://www.w3.org/2001/xmlns"> <TA> <Id>111</Id> <recipient>ABC Corp.</recipient> </TA> <CL> <id>12123</id> <claimNumber>1023-1</claimNumber> <code>Other</code> <dateReceived>01/24/2007 14:18:50</dateReceived> <policyLimit>352,000</policyLimit> <covName>Building</covName> </CL> <Contacts> <Insured> <type>client</type> <InsName>JOHN</InsName> <street>12 WALKER ST</street> <city>SIGMUND PARK</city> <state>KS</state> <country>US</country> <postal>67208</postal> <InsHomeNumber>1212151423</InsHomeNumber> <InsWorkNumber>55221155213</InsWorkNumber> <WorkExtn>123</WorkExtn> </Insured> <Claimant> <type>claimant</type> <name>MARK</name> </Claimant> </Contacts> </Batch>
Code:
<?xml version="1.0" encoding="utf-8"?> <INFO> <TA recipient="ABC Corp." Id="111" /> <CONTACTS> <CONTACT type="Client" name="JOHN"> <ADDRESSES> <ADDRESS type="Property" city="SIGMUND PARK" street=">12 WALKER ST" state="KS" postal="67208" country="US" /> </ADDRESSES> <CONTACTMETHODS> <PHONE type="Home" number="1212151423" extension="" /> <PHONE type="Business" number="55221155213" extension="123" /> </CONTACTMETHODS> </CONTACT> <CONTACT type="Claimant" name="MARK" /> </CONTACTS> <LOSSDETAILS dateReceived="2007-01-24T14:18:50"> <LOSS claimNumber="1023-1"> <COVERAGES> <COVERAGE id="12123" covName="Building" policyLimit="3520000" /> </COVERAGES> <TOL desc="Other" code="Other"></TOL> </LOSS> </LOSSDETAILS> </INFO>
SP.
Comment