Hi, I have many many XML files that often contain nodes mutiple times (each time with different data). Example:
<?xml version="1.0" encoding="UTF-8"?>
<SomeName>
<Node>
DataA
</Node>
<Node>
DataB
</Node>
<Node>
DataC
</Node>
<AnotherNode>
DataD
</AnotherNode>
<AnotherNode>
DataE
</AnotherNode>
<AnotherNode>
DataF
</AnotherNode>
<SingleNode>
DataG
</SingleNode>
</SomeName>
The desired Output would be:
<?xml version="1.0" encoding="UTF-8"?>
<SomeName>
<Node1>
DataA
</Node1>
<Node2>
DataB
</Node2>
<Node3>
DataC
</Node3>
<AnotherNode1>
DataD
</AnotherNode1>
<AnotherNode2>
DataE
</AnotherNode2>
<AnotherNode3>
DataF
</AnotherNode3>
<SingleNode>
DataG
</SingleNode>
</SomeName>
The Problem is, I don't have a list of all the duplicate Nodenames, so I need the XSLT to run through all nodes and only number those that exist multiple times. Is that possible?
Does anyone have a good idea on how to accomplish that?
Thanks!