W3C home > Mailing lists > Public > www-validator@w3.org > October 2008

local checklink and absolute references

From: Karl Berry <karl@freefriends.org>
Date: Thu, 30 Oct 2008 12:14:31 -0500
Message-Id: <200810301714.m9UHEVg17307@f7.net>
To: www-validator@w3.org

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:10 UTC