Project

Profile

Help

Bug #5756

closed

SaplingElement has incorrect NamespaceMap, resulting in spurious `xmlns=""`

Added by Michael Kay about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2022-12-06
Due date:
% Done:

100%

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

Description

When a SaplingElement is created, with a no-namespace element name, it is given a NamespaceMap containing the namespace binding xmlns="". As the documentation for class NamespaceMap makes clear, the map should never contain any namespace undeclarations.

The consequence is that when the SaplingElement is serialised, a spurious xmlns="" may appear in the serialised output.

The SaplingElement is used in the implementation of the sql:query extension instruction, and the bug manifests itself as incorrect output for test case sql-005.

Please register to edit this issue

Also available in: Atom PDF