Re: [xsl] remove certain elements but keep children

Subject: Re: [xsl] remove certain elements but keep children
From: Oleg Tkachenko <oleg@xxxxxxxxxxxxx>
Date: Mon, 04 Oct 2004 11:18:45 +0200
Ben Munat wrote:

I'm trying to come up with an xpath or xsl template(s) that will remove the output tags, while leaving their child html and without producing duplicate content.

Changing something while preserving the rest is done using identity transformation:


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

<xsl:template select="output">
  <!-- Omit me -->
  <xsl:apply-templates select="node()"/>
</xsl:template>

--
Oleg Tkachenko
http://blog.tkachenko.com
Multiconn Technologies, Israel

Current Thread