Row Number in XSLT

Preorteri

New Member
There is one XML file that contains duplicate Ids.I want to add some row number based on that duplicate IDs.Example XML File like below :\[code\]<ROOT><record1> <ID>123</ID> <Name>abc</Name></record1><record2> <ID>123</ID> <Name>def</Name></record2><record3> <ID>456</ID> <Name>ghi</Name></record3></ROOT>\[/code\]I need this in following format ::\[code\]<ROOT><record1> <ID>123_1</ID> <Name>abc</Name></record1><record2> <ID>123_2</ID> <Name>def</Name></record2><record3> <ID>456</ID> <Name>ghi</Name></record3></ROOT>\[/code\]Can any put me in right way, how to write a XSL for this ?Thanks
 
Back
Top