xsl-list
[Top] [All Lists]

Re: [xsl] Stuck with select distinct

2008-11-12 05:05:34
In order to exclude Red and Blue, use a predicate:

//colour[not(.='Red' or 'Blue')]

Oops: this should of course be

//colour[not(.='Red' or .='Blue')]

Or in 2.0 you can do:

//colour[not(. = ('red', 'green'))]"
        
or even

//colour except //colour[. = ('red', 'green')]"




-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

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