Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Value Mapping using XSLT mapping

$
0
0

Hello All,

 

We have change requirement of storing some xsl Key-Value in SAP PI and on run time existing XSLT mapping need to look that values and in target structure map the value as per source key value.

 

For this requirement i am going with value mapping that will call from  XSLT mapping and created a test scenario before actual changes in XSLT mapping

I have created table in ID.


But unfortunately  i am getting below error :


Transformer Configuration Exception occurred when loading XSLT Test_Mapping.xsl; details: Could not load stylesheet.com.sap.engine.lib.xsl.xpath.XPathException: Prefix not mapped: ValueMap -> java.lang.Exception: XMLParser: Prefix 'ValueMap' is not mapped to a namespace


Below is my XSLT mapping code :


<?xml version='1.0' encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="urn:kesko.fi.XSLTTest" xmlns:ns1="urn:kesko.fi.XSLTTest">

<xsl:template match="/">

  <xsl:param name="Dept_ID">

  <xsl:value-of select="ns0:MT_EmpDet_S/ID"/>

  </xsl:param>

  <xsl:param name="inputparam"/>

  <ns1:MT_EDet_R>

  <Name>

   <xsl:value-of select="ns0:MT_EmpDet_S/Name"/>

  </Name>

  <Department>

   <xsl:if test="function-available('ValueMap:getValueMapping')">

     <xsl:value-of select="ValueMap:getValueMapping('http://sap.com/XI/xi', 'http://sap.com/XI/xi', 'S','S1', 'T', 'T1', $Dept_ID, $inputparam,'TRUE')"/>

   </xsl:if>

  </Department>

  <PersonalInfo>

    <xsl:value-of select="concat(ns0:MT_EmpDet_S/Add, ns0:MT_EmpDet_S/SAL)"/>

  </PersonalInfo>

  </ns1:MT_EDet_R>

  </xsl:template>

</xsl:stylesheet>

 

 

Thanks,

 

Anant


Viewing all articles
Browse latest Browse all 7030

Trending Articles



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