Subject: Re: Filtering out a specific attribute
From: "Mark Wilson" <mark@xxxxxxxxxxxx>
Date: Mon, 9 Nov 2009 06:06:30 -0800
|
Neat! I'm using XSLT 2.0.
Thanks Martin.
Mark
--------------------------------------------------
From: "Martin Honnen" <Martin.Honnen@xxxxxx>
Sent: Monday, November 09, 2009 5:53 AM
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Filtering out a specific attribute
Mark Wilson wrote:
I know that <xsl:copy-of select="Heading/@*"/> copies all of the
attributes. How do I copy all the attributes except a specific one, say:
@id ?
With XSLT 2.0 you can literally write that
<xsl:copy-of select="Heading/@* except Heading/@id"/>
--
Martin Honnen
http://msmvps.com/blogs/martin_honnen/
|