Re: [xsl] combination of copy-of and apply-templates

Subject: Re: [xsl] combination of copy-of and apply-templates
From: Nico Van Cleemput <Nicolas.VanCleemput@xxxxxxxx>
Date: Wed, 22 Nov 2006 13:00:34 +0100
On 22 Nov 2006, at 11:42, Florent Georges wrote:

Look for the Modified Identity Template in the archives or in the FAQ.

Thanks,


this helped me quite a bit already. I made this template:

    <xsl:template match="myhtml">
      <xsl:copy>
        <xsl:apply-templates select="child::node()"/>
      </xsl:copy>
    </xsl:template>

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

    <xsl:template match="//mytag">
        blabla
    </xsl:template>

This does exactly what I want except for one thing: it also copies the myhtml tag. What am I doing wrong?

Regards,
Nico

Current Thread