2010-08-25 153 views

回答

2

使用标识转换加空模板匹配node_a。

<?xml version="1.0" encoding="UTF-8"?> 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> 
    <xsl:template match="@*|node()"> 
    <xsl:copy> 
     <xsl:apply-templates select="@*|node()"/> 
    </xsl:copy> 
    </xsl:template> 
    <xsl:template match="node_a"/> 
</xsl:stylesheet> 

工作在两个XSLT1和XSLT2

+0

这奏效了!谢谢。 – 2010-08-25 16:10:43

+0

+1。这是要走的路。 – 2010-08-25 16:10:47