Add the following call in XSLT modules to generate a message when a specific condition occurs:
<xsl:call-template name="output-message">
<xsl:with-param name="id">prefixnumberletter</xsl:with-param>
<xsl:with-param name="msg">Message text and parameters.</xsl:with-param>
</xsl:call-template>
Use the ctx parameter if calling from a function.