|| operator in dynamic XPath does no type checking
In https://saxonica.plan.io/boards/5/topics/6712 Martin Honnen discovered
cities/city!(@country || ', ' || @name) produced a mixture of nodes and strings.
Investigation shows that the dynamic compilation of the
|| operator merely creates a
concat() call around the (compiled) arguments, with no type checking/coercion. (A specific
concat() function call does carry out type checking.)
Please register to edit this issue