Project

Profile

Help

Bug #5047

closed

Whitespace stripping in DocumentBuilder ignores xml:space

Added by Michael Kay almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2021-07-24
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

During Saxon-CS development I created a new unit test TestDocumentBuilder.TestCustomWhitespacePolicyWithXmlSpace and found that it fails when retrofitted to Saxon 10. The test is designed to ensure that no whitespace stripping occurs for descendants of an element with @xml:space="preserve".

The Stripper class, which is implementing the whitespace stripping, is designed to take account of xml:space, but in this case it seems to ignore it. Note that this class is also used for standard XSLT-based whitespace stripping, so the bug could affect that too.

Please register to edit this issue

Also available in: Atom PDF