Skip to Content
0
Nov 28, 2011 at 04:20 PM

Unwanted namespace in output file

31 Views

Hi all experts!

I'm having a B1-to-File scenario in B1iSN 8 PL8 where the demand for namespace is:

<m:b24bufferMessage xmlns:m="http://b24commerce.com/schemas/buffer/3.2">
   ...
</m:b24bufferMessage>

In the XSL file I'm using the b1im_filename tag for getting a proper filename for the file being saved:

<m:b24bufferMessage xmlns:m="http://b24commerce.com/schemas/buffer/3.2">
   <b1im_filename>MyFileName</b1im_filename>
   ...
</m:b24bufferMessage>

When I inspect the message in the messagelog it looks ok.

But in the file I'm getting the unwanted namespace xmlns="urn:com.sap.b1i.sim:b1imessage".

<m:b24bufferMessage xmlns="urn:com.sap.b1i.sim:b1imessage" xmlns:m="http://b24commerce.com/schemas/buffer/3.2">
   ...
</m:b24bufferMessage>

There are two things that strikes me:

1. The messagelog doesn't show the same thing as the file.

2. It is the b1im_filename tag that makes the unwanted namespace to appear.

Does anyone know how to avoid this?

I've tried the exclude-result-prefixes="b1im" attribute in the xsl file but it doesn't help.

Regards

Lars Jönson