Throwing error from XSL map

I am using XSLT map. I have following piece of code in the XSLT map.

<xsl:if test=“not(PONumber/test)”>
<xsl:message terminate=“yes”>Missing expression</xsl:message>
<xsl:value-of select=“PONumber/test” />

I see the service-pub.xslt.Transformations:transformSerialXML terminates with the error-Stylesheet directed termination.

But it does not return my custom error message-“Missing expression”.


Is it supposed to? An XSL processor should output the message in some kind of output/console/stderr, but I’m not sure the service should return the message as the error text in the exception thrown (though it would be very intuitive, I agree).