Re: [xsl] how to select all nodes except for one with specific name

Subject: Re: [xsl] how to select all nodes except for one with specific name
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Sat, 20 Jun 2009 17:25:47 +0200
Dmitri Snytkine wrote:

I need to select all child nodes except for the 'label'

With XSLT/XPath 2.0 it is exactly <xsl:apply-templates select="node() except label"/> With XSLT 1.0 you can use <xsl:apply-templates select="node()[not(self::label)]"/>


If you are only interested in element child nodes and not all kind of child nodes then use
* except label
respectively
*[not(self::label)]
--


	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

Current Thread