xsl-list
[Top] [All Lists]

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

2006-11-22 05:02:07

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--