我不明白下面这句话的意思:
<xsl:template match="/|@*|node()">
<xsl:apply-templates match="@*|node()"/>
</xsl:template>
请帮助我..
<xsl:template match="local-name()='status'"/>
<xsl:template match="/|@*|node()">
<xsl:copy>
<xsl:apply-templates match="@*|node()"/>
<xsl:copy>
</xsl:template>
如果我这样应用,它会忽略我的XML中的<status>
节点,这是怎么发生的?
xsl:apply-templates
中的match
应该改为select
。 - Daniel Haleyapply-templates
片段中的错误,我已经进行了更正。 - Martin Honnen