## saxon-help

 [saxon] Solved: Help on Sequence Expression From: Merico Raffaele - 2006-12-20 09:27:16 ```I solved the problem by changing the expression to=20 not([@name !=3D ('locale', 'obid')). But I'm still wondering why the =3D and !=3D operators are not inverses = of each other? Best regards, Raffaele =20 > -----Urspr=FCngliche Nachricht----- > Von: Merico Raffaele > Gesendet: Mittwoch, 20. Dezember 2006 10:07 > An: 'saxon-help@...' > Betreff: Help on Sequence Expression >=20 > Dear Community >=20 > I'm using SaxonB 8.8j and I'm trying to get the nodes that are not = part of > a sequence with an expression as follows: > >=20 > But I always get the following result: > locale obid pageType mpid srcUri >=20 > What do I do wrong, for your support many thanks in advance >=20 > Raffaele ```
 Re: [saxon] Solved: Help on Sequence Expression From: Jens Teubner - 2006-12-21 13:43:57 ```On 12/20/06, Merico Raffaele wrote: > > I solved the problem by changing the expression to > not([@name != ('locale', 'obid')). > > But I'm still wondering why the = and != operators are not inverses of each > other? This is because of XQuery's existential semantics. Consider (1) = (1,2) . This evaluates to true, because there is at least one combination of items from the left and the right sequence such that they are equal (1 and 1). (1) != (1,2) also evaluates to true, because there is at least one combination of items from left and right, such that they are not equal (1 and 2). Regards, Jens -- Jens Teubner, jens.teubner@... ```