W3C home > Mailing lists > Public > www-validator-css@w3.org > September 2004

Re: Puzzled

From: Michael Higgins <michael.higgins@yale.edu>
Date: Tue, 21 Sep 2004 23:01:14 -0400
Message-ID: <4150EAFA.8070703@yale.edu>
To: Mark Brown <Mark.Brown@macquarie.com>
CC: www-validator-css@w3.org

Mark Brown wrote:
> We're very keen to integrate css validation into our build script.

> However, we've had so much trouble trying to get the thing working from 
> the command line (and still can't get it to give us the same results 
> that we get when we run it against your site) that we've lost confidence 
> in it.
> Why is it in such a bad state? Is it reliable?
> We're all quite puzzled here as to why the w3c can't offer the world a 
> css validator that looks like someone cares about it ...

Well, I figure you get what you pay for, after all.

FWIW, I just configured and installed from CVS. Since I wasn't able to 
do that the first couple of times I tried, and I figure if there's yet 
another narrative about it, more folks might be able to use it and it 
might get more attention. Or something like that. Here are my results:

[get the cvs source]

  CVSROOT=:pserver:anonymous@dev.w3.org:/sources/public cvs login


  CVSROOT=:pserver:anonymous@dev.w3.org:/sources/public cvs checkout 

  export JAVA_HOME
  export CLASSPATH=/usr/local/ant/lib


[attempt build]
  /usr/local/ant/bin/ant build


Note: In JRE 1.4 and latter, lib/i18n.jar was replaced by 
lib/charsets.jar and ib/ext/localedata.jar
[ I downloaded from
but it may not be needed... IDK]

turns out error was due to missing file: servlet-api.jar available in 
jakarta tomcat

[get tomcat servlet-api]

  1014  cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login
  1015  cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic checkout 
  1028  /usr/local/ant/bin/ant -projecthelp
  1030  /usr/local/ant/bin/ant
  1031  /usr/local/ant/bin/ant jar


[build again]

/usr/local/ant/bin/ant build

Total time: 1 minute 38 seconds

[set up to run]

export CLASSPATH=/home/col/builds/cvs_trees/2002/css-validator/build

[run it]

/usr/java/j2sdk1.4.2_03/bin/java org.w3c.css.css.StyleSheetCom
Usage: validator  [ -s || -e || -<your format> || -cssversion/profile ] 
         -s      Show the validated style sheet
         -e      Do NOT show warnings
         use the option -format to see available format.
         CSS version     -css1 || -css2 || -css3 || -svg || -svgbasic || 
         Profile          -atsc || -mobile || tv

[and my favorite part:]

/usr/java/j2sdk1.4.2_03/bin/java org.w3c.css.css.StyleSheetCom 
file : /var/www/html/wdg-html-validator.css
Warnings :

  URI : file:/var/www/html/wdg-html-validator.css
Line : 0 font-family: You are encouraged to offer a generic family as a 
last alternative

.... which I've come to realize is a bogus error. Unless the WDG is using 
bad css in the html validator package.

HTH [anyone]. If it did, well, maybe someone else can fix the code that 
always generates that bogus error.  ;-)

-- mike higgins
Received on Wednesday, 22 September 2004 03:04:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:40:40 UTC