generate id « XSLT stylesheet « XML Tutorial






5.56.generate id
5.56.1.Assign value from generate-id(.) to attribute
5.56.2.for-each select=/addressbook/address[generate-id(.)=generate-id(key(zipcodes, zip)[1])]
5.56.3.generate-id() generates id conforming to XML spec
5.56.4.uses generate-id() to add id to all elements in source XML.