docs: def namespace(self, elem=None):
          """return the URL, if any, for the doc root or elem, if given."""
          if elem is None:
              elem = self.root
          return XML.tag_namespace(elem.tag)