The key function returns a node-set of nodes that have the given value for the given key.
The key function returns a node-set of nodes that have the given value for the given key.
key( keyname, value )
keynameA string containing the name of the xsl:key element to be used.
valueThe returned node-set will contain every node that has this value for the given key.
A node set.
xsl:key element defines what attribute on what given elements will be used to match the key.This function is an XSLT-specific addition to XPath. It is not a part of the core XPath function library.
Supported.
© 2005–2022 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/XPath/Functions/key