[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Filtering out a specific attribute
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Mon, 09 Nov 2009 14:53:39 +0100
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/

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member