I'm not sure why that wouldn't work, but here's the identity template I use
in my stylesheets:
<xsl:template match="node() | @*">
<xsl:copy>
<xsl:apply-templates select="node() | @*"/>
</xsl:copy>
</xsl:template>
This was taken from the XSLT specification, it's called the "identity"
template. Like I said, I don't know why yours didn't work, but I've used
this one with Xalan before.
On Monday 11 February 2002 05:22, Raber Chris wrote:
> I am trying to write a block of XSL to copy elements
> and their attributes. The code is:
>
> <xsl:template match="*">
> <xsl:copy>
> <xsl:copy-of select="@*"/>
> <xsl:apply-templates/>
> </xsl:copy>
> </xsl:template>
>
> It kind of works but not all attributes are
> consistently copied. Is this a Xalan bug or is there
> something wrong with this XSL code?
>
> TIA,
>
> -Chris.
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE Valentine eCards with Yahoo! Greetings!
> http://greetings.yahoo.com
--
Peter Davis
Almost anything derogatory you could say about today's software design
would be accurate.
-- K.E. Iverson