C:\css-validator>ant
C:>java -jar c:\css-validator\css-validator.jar http://www.w3.org/
C:\css-validator>Java -jar c:\css-validator\css-validator.jar c:\hobbit\index.html
Java -jar c:\css-validator\css-validator.jar %1 pause
set CLASSPATH=Jigsaw;..\classes\jigsaw.jar;..\classes\xp.jar;..\classes\sax.jar;..\classes\servlet.jar;..\classes\xerces.jar;..\classes\Tidy.jar;..\classes\commons-collections-3.2.1.jar;..\classes\commons-lang-2.4.jar;..\classes\tagsoup-1.2.jar;..\classes\velocity-1.6.1.jar; java -classpath %CLASSPATH% org.w3c.jigsaw.Main -root ..\Jigsaw
c:\jigsaw\jigsaw\WWW\servlet\css-validator\>ant jigsaw
set CLASSPATH=Jigsaw;..\classes\jigsaw.jar;..\classes\xp.jar;..\classes\sax.jar;..\classes\servlet.jar;..d:\css;. java org.w3c.jigsaw.admin.JigKill -u admin -p admin http://127.0.0.1:8009/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html lang=en> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META HTTP-EQUIV="Content-Script-Type" content="text/javascript"> <title>CSS Validator</title> <LINK REL="contents" HREF="./index.html"> </head> <body> <script type="text/JavaScript" defer><!-- var uri = external.menuArguments.location.href; var uri = uri.replace("file:///C:","http://localhost"); var uri = uri.toLowerCase(); var uri = uri.replace(/html#.+/,"html"); var uri = "http://localhost:8001/servlet/css-validator/validator?uri=" + uri + ";warning=2"; window.open (uri, "CSSValidator"); --></script> </body> </html>
$msie = "C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE"; $lint = " http://localhost:8001/servlet/css-validator/validator?uri="; $file = filename2; $base = "C:\\"; #off = strstr($file, $base); if (#off != -1) { #rlen = strlen($file) - strlen($base); $file = rightstr($file, #rlen); #off = strstr($file, "\\"); while (#off != -1) { $file = leftstr($file, #off) + "/" + rightstr($file, #rlen - #off - 1); #off = strstr($file, "\\"); } $file = "http://localhost/" + $file; } run $msie + $lint + $file + ";warning=2"; endmacro;