[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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@xxxxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|