- From: Michael Higgins <michael.higgins@yale.edu>
- Date: Tue, 21 Sep 2004 23:01:14 -0400
- 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
CVSROOT=:pserver:anonymous@dev.w3.org:/sources/public cvs login
'anonymous'
CVSROOT=:pserver:anonymous@dev.w3.org:/sources/public cvs checkout
2002/css-validator
JAVA_HOME=/usr/java/j2sdk1.4.2_03
export JAVA_HOME
export CLASSPATH=/usr/local/ant/lib
[timtowtdi]
[attempt build]
/usr/local/ant/bin/ant build
[fails]
Note: In JRE 1.4 and latter, lib/i18n.jar was replaced by
lib/charsets.jar and ib/ext/localedata.jar
[ I downloaded from
http://www.limewire.org/fisheye/viewrep/limecvs/lib/jars
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
jakarta-servletapi-5
1028 /usr/local/ant/bin/ant -projecthelp
1030 /usr/local/ant/bin/ant
1031 /usr/local/ant/bin/ant jar
cp
/home/col/builds/cvs_trees/jakarta-servletapi-5/jsr154/dist/lib/servlet-api.jar
/usr/local/ant/lib
[build again]
/usr/local/ant/bin/ant build
BUILD SUCCESSFUL
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 ]
[<url>|<file>]*
-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 ||
-svgtiny
Profile -atsc || -mobile || tv
[and my favorite part:]
/usr/java/j2sdk1.4.2_03/bin/java org.w3c.css.css.StyleSheetCom
/var/www/html/wdg-html-validator.css
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