The W3C XML Core Working Group has published the candidate recommendation 
Canonical XML 1.1. This 
attempts to address some of the weirdnesses of
Canonical XML, such as the movement of xml:id attributes from one element to another and breaking of base URLs when canonicalizing.