Project

Profile

Help

Bug #3894

closed

Output properties item-separator and saxon:newline should not be whitespace-stripped

Added by Michael Kay about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Serialization
Sprint/Milestone:
-
Start date:
2018-09-04
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.8, trunk
Fix Committed on Branch:
9.8, trunk
Fixed in Maintenance Release:
Platforms:

Description

Saxon is performing whitespace stripping on all serialization parameters supplied to xsl:output or xsl:result-document.

The is not appropriate for all parameters, in particular item-separator and saxon:newline.

The method ResultDocument.setSerializationProperty() refrains from doing space-stripping in the case of item-separator (but not saxon:newline), but in the case of parameters supplied to xsl:output and xsl:result-document the damage has already been done by then.

It's possible to get values containing spaces through from the command line (!saxon:newline=" ") though I haven't found a way to get newlines and carriage returns through this interface - no doubt it depends on the shell interpreter in use. Presumably this means it's also possible via the Java API.

Please register to edit this issue

Also available in: Atom PDF