Easy Tutorial
❮ El Namespace Alias El Import ❯

XSLT generate-id() Function



Definition and Usage

The generate-id() function returns a unique string identifier for the specified node.

If the specified node-set is empty, it returns an empty string. If the node-set parameter is omitted, it defaults to the current node.


Syntax

Parameters

Parameter Description
node-set Optional. Specifies the node-set for which to generate a unique id.

Example 1

View XML File, View XSL File, View Result.

❮ El Namespace Alias El Import ❯