This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Q XSLT: How to copy elements with XT?
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Q XSLT: How to copy elements with XT?
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Tue, 26 Sep 2000 18:11:21 +0100
- Reply-To: xsl-list at mulberrytech dot com
> The problem is that I do not know how apply templates to my elements
> only and copy XHTML tags into result file without changes.
Write a default template that copies elements:
<xsl:template match="*">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
And then specific template rules for your own elements that do something
different.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list