I'm having an xml as below:
<?xml version="1.0" encoding="utf-8"?><Master>
<Account ID="38058226">
<Property ID="66591454">
<Profile ID="111234">\Acct_38058226\Prop_66591454\Prof_111234.xml</Profile>
</Property>
</Account>
<Account ID="38058226">
<Property ID="66591454">
<Profile ID="22222222222">\Acct_38058226\Prop_66591454\Prof_22222222222.xml</Profile>
</Property>
</Account>
<Account ID="38058226">
<Property ID="66591455">
<Profile ID="000000">\Acct_38058226\Prop_66591454\Prof_000000.xml</Profile>
</Property>
</Account>
<Account ID="38058227">
<Property ID="66591454">
<Profile ID="000000">\Acct_38058226\Prop_66591454\Prof_000000.xml</Profile>
</Property>
</Account>
</Master>
The output I'm looking for is:
<Master>
<Account ID="38058226">
<Property ID="66591454">
<Profile ID="111234">\Acct_38058226\Prop_66591454\Prof_111234.xml</Profile>
<Profile ID="22222222222">\Acct_38058226\Prop_66591454\Prof_22222222222.xml</Profile>
</Property>
<Property ID="66591455">
<Profile ID="000000">\Acct_38058226\Prop_66591454\Prof_000000.xml</Profile>
</Property>
</Account>
<Account ID="38058227">
<Property ID="66591454">
<Profile ID="000000">\Acct_38058226\Prop_66591454\Prof_000000.xml</Profile>
</Property>
</Account>
</Master>
I'm using XSLT 1.0. The xml keeps on expanding every night. I'm very new to xml/xslt. I spent hours in my hand in studying it but the delivery is very near and hence seeking the help. The hint which I got is that I might have to use the Muenchian Grouping, forming the keys and grouping. I'm still learning and not able to create the logic for myself yet. Thanks in advance!!