Subject: RE: Exclusion in path
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Wed, 04 Oct 2000 18:19:02 +0100
|
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
|