generate-id Function (Compact 2013)
3/26/2014
Returns a string that uniquely identifies the node in the node-set argument that is first in document order.
Syntax
string generate-id(node-set?)
Parameters
- node-set
[optional] A node-set.
Return Value
Returns a string that uniquely identifies the node in the node-set argument that is first in document order.
Remarks
The unique identifier must consist of ASCII alphanumeric characters and must start with an alphabetic character. Thus, the string is syntactically an XML name. There is no guarantee that a generated unique identifier will be distinct from any unique IDs specified in the source document. If the node-set argument is empty, the empty string is returned. If the argument is omitted, it defaults to the context node.