You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Duncan Werner <da...@bellatlantic.net> on 2000/02/18 22:48:29 UTC

xsl: copy with attributes

I'm having trouble using xsl:copy and preserving attributes. In the
following tempate, any attributes from the <table> tag will be dumped
out as text in the resulting page. I've looked in a few docs, and
I think I'm doing this right. If anyone has any insight, am I doing this
wrong, or is this behavior not supported in xalan?

<xsl:template match="table">
    <xsl:copy>
        <xsl:apply-templates select="@*"/>
        <xsl:apply-templates/>
    </xsl:copy>
</xsl:template>

thanks,
duncan werner