Originally posted by: SystemAdmin
Hello,
We face a little problem with the WTX namespace processing for inner elements.
We use custom schemas made up of imported standard schemas (sepa, swift MX) and one of our client wants to receive
his xml files whose namespace declarations are not made in the root tag (and then referenced with prefix in the corresponding tag) but in an inner element with a default namespace declaration (like "<Header xmlns="urn.header>...").
I know that WTX can process input files like this but I did not find the way to produce them.
I've joined a map which copies its xml input to its output without any modification (same TypeTree used both in input and output).
In my input file the element '*<Header xmlns="urn.header">...*' is turned into '*<head:Header>...*' and the NS declaration '*xmlns:head="urn.header"*' has been added to the root tag.
This creates a perfectly valid xml file but it does not fit our cients wish.
I need to produce a file similar to the input file.
I know that in classic mode, all the element have an optional attribute xmlns which allows to specify a namespace for a particular element but I have to work in Xerces mode.
Do you know how I could achieve this in Xerces mode?
Rgrds,
#IBMSterlingTransformationExtender#IBM-Websphere-Transformation-Extender#DataExchange