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?
Nevermind, I already found what I was doing wrong:
<xsl:template match="myhtml">
<xsl:apply-templates select="child::node()"/>
</xsl:template>
<xsl:template match="*">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="//mytag">
blabla
</xsl:template>
Gives the desired result.
Thanks very much.
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>
--~--