You can send messages to the using application via xsl:message:
Syntax:
<xsl:message terminate='yes'>Halt and catch fire.</xsl:message>
The 'terminate' attribute controls whether the XSLT processor stops.
'terminate' defaults to 'no'.
The spec says:
"If the terminate attribute has the value yes, then the XSLT processor should terminate processing after sending the message."