'Convert a name to a href relative to base, which must be a name or
None in which case self.root is used as the base'

def name_to_href(self, name, base=None):

    return name_to_href(name, self.root, base=base)
