Does turning XML into its Canonical involve the process of moving common/repeated XML namespaces in an XML document into a parent XML node?
The W3 XML specification for the C14N11 transform in section 4 and the subsets of it briefly goes over this, but it's hard to digest.
Am I correct in reading the specification that duplicate namespaces are propagated up?
For example:
<Message xmlns="urn:abc">
<head:CreatedDate xmlns:head="urn:iso:std:iso:20022:tech:xsd:head.001.001.01">2020-05-28T00:00:00</head:CreatedDate >
<head:Two xmlns:head="urn:iso:std:iso:20022:tech:xsd:head.001.001.01"></head:Two>
</Message>
Would turn into:
<Message xmlns="urn:abc" xmlns:head="urn:iso:std:iso:20022:tech:xsd:head.001.001.01">
<head:CreatedDate>2020-05-28T00:00:00</head:CreatedDate>
<head:Two></head:Two>
</Message>
After XML is in its Canonical form?