Subject: RE: copy all attributes but one
From: "Morris, Chris" <ChrisM@xxxxxxxxxxxxxxxx>
Date: Thu, 18 Jan 2001 07:26:16 -0600
|
> <xsl:copy-of select="@*[generate-id(.) !=
> generate-id(../@DoNotCopyAttribute)]" />
>
> or:
>
> <xsl:copy-of select="@*[count(.|../@DoNotCopyAttribute) !=
> count(../@DoNotCopyAttribute)]" />
>
> whichever you find easiest to read or is quicker with your processor.
IMO, I find this:
<xsl:copy-of select="attribute::*[not(name()='DoNotCopyAttribute')]" />
... to read better than either of those -- does this not perform well?
Chris
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|