Actions
Bug #5047
closedWhitespace stripping in DocumentBuilder ignores xml:space
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
Actions