on 08-19-2009 12:17 PM
Hi,
I have 2 mapping program one is main .xsl program and other one is value mapping program .xsl .
I have zipped both the program and imported into Imported archive in IR but while testing in interface mapping i am getting error.
error:could not compile xslt stylsheet.
Some of the interface having one .xsl program and value mapping is also defined in the main program itself,these interface i am able to execute successfully but unable to execute wherever there are 2 program (main prog + value mapping).
It seems that value mapping is not loading / executing.
Can anyone please guide me how to call value mapping using xslt mapping?
Thanks,
Subbu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You can access value mapping table from XSLT mapping using XVIM class and i just implemented las week in one of my interface. It works fine.
Please visit.
/people/kulwinder.grewal/blog/2009/08/21/xslt-runtime-value-mapping-from-integration-directory-using-xivmserviceclass
I am not sure if this blog is accessible now.if not please get in touch me.i will send it you.
Thanks
Rajesh
When you say you have two XSL file, do you want to execute both the mappings in your scenario?
If yes, then in your Interface Mapping, you need to use both th XSL files. Before that you need to make sure that mapping in XSL is done based to accommodate multiple mappings.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prateek,
Thanks for the response.
Yes i have 2 program and both needs to execute in one interface mapping.
First program (main) is MappingMOAPS_SAVEMULTIPLE2013.xsl and second program i.e (value mapping) MO_vmf.xsl.
From main program itself value mapping program is called.
Please look below code for main & value mapping prog.
In main prog this is the parameter (<xsl:import href="MO_vmf.xslt"/>) where value mapping prog name is mentioned.
I have already zipped and imported but while testing in interface mapping it is giving error that "could not compile xslt stylsheet".
Could you plaese tell how to check or make XSL to accommodate multiple mappings?
*************************************************************************
Main mapping : MappingMOAPS_SAVEMULTIPLE2013.xsl --
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file was generated by Altova MapForce 2008sp1
YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
Refer to the Altova MapForce Documentation for further details.
http://www.altova.com/mapforce
-->
<xsl:stylesheet 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" xmlns:vmf="http://www.altova.com/MapForce/UDF/vmf" exclude-result-prefixes="vmf xs xsi xsl">
<xsl:import href="MO_vmf.xslt"/>
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
<xsl:template match="/PPR">
<MOAPS_SAVEMULTIPLE201>
<IDOC>
<EDI_DC40>
<xsl:for-each select="SI_ID_IDOCS">
<xsl:for-each select="ID_TABNAM">
<TABNAM>
<xsl:value-of select="."/>
</TABNAM>
</xsl:for-each>
</xsl:for-each>
<xsl:for-each select="SI_SP_SAP_PARTNER_INFO">
<xsl:for-each select="SP_MANDT">
<MANDT>
<xsl:value-of select="."/>
</MANDT>
</xsl:for-each>
</xsl:for-each>
<xsl:for-each select="SI_ID_IDOCS">
<xsl:for-each select="ID_DIRECT">
*******************************************************************
Value mapping : MO_vmf.xsl:
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file was generated by Altova MapForce 2008sp1
YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
Refer to the Altova MapForce Documentation for further details.
http://www.altova.com/mapforce
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:vmf="http://www.altova.com/MapForce/UDF/vmf" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs xsi xsl">
<xsl:template name="vmf:inputtoresult">
<xsl:param name="input"/>
<xsl:choose>
<xsl:when test="$input='01'">
<xsl:value-of select="'PM1C'"/>
</xsl:when>
<xsl:when test="$input='02'">
<xsl:value-of select="'PM2C'"/>
</xsl:when>
<xsl:when test="$input='03'">
<xsl:value-of select="'EXT3'"/>
</xsl:when>
Regards,
Subbu
MappingMOAPS_SAVEMULTIPLE2013.xsl:
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file was generated by Altova MapForce 2008sp1
YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
Refer to the Altova MapForce Documentation for further details.
http://www.altova.com/mapforce
-->
<xsl:stylesheet 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" xmlns:vmf="http://www.altova.com/MapForce/UDF/vmf" exclude-result-prefixes="vmf xs xsi xsl">
<xsl:import href="MO_vmf.xslt"/>
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
<xsl:template match="/PPR">
<MOAPS_SAVEMULTIPLE201>
<IDOC>
<EDI_DC40>
****************************************************
Parameter : <xsl:import href="MO_vmf.xslt"/>
MO_vmf.xsl:
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file was generated by Altova MapForce 2008sp1
YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
Refer to the Altova MapForce Documentation for further details.
http://www.altova.com/mapforce
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:vmf="http://www.altova.com/MapForce/UDF/vmf" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs xsi xsl">
<xsl:template name="vmf:inputtoresult">
<xsl:param name="input"/>
<xsl:choose>
<xsl:when test="$input='01'">
<xsl:value-of select="'PM1C'"/>
</xsl:when>
<xsl:when test="$input='02'">
<xsl:value-of select="'PM2C'"/>
</xsl:when>
Regards,
Subbu
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.