Optimize namespace usage - redundant namespace usage in XML

Description

The namespace for custom extensions is being repeated locally even though it is declared at the root level.

<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:sas="http://www.sas.com/bpmn" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
<process id="valuedDataObjectModel" name="Data Object Model" isExecutable="true">
<dataObject id="dObj1" name="StringTest" itemSubjectRef="xsd:string">
<extensionElements>
<activiti:value>Testing123</activiti:value>
<sas:i18ln xmlns:sas="http://www.sas.com/bpmn">
<sas:labeledEntityIdForName sas:entityID="6c7826fb-effd-45c2-8097-2bb59e7ba8b9" sas:defaultlocale="en">
<sas:locale sas:name="en">Task0</sas:locale>
<sas:locale sas:name="it">Machina</sas:locale>
</sas:labeledEntityIdForName>
<sas:labeledEntityIdForDescription sas:entityID="f8a34a02-5d57-4a7d-90bb-1116f4304b97" sas:defaultlocale="en">
<sas:locale sas:name="en">Testing 123</sas:locale>
<sas:locale sas:name="it">Prova un due tre</sas:locale>
</sas:labeledEntityIdForDescription>
</sas:i18ln>
<sas:resourceBundleKeyForName xmlns:sas="http://www.sas.com/bpmn">task.name.txt</sas:resourceBundleKeyForName>
<sas:resourceBundleKeyForDescription xmlns:sas="http://www.sas.com/bpmn">test description</sas:resourceBundleKeyForDescription>
<sas:attributes xmlns:sas="http://www.sas.com/bpmn">
<sas:attribute sas:id="1" sas:name="Attr1" sas:value="1"/>
<sas:attribute sas:id="2" sas:name="Attr2" sas:value="2"/>
</sas:attributes>
</extensionElements>
</dataObject>

Environment

5.16-SNAPSHOT Activiti
Windows 7 Enterprise SP 1 on a 64 bit system

Assignee

Tijs Rademakers

Reporter

Lori Small

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure