ThomasM: Bestimmte Knoten (Elemente) ignorieren

Beitrag lesen

Hallo Michael,

ich möchte gerne das Element <bork> mit dem Attribut mama="raus" während der Transformation ignorieren.

Verwende:

<xsl:template match="bork[@mama='raus']"/>

in Verbindung mit dem Identity-Template:

<xsl:template match="@* | node()">  
  <xsl:copy>  
    <xsl:apply-templates select="@* | node()"/>  
  </xsl:copy>  
</xsl:template>

Grüße,
Thomas