Bug #5289
closed
xsl:message adds an unnecessary new line
Applies to branch:
11, trunk
Fix Committed on Branch:
11, trunk
Fixed in Maintenance Release:
Description
With version 10.6, the output of xsl:message looks like this:
whereas with version 11.1 unnecessary new lines are added:
Files
So, with Saxon 11 you get a new, blank line after each output of a single xsl:message
instruction? Or new lines inserted between the several lines of a single xsl:message
?
The StandardMessageHandler
writes by default to a Writer
that sends messages to the configured Logger
, and the default Logger
is adding a newline to each message. But the StandardMessageHandler
is adding a newline as well, because it doesn't know that the Logger
is adding one. Solution not obvious.
Simplest solution is for the standard message handler to refrain from adding the extra newline; if output is to a Logger then you'll get the newline, if it is to a user-supplied Writer destination, then the writer can decide whether to add one or not.
- Category set to Diagnostics
- Status changed from New to Resolved
- Assignee set to Michael Kay
- Priority changed from Low to Normal
- Applies to branch 11, trunk added
- Fix Committed on Branch 11, trunk added
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
- Fixed in Maintenance Release 11.2 added
Bug fix applied in the Saxon 11.2 maintenance release.
Please register to edit this issue
Also available in: Atom
PDF