The expression
.!='oranges' or .!='tomatoes'
is always true. If the value of "." is 'oranges', then .!='tomatoes' is true; if the value is 'tomatoes', then .!='oranges' is true, and if it's anything else, then both are true.
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference