Attach xml:id to block-level elements; Join and Normalize in oXygen; Format and Indent  in oXygen; trim whitespace; Canonicalize in oXygen.