The <xsl:key> element declares a named key which can be used elsewhere in the stylesheet with the key( ) function.
The <xsl:key> element declares a named key which can be used elsewhere in the stylesheet with the key( ) function.
<xsl:key name=NAME match=EXPRESSION
use=EXPRESSION />
nameSpecifies a name for this key. Must be a QName.
matchDefines the nodes for which this key is applicable.
useSpecifies an XPath expression that will be used to determine the value of the key for each of the applicable nodes.
None.
Top-level, must be the child of <xsl:stylesheet> or <xsl:transform>.
XSLT, section 12.2.
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/XSLT/Element/key