[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

    <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

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

Current Thread