Saxonica.com

saxon:generate-id()

saxon:generate-id($node as node()) => xs:string

This function returns a string that acts as a unique identifier for the supplied node. The identifier will always consist of ASCII letters and digits and will start with a letter.

The function is identical to the XSLT generate-id() function. It is provided as an extension function in the Saxon namespace to make it available in contexts other than XSLT, for example in XQuery.

Next