Comparing QName to untypedAtomic crashes
According to the XPath 3.0 specification, given the expression ($p = $q) where $p is untypedAtomic and $q is a QName, the comparison should be done after casting $p to a QName using the namespaces present in the static context. Instead, Saxon crashes:
java.lang.UnsupportedOperationException: Cannot validate a QName without a namespace resolver
See QT3 test case -s:prod-GeneralComp.eq -t:GenCompEq-22 (contributed by Saxonica)
#1 Updated by Michael Kay almost 5 years ago
- Status changed from New to In Progress
A complete fix has been made on the 9.7 branch; this involves saving the namespace context for every general comparison, which is expensive. For 9.6 a partial fix is being committed for now as a patch; the effect of the fix is to make this situation a dynamic error rather than a crash.
Please register to edit this issue