generate-id Function

Returns a string that uniquely identifies the node in the node-set argument that is first in document order.

string generate-id(node-set?)

Parameters

  • node-set
    [optional] A node-set.

Return Values

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.

Requirements

None.

See Also

XSLT Functions

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.