Project

Profile

Help

Bug #4661

closed

Namespace constructor: conflicting default namespaces

Added by Christian Grün almost 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XQuery conformance
Sprint/Milestone:
-
Start date:
2020-07-31
Due date:
% Done:

100%

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

Description

The following expression…

declare default element namespace 'ns';
<x>{
  element a { namespace { '' } { 'ns2' } }
}</x>

…yields a result:

<x xmlns="ns"><_0:a xmlns="ns2" xmlns:_0="ns"/></x>

This expression…

<x xmlns='ns'>{
  element a { namespace { '' } { 'ns2' } }
}</x>

…raises an error (XTDE0430). Is that correct?

Please register to edit this issue

Also available in: Atom PDF