fn:key

Returns the nodes that match a supplied key value. See xsl:key for more on keys.

key($key-name as xs:string, $key-value as xs:anyAtomicType*) ➔ node()*

Arguments

 

$key-name

xs:string

The name of the key

 

$key-value

xs:anyAtomicType*

The key value

Result

node()*

key($key-name as xs:string, $key-value as xs:anyAtomicType*, $top as node()) ➔ node()*

Arguments

 

$key-name

xs:string

The name of the key

 

$key-value

xs:anyAtomicType*

The key value

 

$top

node()

Used to specify a subtree

Result

node()*

Namespace

http://www.w3.org/2005/xpath-functions

Links to W3C specifications

XSLT 3.0 Specification