Distinguishing errors caused by <xsl:message terminate="yes"> in XSL templates

Hi! (Please Cc me as I'm not subscribed.) I'm using Python 3.4 with lxml 3.4.0. When I forcibly terminate processing of an XSL template using the <xsl:message terminate="yes">...</xsl:message> which results in an instance of the lxml.etree.XSLTApplyError exception being thrown. I'd like to differentiate between "hard" processing erros which might occur during XSLT processing and "soft" errors -- detected by the template logic and reported using <xsl:message> but it seems that the exception type provides no special fields / methods to make such differentiation possible. So the question: is it possible to differentiate XSLT application errors generated by <xsl:message terminate="yes"> from the other errors? Or should I resort to insetring textual prefixes to the messages I'm using -- to check againt them in the exception handling code?
participants (1)
-
Konstantin Khomoutov