Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

XSLT node-set() function


May 28, 2021 XSL T


Table of contents


XSLT function reference manual

This section is a brief introduction to the node-set() function in XSLT.

Definitions and usages

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

For earlier versions of Microsoft XML Core Services (MSXML), you can use expressions such as "$var/el" and so on, where var is an XSLT variable bound to the result tree. H owever, this method does not apply to MSXML version 3.0 and later. To get the same results in these later MSXML, use the node-set function, as shown in the following code example.

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

Grammar

msxsl:node-set(string)