[xsl] copy all attributes but one

Subject: [xsl] copy all attributes but one
From: "Morris, Chris" <ChrisM@xxxxxxxxxxxxxxxx>
Date: Wed, 17 Jan 2001 13:24:57 -0600
I've used the following successfully for copying all but one node:

    <xsl:copy-of select="*[not(self::DoNotCopyElement)]" />


I tried the same for attributes, but this doesn't work - it copies all
attributes:

    <xsl:copy-of select="@*[not(attribute::DoNotCopyAttribute)]" />


I did get this to work, but it doesn't seem as direct:

    <xsl:copy-of select="attribute::*[not(name()='DoNotCopyAttribute')]" />


Chris Morris
chrism@xxxxxxxxxxxxxxxx


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread