RE: [xsl] copy-of question

Subject: RE: [xsl] copy-of question
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 19 Apr 2001 11:19:30 +0100
> how can I extract only one element in original form?
> copy-of seems to work here, but I have all the other unwanted
> tags also as
> plain text.
> Is this related to the default rules?
>   <xsl:template match="TABLE">
>     <xsl:copy-of select="."/
>   </xsl:template>

This is fine in itself, but it depends how you call it.

If you do

<xsl:template match="/">
  <xsl:apply-templates select="(//TABLE)[1]"/>

then your output will be a deep copy of the first TABLE element in the

Mike Kay
Software AG

 XSL-List info and archive:

Current Thread