This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Exclusion in path


Thanks all.
Lee

    > -----Original Message-----
    > From: Jeni Tennison [mailto:mail@jenitennison.com]
    > >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


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]