Project

Profile

Help

Bug #2213

closed

Comparing QName to untypedAtomic crashes

Added by Michael Kay about 10 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XPath conformance
Sprint/Milestone:
Start date:
2014-11-06
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
9.6
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:
Platforms:

Description

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)


Related issues

Has duplicate Saxon - Bug #2223: Comparing untyped atomics with QNamesClosed2014-11-16

Actions

Please register to edit this issue

Also available in: Atom PDF