xsl-list
[Top] [All Lists]

RE: [xsl] Use of xsl:apply-templates exception with an element

2009-09-26 17:30:36
I need to 
copy only the attributes of the current node that are not 
also in $new, in a namespace safe way, with XSLT 2

Looks like a case for node-name().

<xsl:copy-of select="@*[not(node-name(.) = $new/@*/node-name(.))]"/>

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 


--~------------------------------------------------------------------
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>
--~--