Value Comparisons

Value comparisions: eq, ne, lt, le, gt, ge

Compare exactly two atomic values.

$book/author eq "Kennedy"

is true if and only if $book has exactly one author and that author is “Kennedy”.

Errors are raised if the comparison is not between two values or if the values cannot be compared.