The generate-id
function generates a unique id for the first node in a given node-set and returns a string containing that id.
The generate-id
function generates a unique id for the first node in a given node-set and returns a string containing that id.
generate-id( [node-set] )
node-set
(optional)An id will be generated for the first node in this node-set. If omitted, the current context node will be used.
A string containing the generated id.
This function is an XSLT-specific addition to XPath. It is not a part of the core XPath function library.
Supported.
© 2005–2022 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/XPath/Functions/generate-id