Plug-in specific xsl:message has been changed in 4.2 #4415
-
Last day I've noticed that my PDF plug-in specific message submitted via xsl:message has been changed when I update DITA-OT from 4.1.2 to 4.2. The word "[General 001W]" means related template name and message number. It is indispensable for stylesheet developers to debug XSLT stylesheet. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You can either use a custom logger or then it may be a bug in the code. See https://github.com/orgs/dita-ot/discussions/4340 for related discussion. |
Beta Was this translation helpful? Give feedback.
-
Could you share exactly what XSLT you use to throw that message? |
Beta Was this translation helpful? Give feedback.
Try to change the log message prefix from
[WARNING][General 001W]
to[General 001W][WARNING]
or better yet[General 001W][WARN]
becauseWARN
is the supported logging level in our loggers, notWARNING
. I think that will fix your issue for now, before we release #4416 in 4.2.1.In addition, if you're using plain
<xsl:message>
to log messages, you should useIn the message body. These are processing-instructions that DITA-OT's logging code from XSLT uses to pass the error code and logging level.