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

def href_to_name(self, href, base=None):

    return href_to_name(href, self.root, base=base)
