Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

XSLT Mapping error

Hi Everyone,

I was trying to implement the simple XSLT mapping. I have written the XSLT mapping using notepad. When i am testing the XSLT mapping in operation mapping it was giving below error.

        TransformerConfigurationException occurred when loading XSLT sample_xslt.xsl; details: Could not compile stylesheet

Below is the code i have written:

<xsl:style-sheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs xsi xsl">

<xsl:output method="xml" encoding="UTF-8" indent="yes"/>

<xsl:template match="/">

<ns1:MT_RCV_XSLT_Mapping>

<Gender>

<xsl:value-of select="ns0:MT_SND_XSLT_Mapping/Employee/Gender"/>

</Gender>

<Name>

<xsl:value-of select="concat(concat(ns0:MT_SND_XSLT_Mapping/Employee/First_Name,''),ns0:MT_SND_XSLT_Mapping/Employee/Last_Name)"/>

</Name>

<Street>

<xsl:value-of select="concat(concat(ns0:MT_SND_XSLT_Mapping/Employee/Address/House_No,''),ns0:MT_SND_XSLT_Mapping/Employee/Address/Street)"/>

</Street>

<City>

<xsl:value-of select="ns0:MT_SND_XSLT_Mapping/Employee/Address/City"/>

</City>

</ns1:MT_RCV_XSLT_Mapping>

</xsl:template>

</xsl:style-sheet>

Please help in resolving this issue.

Regards,

Raju

Former Member
Not what you were looking for? View more on this topic or Ask a question