RE: Q XSLT: How to copy elements with XT?

Subject: RE: Q XSLT: How to copy elements with XT?
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Tue, 26 Sep 2000 18:11:21 +0100
> 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


Current Thread