local checklink and absolute references

I was hoping to run checklink "locally", that is, without hitting my own
web server for local files.  I'm having trouble finding a way to handle
absolute references.

That is, if I'm checking mydoc.html that contains
  <a href="/otherfile.html">

I'd like to say something like this (where /home/httpd/html is the path
to the web root):
  cd /home/httpd/html
  checklink --masquerade "/home/httpd/html/ file:/" file:mydoc.html

and have /otherfile.html resolve.

It does work if the link is relative, as in <a href="otherfile.html">,
but it's impractical and undesirable to change all the links.

I searched this mailing list and the web in general but was unable to
find the answer.  Any help appreciated ...

Thanks,
karl@freefriends.org

Received on Thursday, 30 October 2008 17:15:12 UTC