Skip to Content
0
Sep 28, 2011 at 03:37 PM

XSL-Mapping: No namespace in copy-of

281 Views

Dear all,

I have a XSL-Mapping where the namespace don't get copied.

I need the complete source structure in the target field SDATA.

Source XML:

<?xml version="1.0" encoding="utf-8"?><ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge" xmlns:p2="urn:sap-com:document:sap:idoc:messages" xmlns:ns1="http://example/test">
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
   <ns0:Message1>
      <ns1:MainNode xmlns:ns1="http://example/test">
         <FirstNode>
            .....

XSL mapping:

			<SDATA>
				<xsl:text disable-output-escaping="yes"><![CDATA[<![CDATA[ 
				
 
 
				
 
 
  
  ]]
 
 
				
 
 
  
  >
 
 
			

]]>

Result:

   <SDATA>
      <![CDATA[ <ns1:MainNode >
         <FirstNode>
            ......

My question: Why is the namespace xmlns:ns1="http://example/test" not in the target message?

Thanks

Chris

Edited by: Christian Riekenberg on Sep 28, 2011 5:46 PM