Namespace information not preserved by ContributionMetadataProcessor.write()
----------------------------------------------------------------------------
Key: TUSCANY-2057
URL: https://issues.apache.org/jira/browse/TUSCANY-2057
Project: Tuscany
Issue Type: Bug
Components: Java SCA Assembly Model
Affects Versions: Java-SCA-1.0.1
Reporter: Brent Daniel
Namespace information is not preserved by
ContributionMetadataProcessor.write(). You can reproduce this by modifying
ContributionMetadataDocumentProcessorTestsCase.testLoad() to add a write at the
end.
The input XML is:
private static final String VALID_XML =
"<?xml version=\"1.0\" encoding=\"ASCII\"?>"
+ "<contribution xmlns=\"http://www.osoa.org/xmlns/sca/1.0\"
xmlns:helloworld=\"http://helloworld\">"
+ "<deployable composite=\"helloworld:Composite1\"/>"
+ "<deployable composite=\"helloworld:Composite2\"/>"
+ "</contribution>";
The output from ContributionMetadataProcessor.write() is:
<?xml version='1.0' encoding='UTF-8'?>
<contribution xmlns="http://www.osoa.org/xmlns/sca/1.0">
<deployable composite="ns1:Composite1" />
<deployable composite="ns1:Composite2" />
</contribution>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]