Incorrect check for sequence of >item
The Saxon XSLT and XQuery processor, developed by Saxonica
Brought to you by:
mhkay
In some contexts where a single item is required (for
example, the operands of "eq"), Saxon is not detecting
that a sequence of more than one item is supplied, and
is simply using the first item in the sequence.
Source code fixed, test cases added {type912err,
type913err}