This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

copy all attributes but one


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]