Usage of terminate="yes" impact the return value of xsltApplyStylesheetInternal
I used terminate="yes" in the XSLT, it return XSLT_STATE_STOPPED state.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xsl:stylesheet>
<xsl:template match="configuration">
<xsl:message terminate="yes"/>
</xsl:template>
</xsl:stylesheet>
when xsltApplyStylesheetInternal reads the state it returns NULL except STATE_OK which is not expected. It should return only for the ERROR STATE.