Namespace context not available for XSD 1.1 assertions
When an assertion is made against a complex type, Saxon creates a copy of the subtree being validated, and runs the assertion as an XPath expression against this subtree. The copy fails to copy all the in-scope namespace bindings for the element being validated, so if the assertion relies on these namespace bindings being present, it will fail.
A patch is being raised for the 9.4 branch. A test case is being added to the W3C schema test suite.
Please register to edit this issue