This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
copy all attributes but one
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] copy all attributes but one
- From: "Morris, Chris" <ChrisM at SNELLINGCORP dot COM>
- Date: Wed, 17 Jan 2001 13:24:57 -0600
- Reply-To: xsl-list at lists dot mulberrytech dot com
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@snellingcorp.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list