This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Excluding nodes
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Excluding nodes
- From: Matthew Bentley <Matthew dot bentley at brookers dot co dot nz>
- Date: Tue, 8 Aug 2000 13:07:40 +1200
- Reply-To: xsl-list at mulberrytech dot com
>How do I match everything except a given node?
>I know //*/* matches any node with an element as a parent. I want to match
>every node with an element as a parent except for one node with a specific
>name (news_detail.)
>Something like -
>//*/*/@!=news_detail ???
Pretty close:
<xsl:template match="//*/*[not(name(.) = 'news_detail')]">
Should do it -
Cheers,
Matt
******************************************************************
Warning: This email, including any attachments,
is for the use of the intended recipient(s) only.
Republication and redissemination,
including posting to news groups or web pages,
is strictly prohibited without the express prior consent of Brooker's Limited.
******************************************************************
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list