Update XSLT Mapping for Incoming BOD
We are working on integration of EAM with LN10.5 and facing issues with one of the Incoming BOD(SourceSystemJournal) which is giving error for 2 fields Accounting Entity and Location.
Infor recommend that we need to include these 2 values in inbound BOD using XSLT Mapping. May I know how to use xslt mapping to add these 2 field in incoming BOD so that we will get all BOD's without any error.
Any help appreciated
You can just do a google search on "How to add elements using XSLT" and you will find many online resources with sample code snippets to do it.
Just edit and use them to add whatever you need.
Here is an example.
I got information on how to add field using XSLT. Now when I have added code to add new fields which is working fine if source xml doesn't have namespace xmlns="http://schema.infor.com/InforOAGIS/2" in source XML File.
Following is code I am using as XSLT:
xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="@* | node()" name="identity-copy">
<xsl:apply-templates select="@* | node()"/>
<xsl:apply-templates select="@* | *"/>
This code works if Source XML doesn't have xmlns="http://schema.infor.com/InforOAGIS/2" and with this namespace we are not able to add new columns in xml file to pass it to LN.
Please let me know anything missing in XSLT Code
You will need to bind the custom namespace to a variable and then use it to insert your elements. Check this link
Thanks for suggestions. I am able to fix this issues. I have added name space as
xmlns:bod="http://schema.infor.com/InforOAGIS/2" and modified match template as <xsl:template match="//bod:DataArea/bod:Process">.
|All times are GMT +2. The time now is 04:13.|
©2001-2017 - Baanboard.com - Baanforums.com