I use Saxon XSLT version 9.6.0.1. A stylesheet contains this code:
...
<xsl:message terminate="yes">errormessage</xsl:message>
...
My application terminates as expected with this exception:
net.sf.saxon.expr.instruct.TerminationException: Processing terminated by xsl:message at line 45 in
at net.sf.saxon.expr.instruct.Message.processLeavingTail(Message.java:253) at net.sf.saxon.expr.instruct.Message.processLeavingTail(Message.java:253)
at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:822)
Now I am wondering where the "errormessage" text actually goes. I can see it on stderr but need to display it to the user or put it into the logfile.
How can I programmatically access the message text?