cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT Value Mapping Problem

Former Member
0 Kudos

Hello,

we want to use the value mapping table in ID with XSLT.

Here is my source:

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

<ns0:Source xmlns:ns0="http://comsol-ag.com/xi/rfcxslt">

<CustomerNumber>A</CustomerNumber>

</ns0:Source>

XSLT Mapping:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:trg="http://comsol-ag.com/xi/rfcxslt" xmlns:ns0="http://test/xi/tsts" xmlns:ValueMap="java:com.sap.aii.mapping.value.api.XIVMService">

<xsl:template match="/">

<trg:Target>

<CustomerInfo>

<xsl:variable name="sourceValue" select="ns0:Source/CustomerNumber"/>

<ID>

<xsl:value-of select="$sourceValue"/>

</ID>

<xsl:variable name="response" select="ValueMap:executeMapping('http://sap.com/XI/xi','SourceAgency','SourceScheme',string($sourceValue),'http://sap.com/XI/xi','TargetAgency','TargetSchema')"/>

<Name>

<xsl:value-of select="$response"/>

</Name>

</CustomerInfo>

</trg:Target>

</xsl:template>

</xsl:stylesheet>

Target:

<?xml version="1.0" encoding="utf-8" ?>

<trg:Target xmlns:trg="http://comsol-ag.com/xi/rfcxslt">

<CustomerInfo>

<ID>A</ID>

<Name /> ???????????????????????????????????

</CustomerInfo>

</trg:Target>

But the receiving data is not converted to value table in ID:

Integration Directory Value Table :

http://www.image-load.eu/out.php/i26896_pic1.PNG

Please point out where i m going wrong.

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

problem solved!