Canonical XML [XML-C14N] specifies a standard serialization of XML.
Canonical XML when applied to a subdocument must include the subdocument's ancestor context including all of the namespace declarations and attributes in the xml:
namespace https://www.w3.org/TR/xml-exc-c14n/