Hello
I need to transform an xml file Inquiry.xml to another CustomerInquiry.xml using XSLT. Can someone please provide me with the xsl file to do so.
[u]Inquiry.xml</u>
<Inquiry xsi:schemaLocation="urn:Inquiry Inquiry.xsd">
<inquiryID>inquiry0123</inquiryID>
<customerID>169321</customerID>
<source>
<name>Eric Not </name>
<address>Avent ferry road, apt 5, raleigh, NC</address>
<phone>9145565678</phone>
<email>
[email protected]</email>
</source>
<destination>
<name>John Doe </name>
<address>42nd Street, New York, NY, 10017</address>
<phone>2126758967</phone>
<email/>
</destination>
<accountFrom accountID="169321-001">
<bank bankID="WacUSA786">
<bankname>Wachovia</bankname>
<countryname>United States of America</countryname>
<countryCode>USA</countryCode>
<branchID>8989892</branchID>
<branchName>Raleigh-Hillsborough</branchName>
</bank>
<type>Card</type>
<balance>
<amount>1300.56</amount>
<currCode>USD</currCode>
</balance>
<transferTo>
<min>
<amount>10.00</amount>
<currCode>USD</currCode>
</min>
<max>
<amount>1300.56</amount>
<currCode>USD</currCode>
</max>
</transferTo>
<transferFrom>
<min>
<amount>1.00</amount>
<currCode>USD</currCode>
</min>
<max>
<amount>100000.00</amount>
<currCode>USD</currCode>
</max>
</transferFrom>
</accountFrom>
<accountTo accountID="874854-123">
<bank bankID="CitiUSA987">
<bankname>CitiBank</bankname>
<countryname>United States of America</countryname>
<countryCode>USA</countryCode>
<branchID>8789393</branchID>
<branchName>NewYork-Manhattan42</branchName>
</bank>
<type>Card</type>
<balance>
<amount>2500.00</amount>
<currCode>USD</currCode>
</balance>
<transferTo>
<min>
<amount>10.00</amount>
<currCode>USD</currCode>
</min>
<max>
<amount>1000000.00</amount>
<currCode>USD</currCode>
</max>
</transferTo>
<transferFrom>
<min>
<amount>0.00</amount>
<currCode>USD</currCode>
</min>
<max>
<amount>10000000</amount>
<currCode>USD</currCode>
</max>
</transferFrom>
</accountTo>
<dueDate>2006-04-06</dueDate>
<transferAmount>
<amount>500.00</amount>
<currCode>USD</currCode>
</transferAmount>
</Inquiry>
[u]CustomerInquiry.xml</u>
<Customer xsi:schemaLocation="urn:CustomerInquiry CustomerInquiry.xsd" customerID="169321">
<contactInfo>
<name>Eric Not</name>
<address>Avent ferry road, apt 5, raleigh, NC</address>
<phone>9145565678</phone>
<email>
[email protected]</email>
</contactInfo>
<customerBankInfo>
<bankID>WacUSA786</bankID>
<bankname>Wachovia</bankname>
<countryCode>USA</countryCode>
<AccountInfo accountID="169321-001">
<type>Card</type>
<balance>
<amount>1300.56</amount>
<currCode>USD</currCode>
</balance>
<branchID>8989892</branchID>
<branchName>Raleigh-Hillsborough</branchName>
</AccountInfo>
</customerBankInfo>
<customerInquiryInfo>
<transferInfo>
<destination>
<bankID>CitiUSA987</bankID>
<bankname>CitiBank</bankname>
<countryCode>USA</countryCode>
<AccountInfo accountID="874854-123">
<type>Card</type>
<balance>
<amount>2500.00</amount>
<currCode>USD</currCode>
</balance>
<branchID>8789393</branchID>
<branchName>NewYork-Manhattan42</branchName>
</AccountInfo>
</destination>
<transferAmount>
<amount>500.00</amount>
<currCode>USD</currCode>
</transferAmount>
</transferInfo>
<dueDate>2006-04-06</dueDate>
</customerInquiryInfo>
</Customer>
Would really appreciate the help. Just a simple xsl file to transform Inquiry to CustomerInquiry.