Modules | Implementer Page: exsl.node-set.html Function Syntaxnode-set exsl:node-set(object)
The You can also use this function to turn a string into a text node, which is helpful if you want to pass a string to a function that only accepts a node-set. Implementations
The following XSLT processors support
The following processors support earlier versions of
There are currently no third-party implementations of ExamplesFunctionThis use case shows the result of using exsl:node-set() to convert a result tree fragment to a node-set. Source<doc> <one /> <two /> <three /> <four /> </doc> Stylesheet<!-- Test exslt:node-set applied to a result tree fragment -->
<xsl:variable name="tree">
<a>
<b>
<c>
<d />
</c>
</b>
</a>
</xsl:variable>
<xsl:template match="/">
<out>
<xsl:value-of select="count(exslt:node-set(//*))" />
</out>
</xsl:template>Result<out xmlns:exslt="http://exslt.org/common">5</out> |
http://www.exslt.org/exsl/functions/node-set/index.html last modified 2002-11-12