xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] copy attributes, except some


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

Hi,

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,
ac


Current Thread
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor