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 =
> -----Urspr=FCngliche Nachricht-----
> Von: Merico Raffaele
> Gesendet: Mittwoch, 20. Dezember 2006 10:07
> An: 'saxon-help@...'
> Betreff: Help on Sequence Expression
> Dear Community
> I'm using SaxonB 8.8j and I'm trying to get the nodes that are not =
> a sequence with an expression as follows:
> <xsl:value-of select=3D"/data[@name !=3D ('locale', 'obid')]/@name"/>
> But I always get the following result:
> locale obid pageType mpid srcUri
> What do I do wrong, for your support many thanks in advance
On 12/20/06, Merico Raffaele <raffaele.merico@...> 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
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
(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).
Jens Teubner, jens.teubner@...
Get latest updates about Open Source Projects, Conferences and News.