cancel
Showing results for 
Search instead for 
Did you mean: 

Transformer exception occurred when executing XSLT

Former Member
0 Kudos

Hi Friends,

Currently I am working on standard contents(XI) on IS-Retail.

I want to change standard XSLT mapping.

I done few changes but on testing of Interface mapping I got this error "Transformer exception occurred when executing XSLT"

1.

</xsl:template>

<!-- Comment start for Tender ( Financial Movement )-->

<!-- <xsl:template name="POSLog">

<ns0:POSLog xmlns:ns0="http://sap.com/xi/StoreConnectivity">

<xsl:call-template name="POSLogTransaction"/>

</ns0:POSLog>

</xsl:template> -->

<xsl:template name="POSLog">

<ns0:Z_POSLog xmlns:ns0="http://sap.com/xi/StoreConnectivity">

<xsl:call-template name="POSLogTransaction"/>

</ns0:Z_POSLog>

</xsl:template>

<!-- Comment end for Tender ( Financial Movement )-->

2.

<!-- Changes start for Tender ( Financial Movement ) -->

<xsl:for-each select="GMTLogTransactionLine[TransactionType='B2']">

<xsl:call-template name="CaptureTenderID"/>

</xsl:for-each>

<!-- Changes end for Tender ( Financial Movement ) -->

3.

<!-- Customization for handling Tender ( Financial Transaction ) Begin Here-->

<xsl:template name="CaptureTenderID">

<xsl:if test="following-sibling::GMTLogTransactionLine[1][TransactionType='B2']">

<Tender>

<TenderID>

<xsl:value-of select="following-sibling::GMTLogTransactionLine[TransactionType='B2'][1]/TenderID"/>

</TenderID>

</Tender>

</xsl:if>

</xsl:template>

<!-- Customization for handling Tender ( Financial Transaction ) End Here-->

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Narendra,

It seems you have issues with your xsl mapping. Did you test your xsl map with altova xml spy or stylus studio? Try to test with the same payload as you are testing in xi. It should throw the same error with more detailed info.

Regards,

---Satish

Answers (4)

Answers (4)

stefan_grube
Active Contributor
0 Kudos

When I see it right, then your added code is not part of any template.

If you want to replace the other template from aboce, use the same template tags:

<xsl:template name="POSLog">
<xsl:for-each select="GMTLogTransactionLine[TransactionType='B2']">
<xsl:call-template name="CaptureTenderID"/>
</xsl:for-each>
</xsl:template>

Edited by: Stefan Grube on Apr 14, 2010 1:04 PM

Former Member
0 Kudos

Hi Narendra,

I've encountered this problem in PI 7.1 ehp1 environment. This error was caused when XSL code is generated by Altova mapforce (Enterprise Edition version 2008 rel. 2 sp1) that was installed on my laptop . I was able to ask from my colleague to generate the mfd file on her/his laptop and reuploaded the xsl file. We tested it again, and the issue is resolved.

The cause of my issue was the version that was installed on my laptop. I have to verify it again on what version he/she used. I'll reply as soon as I have it.

Regards,

R-jay

Former Member
0 Kudos

Hi,

What is the exception about ? Any additional info ?

Rgds

Chris

Former Member
0 Kudos

Hello flok,

just have a look into this thread may be you can find the solution

http://xml.apache.org/xalan-j/apidocs/javax/xml/transform/TransformerException.html

Regards,

Ravi.