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

XSLT key() Function

XSLT key() Function


XSLT Function Reference Object Complete XSLT function reference


Definition and Usage

The key() function returns a node-set from the document by using the xsl:key index number specified by the element.


Syntax

node-set key(string, object)

Parameters

Parameters Description
string Required. Specifies the name of the xsl:key element.
object Required. The string to search for.

Example 1

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

Title:


Artist:


Price:

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


XSLT Function Reference Object Complete XSLT function reference