Nico Van Cleemput wrote:
Nevermind, I already found what I was doing wrong:
<xsl:template match="myhtml">
<xsl:apply-templates select="child::node()"/>
</xsl:template>
Yes, you got it. xsl:copy does a shallow copy of the context node
(it is like a deep copy, but for the elements an empty element of the
same name is created). So if you don't want to copy the node, don't
use xsl:copy.
child:: is the default axis, so in general child::node() is simply
written as node(). Matter of taste.
<xsl:template match="//mytag">
blabla
</xsl:template>
The descendant axis is not required at the beginning of a pattern.
It sounds more like obfuscation, I think. match="mytag" does the same
thing.
Regards,
--drkm
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur
Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
--~------------------------------------------------------------------
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>
--~--