OutTransformWriter's defaultNamespace setting may not replace all default
namespace declarations
------------------------------------------------------------------------------------------------
Key: CXF-4244
URL: https://issues.apache.org/jira/browse/CXF-4244
Project: CXF
Issue Type: Bug
Components: Core
Affects Versions: 2.5.3
Reporter: Aki Yoshida
Assignee: Aki Yoshida
Fix For: 2.6.1, 2.5.4
With CXF-4176, OutTransformWriter preserves the namespace prefixes except for
the empty prefix (i.e., the default namespace) in a special case, namely when
OutTransformWriter's defaultNamespace property is set to a non-null string to
assign the empty prefix for a different namespace.
Given an input XML:
<test xmlns="http://bar"><a>1</a></test>
when the defaultNamespace property is set to e.g., "", the output should look
like:
<ps1:test xmlns:ps1="http://bar"><ps1:a>1</ps1:a></ps1:test>
However, the output XML instead resulted as:
<ps1:test xmlns:ps1="http://bar" xmlns="http://bar"><a>1</a></ps1:test>
Logically, this is still valid. However, the intention of this property is
lost. Thus, it needs to be corrected to generate the expected output.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira