Share via


generate-id Function

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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.

See Also

Reference

XSLT Functions