Actions
Bug #6524
openxsl:message from stylesheets executed with fn:transform() cannot be obtained by message consummer
Start date:
2024-09-04
Due date:
% Done:
0%
Estimated time:
Legacy ID:
Applies to branch:
12
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:
Description
When using the fn:transform() inside a stylesheet I am not getting the output of xsl:message from the inner stylesheet in the message consummer. It is listed in the console though.
If I set a message consumer like: net.sf.saxon.s9api.AbstractXsltTransformer.setMessageHandler(Consumer), I receive only the message from the "main.xsl" and the one from "external.xsl" if only written in the console.
Files
Updated by Mircea Enachescu 18 days ago
We managed to resolve this by patching the
net.sf.saxon.functions.TransformFn.call(XPathContext, Sequence[]): line 636
by adding the following code:
if (context.getController() instanceof XsltController) {
transformer.setMessageHandler(
((XsltController) context.getController()).getMessageHandler());
}
Regards, Mircea
Please register to edit this issue
Actions