Skip to Content
0
A B
Jan 26, 2017 at 05:50 PM

XSLT or Adapter Bean for Namespace change

80 Views

Hi

I have an incoming XML which looks like this.

http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" xmlns:pay = "urn:ean.ucc:pay:2" xmlns:eanucc = "urn:ean.ucc:2" xmlns:xsi = " http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation = " http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader ../Schemas/sbdh/StandardBusinessDocumentHeader.xsd urn:ean.ucc:2 ../Schemas/InvoiceProxy.xsd">

All i want is to change the following before it enters into the mapping.

xmlns:sh = "http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader"

into

xmlns:sh = "http://www.unece.org/cefact/namespaces/SBDH"

Can you either let me know the XSL for this so that i can put it in pre-mapping or as adapter module so that it gets replaced when the channel picks it up.

Regards

Sam