Project

Profile

Help

Bug #6577

closed

xsl:where-populated triggers namespace fixup problem

Added by Johan Gheys 17 days ago. Updated 13 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
XSLT conformance
Sprint/Milestone:
-
Start date:
2024-11-04
Due date:
% Done:

0%

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

Description

When xsl:where-populated is used to conditionally create a root element in a default namespace, the namespace declaration is not on the root element as expected, but on each of its child elements. The attached example illustrates this and gives:

<trains>
	<train xmlns="http://www.infrabel.be/Artemis/Timetable/20080711" ...>...</train>
	<train xmlns="http://www.infrabel.be/Artemis/Timetable/20080711" ...>...</train>
</trains>

while actually the following is expected:

<trains xmlns="http://www.infrabel.be/Artemis/Timetable/20080711">
	<train ...>...</train>
	<train ...>...</train>
</trains>

Files

namespace-fixup.zip (12.8 KB) namespace-fixup.zip Johan Gheys, 2024-11-04 14:58

Please register to edit this issue

Also available in: Atom PDF