Hi All,
I am new to this forum as well as XSLT. Please help me out in following.
I have data coming using a Web Service Call as following
Code:
<?xml version="1.0" encoding="UTF-8"?>
- <AccountWS_AccountQueryPage_Output xmlns="urn:crmondemand/ws/account/10/2004" xmlns:p0="urn:crmondemand/ws/account/10/2004" xmlns:xsi="(URL address blocked: See forum rules)" xsi:type="p0:AccountWS_AccountQueryPage_Output">
<ns:LastPage xmlns:ns="urn:crmondemand/ws/account/10/2004">true</ns:LastPage>
- <ListOfAccount xmlns="urn:/crmondemand/xml/account" xmlns:ns="urn:crmondemand/ws/account/10/2004">
- <Account>
<AccountId>AAFA-2M15SU</AccountId>
<CurrencyCode>USD</CurrencyCode>
<AccountName>Big Industry Inc.</AccountName>
- <ListOfAddress>
- <Address>
<ExternalSystemId/>
<AddressId>AAFA-2M15SW</AddressId>
<City>Capital City</City>
<Country>USA</Country>
<County/>
<ZipCode>11111</ZipCode>
<Province/>
<StateProvince>CA</StateProvince>
<Address>746 Industry Way</Address>
<StreetAddress2/>
<StreetAddress3/>
</Address>
- <Address>
<ExternalSystemId/>
<AddressId>AAFA-2M15SY</AddressId>
<City>Capital City</City>
<Country>USA</Country>
<County/>
<ZipCode>11111</ZipCode>
<Province/>
<StateProvince>CA</StateProvince>
<Address>746 Industry Way</Address>
<StreetAddress2/>
<StreetAddress3/>
</Address>
</ListOfAddress>
</Account>
So here one Account can have multiple addresses. I need to add AccountId into Address repeating Block so that i can have following structure
1)
<AccountId>AAFA-2M15SU</AccountId>
<AddressId>AAFA-2M15SW</AddressId>
<Country>USA</Country>
<County/>
<Address>746 Industry Way</Address>
<StreetAddress2/>
<StreetAddress3/>
<City>Capital City</City>
<StateProvince>CA</StateProvince>
<ZipCode>11111</ZipCode>
<Province/>
<ExternalSystemId/>
2)
<AccountId>AAFA-2M15SU</AccountId>
<AddressId>AAFA-2M15SY</AddressId>
<Country>USA</Country>
<County/>
<Address>746 Industry Way</Address>
<StreetAddress2/>
<StreetAddress3/>
<City>Capital City</City>
<StateProvince>CA</StateProvince>
<ZipCode>11111</ZipCode>
<Province/>
<ExternalSystemId/>
how can make a XSLT file which will take the input on XML and produce to 2 records with AccountId in them.
Thanks in advance.....