I. , XSLT 1.0 XSLT 1.0, exslt node -set(), .NET XslCompiledTransform.
XSLT 1.0 ext:node-set() , , msxsl:node-set() ( msxsl, ) MSXML.
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ext="http://exslt.org/common"
exclude-result-prefixes="ext xsl">
<xsl:output omit-xml-declaration="yes" indent="yes"/>
<xsl:template match="node()|@*" name="identity">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
<xsl:template match="/">
<xsl:variable name="vrtfPass1">
<xsl:apply-templates select="node()"/>
</xsl:variable>
<xsl:apply-templates mode="pass2"
select="ext:node-set($vrtfPass1)/node()"/>
</xsl:template>
<xsl:template match="/*">
<xsl:copy>
<xsl:copy-of select="@*"/>
<one/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
<xsl:template match="node()|@*" mode="pass2">
<xsl:copy>
<xsl:apply-templates select="node()|@*" mode="pass2"/>
</xsl:copy>
</xsl:template>
<xsl:template match="/*/one" mode="pass2" >
<xsl:call-template name="identity"/>
<two/>
</xsl:template>
</xsl:stylesheet>
, XML-:
<doc/>
:
<doc>
<one/>
<two/>
</doc>
II. XSLT 1.0 XSLT 2.0 XPath, , () XML .
XSLT 2.1 ( 3.0) , , WD , XSLT 3.0- .
III. XslCompiledTransform XPathDocument - XML . , a XPathDocument , , XslCompiledTransform XML-.