prevent the lexing from adding tmp namespace declarations everywhere + properly remove the 'mergeable' attribute + handle processing instructions in the content document