Node Comparisons

Node comparisons: is, <<, >>

The is operator compares two nodes for equality (are they the same node?). The operators << and >> compare document order of nodes.

$book/author is key('authors', 'kennedy')

is true if and only if $book has exactly one author and that author element is the same as the one returned by the key expression.