Hi

Can you try setting these two entries:

"{http://ns.a}sales => {http://ns.a}sales";
"{http://ns.a}* => {http://ns.b}*";

Cheers, Sergey
On 06/10/15 15:11, Iacopo ROZZO wrote:
Hi all,

I'm using cxf 3.0.2 and I have a question regarding the CXF transformation 
feature<http://cxf.apache.org/docs/transformationfeature.html>. I have the 
following scenario:

Input: All elements belong to namespace "ns.a"

<sales xmlns:"http://ns.a";>
<book>
   <title>CXF ...</title>
   <price>38.68</price>
</book>
</sales>

Expected output: Elements book, title and price should belong to namespace 
"ns.b"
<sales xmlns:"http://ns.a";>
<book xmlns:"http://ns.b";>
   <title>CXF ...</title>
   <price>38.68</price>
</book>
</sales>

If I only add this entry "{http://ns.a}book => {http://ns.b}book"; to the 
transformation map the namespace is only changed to book element (as normal). Is there any 
way of qualifying book and all its child elements without putting explicitly an entry for 
all book children elements?

Thanks,
Iacopo




--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Reply via email to