Hi,
I have an XML like this
<ContractInfo ContractNo="12345">
<Details LastName="Goodchild">
<Filedata FileName="File1"/>
</Details>
</ContractInfo>
<ContractInfo ContractNo="12345">
<Details LastName="Goodchild">
<Filedata FileName="File2"/>
</Details>
</ContractInfo>
<ContractInfo ContractNo="123456">
<Details LastName="Goodchild">
<Filedata FileName="File2"/>
</Details>
</ContractInfo>
I want my output XML to be like this
<ContractInfo ContractNo="12345">
<Details LastName="Goodchild">
<Filedata FileName="File1"/>
<Filedata FileName="File2"/>
</Details>
</ContractInfo>
<ContractInfo ContractNo="123456">
<Details LastName="Goodchild">
<Filedata FileName="File2"/>
</Details>
</ContractInfo>
Here, the 'FileData' pertaining to matching "contractNo" needs to be combined at the output. Can this transformation be achieved with XSLT?
Thanks in advance.
Srini