Project

Profile

Help

Bug #6494

closed

Whitespace text output disappears when indenting

Added by Nathan Claeys about 2 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Serialization
Sprint/Milestone:
-
Start date:
2024-07-31
Due date:
% Done:

0%

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

Description

The concat(string,string,string*) function allows the xslt transformation to concatenate as many strings as needed into one string.

However, starting from Saxon HE 10.0, this concat function has been broken for stream results apparently. It no longer properly concatenates strings that are only spaces. It seems the concatenation ignores sequences of space-only strings in the concatenate and only uses the last space string in such a sequence of strings.

Example: concat('A', ' ', ' ', 'B') results in 'A B' and not the expected 'A B'

The test project contains several concatenate calls with a unit test for a DOM result and for a stream result.

The concat(string,string) functionality does work, and using the concat(string,string,string*) with a DOM result also works as expected.


Files

whitespace-test.zip (7.88 KB) whitespace-test.zip test project Nathan Claeys, 2024-07-31 16:49

Please register to edit this issue

Also available in: Atom PDF