Mar 6, 20090
Unique ID for each node in an XML file [en]
Well this is just a little, everyday task: I'm currently working on the Sto International Website and needed to modify an XML file so that each of its nodes has a unique ID assigned. The fastest way to achieve this is a very simple XSL transformation like the one below: <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" indent="yes" /> <!-- This stylesheet just assigns a unique ID to each node in the XML ...



