[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

copy attributes, except some

Subject: copy attributes, except some
From: ac <ac@xxxxxxxxxxxxx>
Date: Thu, 29 Oct 2009 02:05:22 -0400
 copy attributes

In XSLT 2.0, assuming that the $excepted-attributes variable is not used anywhere else, and apart from also using an attribute-set in defining the $excepted-attributes variable value xx element, is there a better way to copy all attributes except some specific ones, in a namespace safe way, rather than:
<xsl:variable name="excepted-attributes"><xx name1="" name2="" name3="" name4="" name5="" .../>
<xsl:copy-of select="@*[not(node-name(.) = $excepted-attributes/xx/@*/node-name(.))]"/>

Thank you,

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.