This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Is "A != B" equivalent to "not(A = B)"?
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Sat, 27 Apr 2002 18:58:43 +0100
- Subject: RE: [xsl] Is "A != B" equivalent to "not(A = B)"?
- Reply-to: xsl-list at lists dot mulberrytech dot com
> I've got a stylesheet that produces different results depending on
> whether I use "A != B" or "not(A = B)"? Is this supposed to happen?
> Can someone explain why? It's not very intuitive.
When A and B are node-sets,
A != B
means
some $a in A, $b in B satisfies $a != $b
while
not( A = B )
means
not( some $a in A, $b in B satisfies $a = $b )
(the expansions, by the way, are legal XPath 2.0 expressions)
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list