cancel
Showing results for 
Search instead for 
Did you mean: 

Removing namespace from input file

Former Member
0 Kudos

Hi experts,

I´ve configured a xml to IDOC scenario. I need to delete the namespace from the input xml.

I know how to delete it when you use Data Types (Message Type (delete namespace from here)). The problem is I don´t create a Data Type because I import a xsd file (external definitions).

How can I delete the namespace from an input xsd file?

Regards,

Javier

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Javier

Using external definition then you need to remove the namespace in mapping using XSLT mapping.

Try with this code

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes" method="xml"/>
<xsl:template match="/|comment()|processing-instruction()">
<xsl:copy>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
<xsl:template match="*">
<xsl:element name="{local-name()}">
<xsl:apply-templates select="@*|node()"/>
</xsl:element>
</xsl:template>
<xsl:template match="@*">
<xsl:attribute name="{local-name()}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:template>
</xsl:stylesheet>

Thanks

Gaurav

Former Member
0 Kudos

similar posting