Export (0) Print
Expand All

key Function

Retrieves elements previously marked with an xsl:key statement.


          node-set key(name, value)

The key() function retrieves a node set (zero or more nodes) that have the same key name and key value specified in the <xsl:key> statement. When the XSLT style sheet is first processed, the keys are stored internally to simplify access. Keys can simplify accessing nodes in the XML document, but may not be faster than using XPath to retrieve the same nodes.

The key() function works in conjunction with the <xsl:key> element. For an example, see <xsl:key> Element.




Build Date:

2012-08-02
Show:
© 2014 Microsoft