cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aki Yoshida (Resolved) (JIRA)" <>
Subject [jira] [Resolved] (CXF-4176) preserve namespace prefixes in Transform Feature to support QName resolution for content
Date Tue, 10 Apr 2012 09:08:13 GMT


Aki Yoshida resolved CXF-4176.

       Resolution: Fixed
    Fix Version/s: 2.6

This patch preserves the namespace prefixes. More specifically, all non empty prefixes are
preserved. Empty prefixes are preserved except when the outbound transformer explicitly configures
the default namespace to be changed (In this case, the existing default namespace is assigned
a new generated prefix).

In addition, another situation where a new prefix is generated is when an unqualified element
is promoted to be an qualified element (i.e., mapped to a qualified element).

> preserve namespace prefixes in Transform Feature to support QName resolution for content
> ----------------------------------------------------------------------------------------
>                 Key: CXF-4176
>                 URL:
>             Project: CXF
>          Issue Type: Improvement
>            Reporter: Aki Yoshida
>            Assignee: Aki Yoshida
>             Fix For: 2.5.3, 2.6
> Unless configured specifically otherwise (i.e., using the default namespace option to
switch the default namespace), the original namespace prefixes should be preserved in the
resulting XML document so that an element content typed as QName can be resolved against the
namespace context.
> For example, if you have an input XML: 
> <a:foo xmlns:a="urn:abc"> 
>   <a2:bar xmlns:a2="urn:abc">a2:text</a2:bar> 
> </a:foo> 
> and suppose the content of element bar is of type QName. 
> If we are transforming from {urn:abc}* to {urn:a}*, we should not 
> simply generate: 
> <a:foo xmlns:a="urn:a"> 
>   <a:bar>a2:text</a:bar> 
> </a:foo> 
> Instead, we should generate: 
> <a:foo xmlns:a="urn:a"> 
>   <a2:bar xmlns:a2="urn:a">a2:text</a2:bar> 
> </a:foo> 
> so that the QName a2:text can be correctly interpreted. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message