Selecting unique elements using XSLT.
- by AJ
I have the following XML:
<option>
<title>ABC</title>
<desc>123</desc>
</option>
<option>
<title>ABC</title>
<desc>12345</desc>
</option>
<option>
<title>ABC</title>
<desc>123</desc>
</option>
<option>
<title>EFG</title>
<desc>123</desc>
</option>
<option>
<title>EFG</title>
<desc>456</desc>
</option>
Using XSLT, I want to transform it into:
<choice>
<title>ABC</title>
<desc>123</desc>
<desc>12345</desc>
</choice>
<choice>
<title>EFG</title>
<desc>123</desc>
<desc>456</desc>
</choice>