exist
exist copied to clipboard
[bugfix] - namespace binding conflict errors
Description:
Report an error (XUDY0023) when an insertion is attempted with a node or attribute name in a namespace that conflicts with one which exists in the document.
References:
@see https://github.com/eXist-db/exist/issues/1482
@see https://www.w3.org/TR/xquery-update-30/#dt-conflict
Recursively check node/attributes inserted into a document for namespace conflicts. This change does not look at namespaces introduced in the subtrees being inserted, it appears these correctly respect the namespace in the subtree rather than the declared namespace in the XQuery context in which the insertion happens.
Type of tests:
Added unit tests in binidingConflict.xqm for correct reporting of binding conflict errors