A duplicate ID is not a critical error where the output will
inevitably contain severe errors but rather "a major issue that should
adressed. If ignored, the output will contain unpredictable errors."
(cf. :PEP:`0258` Error Handling).
Re-use `nodes.document.set_id()` in the XML parser, but
only for registering an existing ID, do not generate IDs.