docs: def _output_work(self, work, root):
          """Saves the TEI XML document `root` at the path `work`."""
          output_filename = os.path.join(self._output_dir, work)
          tree = etree.ElementTree(root)
          tree.write(output_filename, encoding='utf-8', pretty_print=True)