+ # validate local files
+ components = urlparse.urlparse(link)
+ if components.scheme in ("", "file"):
+ file = get_current_file()
+ fname = os.path.join(file.direc, components.path)
+ fname = os.path.normpath(fname)
+ _file_links[fname] = file.rel_path