fn:key
Returns the nodes that match a supplied key value. See xsl:key for more on keys.
key($key-name as (xs:string | xs:QName), $key-value as xs:anyAtomicType*, $top as node():=/) ➔ node()*
Arguments | ||||
| $key-name | (xs:string | xs:QName) | 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
Saxon availability
Available in XSLT 2.0 and later versions. Available in all Saxon editions. Available for all platforms.