Share via


key Function (Windows Embedded CE 6.0)

1/6/2010

Retrieves elements previously marked with an xsl:key statement.

Syntax

            node-set key(name, value)

Parameters

  • name
    Element name.
  • value
    Key value.

Return Value

Elements previously marked with xsl:key which match the name and value specified in the arguments.

Remarks

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 XSL Transformations (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 XML Path Language (XPath) to retrieve the same nodes.

See Also

Reference

XPath Node-Set Functions