on 10-22-2008 10:59 AM
Hi,
My source message is an IDOC HRMD, I need my target message to include exactly
<EPERSON xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ContextPersonMessage">
I have therefore suggested to use XSLT mapping.
Here is the test_mapping.xsl that I Imported as Zip in Imported Archives.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://polyright.com/xi/HR">
<xsl:template match="/">
<EPERSON xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ContextPersonMessage">
<xsl:for-each select="HRMD_A07/IDOC/E1PLOGI">
<CONTEXTPERSON personid="" id="">
<PERSON action="add">
<TITLE></TITLE>
<FIRSTNAME><xsl:value-of select="E1PITYP/E1P0002/VORNA"/></FIRSTNAME>
<SECONDNAME></SECONDNAME>
<NAME><xsl:value-of select="E1PITYP/E1P0002/NACHN"/></NAME>
<ADDRESS1></ADDRESS1>
<ADDRESS2></ADDRESS2>
<POSTALCODE></POSTALCODE>
<CITY></CITY>
<COUNTRY></COUNTRY>
<COUNTRYID></COUNTRYID>
<PROFESSION></PROFESSION>
<LANGUAGE></LANGUAGE>
<LANGUAGEID></LANGUAGEID>
<PERSONTYPEID></PERSONTYPEID>
<CREATIONDATE></CREATIONDATE>
<BIRTHDATE></BIRTHDATE>
<CATEGORY></CATEGORY>
</PERSON>
</xsl:for-each>
</EPERSON>
</xsl:template>
</xsl:stylesheet>
When I test the Interface mapping, I get the following error:
Transformer configuration exception occurred when loading XSLT test_mapping.xsl (http://polyright.com/xi/HR, 783938d1-4463-11dd-b136-e03ac0a80c15, -1)
Searching through the forum, it is probably an namespace issue, but I have no idea of what needs to be changed. Any suggestions ?
The XSLT file was wrong: the </CONTEXTPERSON> was missing...
Now it works...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try running end-to-end scenario and check if you could get detailed error message.
Also check if the problem arises from the "ns0" usage.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.