I am using Saxon XSLT version 9.6.0.1. The style sheet contains this code:
...
<xsl:message terminate="yes">errormessage</xsl:message>
...
My application ends 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 wonder where the text "errormessage" really goes. I see this on stderr, but should display it to the user or put it in a log file.
How can I programmatically access the message text?
Hiran source
share