身份模板长这样:
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
<xsl:apply-templates select="@*|node()" />
与<xsl:apply-templates />
相比,是否会选择更多的内容,还是可以将identity模板写成这样?
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates />
</xsl:copy>
</xsl:template>
当我执行以下操作时,到底会选择什么?
<xsl:apply-templates />