Skip to Content
avatar image
Former Member

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="" xmlns:xsi="" xmlns:xs="" exclude-result-prefixes="xs xsi xsl">

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

<xsl:template match="/">



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



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



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



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





Please help in resolving this issue.



Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Mar 05, 2014 at 07:13 AM


    U have to declare namespace prefixes along with namespace under xsl:stylesheet and then u can refer the same in ur code. For example:

    xmlns:ns0="" Xmlns:ns1=””>

    Change the same and then test?…


    Amit Srivastava

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 05, 2014 at 07:43 AM


    use this online test tool to test your xsl code. then import it into ESR.

    Online XSLT Test Tool



    Add comment
    10|10000 characters needed characters exceeded