W3C home > Mailing lists > Public > www-validator@w3.org > February 2006

Re: local file

From: Frank Ellermann <nobody@xyzzy.claranet.de>
Date: Mon, 20 Feb 2006 05:46:24 +0100
To: www-validator@w3.org
Message-ID: <43F949A0.4629@xyzzy.claranet.de>

Christoph Römhild wrote:

> <a href="http://validator.w3.org/check?uri=file://C:/Dokumente und
> Einstellungen/Römhild/Desktop/Software Ideen13221.htm"> Test </a>

The check?uri= has to fetch the document idendified by the URI.
For that it has to know where from (a server).  The normal
file:///c:/name is the same as file://localhost/c:/name, but
your document isn't on what validator.w3.org would consider as
local host (= itself).

For that and other reasons the file:-scheme isn't supported by
validator.w3.org.  Maybe you could enable it if you install a
validator on your own localhost, but that's probably not your
plan.

One URI-scheme where "fetch" is known to work is of course an
ordinary http-URI.  Or https, or ftp, but I'm, not sure what
validator.w3.org supports in addition to http.

If your document is on your local host, and you have no http
server, forget the "fetch"-approach, simply upload your file,
most browsers support this.

You can add a check?uri= link when you publish your document
on a public Web server later.  If that's not your plan stick
to the upload recipe.

Unrelated:  Be careful with blanks in URLs, it doesn't work
with some browsers, and besides it's illegal.  Simply use %20
to %-encode a blank. 
                        Bye, Frank
Received on Monday, 20 February 2006 04:48:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:20 GMT