Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

XSLT generate-id() Function

XSLT generate-id() Function


XSLT Function Reference Object Complete XSLT function reference


Definition and Usage

The generate-id() function returns a string value that uniquely identifies the specified node.

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


Syntax

string generate-id(node-set?)

Parameters

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

Example 1

xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

Artists:


Artist:


Title:


Price:


View the XML file、 View the XSL file、 View the result。


XSLT Function Reference Object Complete XSLT function reference