I need to remove some node whith same ID in a xml file using XSLT 2.0. The structure is:
<Root>
<media tipo="immagine" id="1">
<numero>14.1</numero>
</media>
<media tipo="immagine" id="2">
<numero>14.2</numero>
</media>
<media tipo="immagine" id="1">
<numero>14.1</numero>
</media>
</Root>
and the result must be:
<Root>
<media tipo="immagine" id="1">
<numero>14.1</numero>
</media>
<media tipo="immagine" id="2">
<numero>14.2</numero>
</media>
</Root>
I have multiple with the same attribute ID value. Thanks
Assuming the id is all you want to compare and check use