Read XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition Online
Authors: Michael Kay
In this strange Orwellian world where some values seem to be more equal than others, the one consolation is that
$X=$Y
always means the same as
$Y=$X
.
Although
!=
is often best avoided, it can be useful to test whether all items in a sequence have the same value. For example, writing
$documents//version
whose numeric value is not 1.0. However, it is probably less confusing to write the above test as: