on 07-23-2014 3:09 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try using the below statement
<xsl:output omit-xml-declaration="yes" indent="yes"/>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.