Hi
I have found out the problems in your code. Change the below declarations of xsl variable
<xsl:variable name="break"><br></xsl:variable>
<xsl:variable name="tableB"><table></xsl:variable>
<xsl:variable name="tableE"></table></xsl:variable>
<xsl:variable name="trB"><tr></xsl:variable>
<xsl:variable name="trE"></tr></xsl:variable>
<xsl:variable name="tdB"><td></xsl:variable>
<xsl:variable name="tdE"></td></xsl:variable>
<xsl:variable name="nbsp"> </xsl:variable>
<xsl:variable name="thB"><tr BGCOLOR="#CCCC99"></xsl:variable>
The correct way to declare this would be like below
<xsl:variable name="break"><br></xsl:variable>
<xsl:variable name="tableB"><table BORDER="5"></xsl:variable>
<xsl:variable name="tableE"></table></xsl:variable>
<xsl:variable name="trB"><tr></xsl:variable>
<xsl:variable name="trE"></tr></xsl:variable>
<xsl:variable name="tdB"><td></xsl:variable>
<xsl:variable name="tdE"></td></xsl:variable>
<xsl:variable name="nbsp"> </xsl:variable>
<xsl:variable name="thB"><tr BGCOLOR="#CCCC99"></xsl:variable>
Also change this line
<xsl:text>Hi Team \n\r There was an error from SAP ECC while processing IDOC for the interface <ZZZZ>. Below are the details. Please take required action immediately.</xsl:text>
remove the < and > from <zzzz>.
So the correct line would be
<xsl:text>Hi Team \n\r There was an error from SAP ECC while processing IDOC for the interface ZZZZ. Below are the details. Please take required action immediately.</xsl:text>
Make these changes and save the xsl file. Change the imported archive to have the changed XSL file.
Then make a test. Your code should work now.
Let me know if there are any issues.
Thanks
Indrajit