I have done this
<xsl:template match="*">
<pattern id="{@*[1]}">
<xsl:copy>
<xsl:apply-templates mode="no-attributes"/>
</xsl:copy>
</pattern>
</xsl:template>
<xsl:template match="*" mode="no-attributes">
<xsl:copy>
<xsl:apply-templates mode="no-attributes"/>
</xsl:copy>
</xsl:template>
which seems cumbersome when what I really want to do is
<xsl:template match="*">
<pattern id="{@*[1]}">
<xsl:copy-of select="node() except @*"/>
</pattern>
</xsl:template>
idea being to deep copy leaving the attribute nodes behind although
that syntax will not do that.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--