Hi,
Sorry for noise again, but David did provide a possibly better option as in:
<xsl:copy-of select="@* except (attribute(name1), attribute(name2),
attribute(name3), attribute(name4))"/>
Thanks,
ac
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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--