Input:
<data>
<root>
<name>A</name>
<name>B</name>
</root>
<root>
<name>C</name>
<name>D</name>
<name>A</name>
</root>
</data>
Output:
<data>
<root>
<name>A</name>
<name>B</name>
<name>C</name>
<name>D</name>
</root>
</data>
User enters data in name element of two different nodes. So i want a XSLT which combines two nodes and removes the duplicate values. I tried, but it is not working. Please help me.