Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8545

Re: XSLT Mapping issue

$
0
0

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">&lt;br&gt;</xsl:variable>

  <xsl:variable name="tableB">&lt;table BORDER="5"&gt;</xsl:variable>

  <xsl:variable name="tableE">&lt;/table&gt;</xsl:variable>

  <xsl:variable name="trB">&lt;tr&gt;</xsl:variable>

  <xsl:variable name="trE">&lt;/tr&gt;</xsl:variable>

  <xsl:variable name="tdB">&lt;td&gt;</xsl:variable>

  <xsl:variable name="tdE">&lt;/td&gt;</xsl:variable>

  <xsl:variable name="nbsp"> </xsl:variable>

  <xsl:variable name="thB">&lt;tr BGCOLOR="#CCCC99"&gt;</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


Viewing all articles
Browse latest Browse all 8545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>