xsl-list
[Top] [All Lists]

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

2009-06-20 11:26:15
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/

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

<Prev in Thread] Current Thread [Next in Thread>