Share via


node-set Function (Compact 2013)

3/26/2014

Enables you to convert a tree into a node set. The resulting node always contains a single node and the root node of the tree.

Syntax

msxsl:node-set(string)

Parameters

  • string
    Specifies a node tree.

Return Value

Enables you to convert a tree into a node set. The resulting node always contains a single node and the root node of the tree.

Remarks

With earlier versions of the Microsoft® XML Parser (MSXML), it was possible to use expressions such as <xsl:for-each select="$var/el">, where var is an XSL Transformations (XSLT) variable bound to a result tree. However, this approach does not work with MSXML 3.0. To achieve the same results, use the node-set function, as shown in the following code sample.

<xsl:for-each select="msxsl:node-set($var/el)">

See Also

Reference

XSLT Functions