This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Exclusion in path
- To: LGoddard at VHN dot NET
- Subject: RE: Exclusion in path
- From: Jeni Tennison <mail at jenitennison dot com>
- Date: Wed, 04 Oct 2000 18:19:02 +0100
- Cc: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Reply-To: xsl-list at mulberrytech dot com
Lee,
You wrote:
>Is it possible to use an XPATH in an XSL match
>to get all nodes that are not FOO?
Ben Robb wrote:
><xsl:template match="/ROOT/*[not(name() = 'FOO')]>
Or if you really want all *nodes* (i.e. including comments, processing
instructions and text nodes) that are not the *element* FOO, then:
/ROOT/node()[not(self::FOO)]
Cheers,
Jeni
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list