Quantcast
Channel: SCN : Popular Discussions - SAP Process Orchestration
Viewing all articles
Browse latest Browse all 1306

XSLT conversion mapping

$
0
0


Hi Team,

 

we are trying to add XSLT mapping to convert the name spaces/rootnodes of the xml file.

the following XSLT mapping code used after the graphical mapping to convert the root node and end node of the XML data generated from the graphical mapping.

 

But the problem is, XSLT code converting the namespaces/Root nnode and end node but removing the XML tags.

 

------------------------------------------------------------------------------------------------------------------------------------

<?xml version='1.0'?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

 

<xsl:output method="xml" omit-xml-declaration="yes"/>

 

<!--xsl:output indent= "yes" omit-xml-declaration="no"/-->

 

<xsl:template match="/">

 

    <ns0:SalesOrder_MTxmlns:ns0="urn:Sales_asia">

 

               <xsl:apply-templates/>

 

          </ns0:SalesOrder_MT>

       

     

</xsl:template>

 

</xsl:stylesheet>

-------------------------------------------------------------------------------------------------------------------------------------

 

Ex: if the input to XSLT is as follows:

 

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

<ns0:Sales_MTxmlns:ns0="urn:order_region"

<E1ORDR>

<ORDID>012345</ORDID>

<ORDDT>20140620</ORDDT>

</E1ORDR>

</ns0:Sales_MT>

 

the output of XSLT code is as follows:

 

<ns0:SalesOrder_MTxmlns:ns0="urn:Sales_asia">01234520140620</ns0:SalesOrder_MT>

 

So inoutput data all IDoc segments are removed and lineseparator and end separators also removed...

 

Can anyone help us with right XSLT code...reuirement is only root nodes should chnage and entire data should be as it is in IDOC XML format that henerated by graphical mapping

sceanrio- Idoc to File

 

Regards,Prasanth


Viewing all articles
Browse latest Browse all 1306

Trending Articles



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