Partager via


node-set Function

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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