public function _linkText($link, $doclet)
    {
        $element =& $this->_resolveLink();
        if ($element && $this->_parent) {
            $package =& $this->_parent->containingPackage();
            $path = str_repeat('../', $package->depth() + 1).$element->asPath();

            return $doclet->formatLink($path, $link);
        } elseif (preg_match('/^(https?|ftp):\/\//', $this->_link) === 1) {
            return $doclet->formatLink($this->_link, $link);
        } else {
            return $link;
        }
    }