cancel
Showing results for 
Search instead for 
Did you mean: 

Double xmlsn Insert in xml file

Former Member
0 Kudos

Hello, i have Problem with

a double xmlsn Isert in my Download File .

It looks like the Statement gets inherited from the top.

It Should look like this:

Here the part of the Transformation

<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">


  <xsl:stylesheet version="1.0">


      </xsl:stylesheet>


  <xsl:output encoding="windows-1252" indent="no" method="xml" version="1.0"/>


  <xsl:strip-space elements="*"/>


  <xsl:template match="/">



    <OpenShipments xmlns="x-schema:OpenShipments.xdr">


      <xsl:apply-templates select="//OpenShipment/ZSDIUPSOUT"/>


    </OpenShipments>



  </xsl:template>



  <xsl:template match="OpenShipment/ZSDIUPSOUT">

 


    <OpenShipment ProcessStatus="" ShipmentOption="">



      <ShipTo>


        <CompanyOrName>


          <xsl:value-of select="KUNWE"/>

.....

Attached is the File with the complete Transformation Coding

Can Enybody help a bloody XML starter ?

Greetings from Nuernberg / Germany

Gerhard

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

I find the solution !

the problem was in the Header of the Transformation.

It should be:

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

  xmlns:sap="http://www.sap.com/sapxsl" xmlns="x-schema:OpenShipments.xdr">

  <!-- ... -->

  <xsl:template match="/">

   <OpenShipments>

   <!-- ... -->

   </OpenShipments>

  </xsl:template>

  <!-- ... -->


Now it Works

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Try using the below statement

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

Former Member
0 Kudos

Hello Naresh,

thank You, but the statement did't change anything. I put in in in every usful plave but it didn't work.

I also tryed with

<xsl:output omit-xmlns-declaration="yes" indent="yes"/>

but with the same result.

If you like to test Quick i do also a simple ABAP coding here. (Z_TEST_XML_DUMMY.txt)

But thanks for You're help to this point.