2010-08-25 150 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