W3C home > Mailing lists > Public > www-validator@w3.org > April 2000

Managed to run validator on Windows system

From: Lutz Latta <llatta@2ld.de>
Date: Sat, 22 Apr 2000 22:40:39 -0400 (EDT)
Message-ID: <3902628D.7CD19CE5@2ld.de>
To: www-validator@w3.org
Hi there,
I just installed the validator code on a Windows 2000 system, and finally it

I use an Apache 1.3.6, SP 1.3.4 for Windows, and ActivePerl 5.6.0.

After changing a lot of path/file names in httpd.conf and the check module I
ended up basically with two problems:

1. The rewrite rule in httpd.conf
   RewriteRule ^/$ /check [L,PT]
resulted in a endless loop of redirects between "/" and "/check". Since I didn't
understand its usefullness, I just disabled it.

2. The check-script contained a far bigger problem.
Somehow it thought the sgml parser wrote bad output.
I could narrow down the problem to the line where the nsgmls stderr output is
parsed with an regular expression to remove the parser file name.
The line looked like this: (line 495, version 1.64)
where $sp is the file name of the nsgml executable. The file name on windows
contains (of course) ugly backslashes. Since the name is not quoted, the
backslashes are interpreted as regexp special characters.
To allow them to be ignored by the regexp, I found the \Q\E quotes and changed
the line to look like this:
It works. I don't know if that's a good way to do it - I'm no Perl expert.

After solving these problems, it seems to work fine. I only tested it with
HTML3.2 and HTML4.0 pages (with some errors of course... why didn't they like
the HEIGHT attribute in a TABLE-tag ;-) so far.

I would expect problems, if I used some Japanese encodings in the pages, since I
don't have that nkf-converter program the check-script uses. Due to my lack of
Japanese documents and the ability to understand them, I can live with that.

So, if anybody is interested in putting my code change in the "real" validator,
feel free to do so.

If any questions come up, just contact me directly via email (not the mailing
list, I'm not on it).

Thanks for making the code public,
   Lutz Latta

Lutz Latta

Im Winkel 18
22880 Wedel

Received on Monday, 24 April 2000 16:37:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:27 UTC