CSS: http://jigsaw.w3.org/css-validator/DOWNLOAD.html
Xhtml cant find one on there site
I'm afraid you have a problem, it works for me, :)
this is the page content:
but I think you make a wrong choice, this tool I guess need a tomcat server, :)
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Download and Install the CSS Validator</title>
<link rev="made" href="mailto:
[email protected]" />
<link rev="start" href="./" title="Home Page" />
<style type="text/css" media="all">
@import "style/base.css";
@import "style/docs.css";
</style>
<meta name="revision"
content="$Id: DOWNLOAD.html.en,v 1.20 2008/02/29 13:26:12 ot Exp $" />
<!-- SSI Template Version: $Id: DOWNLOAD.html.en,v 1.20 2008/02/29 13:26:12 ot Exp $ -->
</head>
<body>
<div id="banner">
<h1 id="title"><a href="http://www.w3.org/"><img alt="W3C" width="110" height="61" id="logo" src="./images/w3c.png" /></a>
<a href="./"><span>CSS Validation Service</span></a></h1>
<p id="tagline">
Check Cascading Style Sheets (CSS) and (X)HTML documents with style sheets
</p>
</div>
<div class="doc">
<h2>Download and Install the CSS Validator</h2>
<h3 id="download">Download the CSS Validator</h3>
<h4 id="source">Download the source</h4>
<p>
The <a href='http://dev.w3.org/cvsweb/2002/css-validator'>CSS validator</a> is available for download using CVS.
Follow the <a href='http://dev.w3.org/cvsweb/'>instructions</a> to
access the W3C CVS public server and get 2002/css-validator. Note
that the online version of the CSS Validator is generally older than the CVS
version so results and appearance may vary slightly...
</p>
<h4>Download as java package (jar or war)</h4>
<!-- <p>TBD... we just need a stable location to put jar/war archives on a regular basis</p>-->
<p><a href="http://www.w3.org/QA/Tools/css-validator/css-validator.jar">css-validator.jar</a></p>
<h3>Installation guide</h3>
<p>The CSS validation service is a servlet software, written in Java. It may be installed on any servlet engine,
and can also be used as a simple command-line tool.
The official W3C CSS Validation service is running with the Jigsaw server, which is the recommended setup.
However, for the sake of simplicity, we will, in this document, mostly provide details on how to install
it as an online servlet with Apache's servlet engine Tomcat.</p>
<p>Some instructions on installing the servlet with Jigsaw, as well as running it from a command-line environment,
are also given below. </p>
<h4 id="prereq">Prerequisites</h4>
<p>This installation guide assumes that you have downloaded, installed and tested: </p>
<ul class="instructions">
<li>A working java environment,</li>
<li>The <a href="http://ant.apache.org/">Ant</a> java building tool</li>
<li>A java Web servlet container such as
<a href="http://www.w3.org/Jigsaw/">Jigsaw</a>, <a href="http://tomcat.apache.org/">Tomcat</a> or
<a href="http://www.mortbay.org/">Jetty</a> if you plan on using the validator as an online service.
This guide only covers Tomcat and Jigsaw in details.</li>
</ul>
<p id="prereq-libs">For the installation of the validator onto your system, you will
need to download and/or find in your system a number of java libraries:</p>
<ul class="instructions">
<li>servlet.jar
(which, if you have Tomcat installed in [<span class="const">TOMCAT_DIR</span>],
you should find in [<span class="const">TOMCAT_DIR</span>]/common/lib/) possibly
under the name servlet-api.jar. If not, get it at
<a href="http://java.sun.com/products/servlet/download.html">java.sun.com</a></li>
<li><a href="http://jigsaw.w3.org/Devel/classes-2.2/20060329/">jigsaw.jar</a></li>
<li>xercesImpl.jar and xml-apis.jar (which can be downloaded with
<a href="http://www.apache.org/dist/xml/xerces-j/">xerces-j-bin</a>).</li>
<li><a href="http://ccil.org/~cowan/XML/tagsoup/">tagsoup.jar</a></li>
</ul>
<h4>Install the CSS Validator with Tomcat</h4>
<ol class="instructions">
<li>
Download validator as explained <a href="#source">above</a>.
</li>
<li>Copy the whole source folder ("<span class="dir">.../css-validator/</span>") to the <span class="dir">webapps</span>
directory within your installation of Tomcat. usually, this will be
<span class="dir">[<span class="const">TOMCAT_DIR</span>]/webapps/</span>.
The Validator's sources are now in <span class="dir">[<span class="const">TOMCAT_DIR</span>]/webapps/css-validator</span>,
which we will now call <span class="dir">[<span class="const">VALIDATOR_DIR</span>]</span>.
</li>
<li>In "<span class="dir">[<span class="const">VALIDATOR_DIR</span>]</span>" create a directory "<span class="dir">WEB-INF</span>", and In "<span class="dir">[<span class="const">VALIDATOR_DIR</span>]/WEB-INF</span>" create a directory "<span class="dir">lib</span>":<br />
<kbd>mkdir -p WEB-INF/lib</kbd>
</li>
<li>Copy all the jar files (from the <a href="#prereq-libs">prerequisites</a>) to the directory "<span class="dir">[<span class="const">VALIDATOR_DIR</span>]/WEB-INF/lib</span>"</li>
<li>Compile the validator's source: from the directory <span class="dir">[<span class="const">VALIDATOR_DIR</span>]</span>,
Run <kbd>ant</kbd>, while making sure that the jar files you downloaded are correctly set in you CLASSPATH environment variable.
Generally, the following will just work:<br />
<kbd>CLASSPATH=.:./WEB-INF/lib:$CLASSPATH ant</kbd>
</li>
<li>Copy or move "<span class="dir">[<span class="const">VALIDATOR_DIR</span>]/</span><span class="file">css-validator.jar</span>"
to "<span class="dir">[<span class="const">VALIDATOR_DIR</span>]/WEB-INF/lib/</span>".</li>
<li>
Copy or move file "<span class="file">web.xml</span>" from
"<span class="dir">[<span class="const">VALIDATOR_DIR</span>]/</span>" to
"<span class="dir">[<span class="const">VALIDATOR_DIR</span>]/WEB-INF/</span>".
</li>
<li>
Finally, reload the Tomcat server:<br />
<kbd>"cd <span class="dir">[<span class="const">TOMCAT_DIR</span>]</span>; <span class="dir">./bin/</span><span class="file">shutdown.sh</span>; <span class="dir">./bin/</span><span class="file">startup.sh</span>;"</kbd>
</li>
</ol>
<h4>Install on Jigsaw Web Server</h4>
<ol class="instructions">
<li>First, download the source as described above, get the necessary jars, and build the source with <kbd>ant</kbd>.</li>
<li>Then you have to configure the validator home directory (usually this is
css-validator) so that it can work as a servlet container. For this purpose
you need to have Jigsaw installed (see the Jigsaw pages for a short
instruction (it is really easy)) and then start Jigsaw Admin. Change the
HTTPFrame to ServletDirectoryFrame.</li>
<li>The next step is to create a resource "validator", with as class
'ServletWrapper' and as frame 'ServletWrapperFrame'. The latter should add
itself automagically. The class of the servlet is
org.w3c.css.servlet.CssValidator. If there already exists a file named
'validator', please rename it. It is important that this 'alias' is always
named 'validator'.</li>
<li>Finally, start Jigsaw and run the validator. Check which HTML you want to
invoke. Usually your URL will look like this:<br />
http://localhost:8001/css-validator/validator.html</li>
</ol>
<h3>Command-line usage</h3>
<p>The CSS validator can also be used as a command-line tool, if your computer
has java installed. build the css-validator.jar as explained above, and run as:<br />
<kbd>java -jar css-validator.jar http://www.w3.org/</kbd>
</p>
</div>
<ul class="navbar" id="menu">
<li><strong><a href="./" title="Home page for the W3C CSS Validation Service">Home</a></strong> <span class="hideme">|</span></li>
<li><a href="about.html" title="About this service">About</a> <span class="hideme">|</span></li>
<li><a href="documentation.html" title="Documentation for the W3C CSS Validation Service">Documentation</a> <span class="hideme">|</span></li>
<li><a href="Email.html" title="How to provide feedback on this service">Feedback</a> <span class="hideme">|</span></li>
<li><a href="thanks.html" title="Credits and Acknowlegments">Credits</a><span class="hideme">|</span></li>
</ul>
<ul id="lang_choice">
<li><a href="DOWNLOAD.html.de"
lang="de"
xml:lang="de"
hreflang="de"
rel="alternate">Deutsch</a></li>
<li><a href="DOWNLOAD.html.en"
lang="en"
xml:lang="en"
hreflang="en"
rel="alternate">English</a> </li>
<li><a href="DOWNLOAD.html.es"
lang="es" xml:lang="es" hreflang="es"
rel="alternate">Español</a></li>
<li><a href="DOWNLOAD.html.fr"
lang="fr"
xml:lang="fr"
hreflang="fr"
rel="alternate">Français</a> </li>
<li><a href="DOWNLOAD.html.it"
lang="it"
xml:lang="it"
hreflang="it"
rel="alternate">Italiano</a> </li>
<li><a href="DOWNLOAD.html.nl"
lang="nl"
xml:lang="nl"
hreflang="nl"
rel="alternate">Nederlands</a> </li>
<li><a href="DOWNLOAD.html.ja"
lang="ja"
xml:lang="ja"
hreflang="ja"
rel="alternate">日本語</a> </li>
<li><a href="DOWNLOAD.html.pl-PL"
lang="pl"
xml:lang="pl"
hreflang="pl"
rel="alternate">Polski</a> </li>
<li><a href="DOWNLOAD.html.zh-cn"
lang="zh-hans"
xml:lang="zh-hans"
hreflang="zh-hans"
rel="alternate">简体中文</a></li>
</ul>
<div id="footer">
<p id="activity_logos">
<a href="http://www.w3.org/QA/" title="W3C's Quality Assurance Activity, bringing you free Web quality tools and more"><img src="http://www.w3.org/QA/2002/12/qa-small.png" alt="QA" /></a><a href="http://www.w3.org/Style/CSS/learning" title="Learn more about Cascading Style Sheets"><img src="images/woolly-icon" alt="CSS" /></a>
</p>
<p id="support_logo">
Support this tool, become a<br />
<a href="http://www.w3.org/Consortium/supporters"><img src="http://www.w3.org/Consortium/supporter-logos/csupporter.png" alt="W3C Supporter" /></a>
</p>
<p class="copyright">
<a rel="Copyright" href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 1994-2007
<a href="http://www.w3.org/"><acronym title="World Wide Web Consortium">W3C</acronym></a>®
(<a href="http://www.csail.mit.edu/"><acronym title="Massachusetts Institute of Technology">MIT</acronym></a>,
<a href="http://www.ercim.org/"><acronym title="European Research Consortium for Informatics and Mathematics">ERCIM</acronym></a>,
<a href="http://www.keio.ac.jp/">Keio</a>),
All Rights Reserved.
W3C <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>,
<a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a>,
<a rel="Copyright" href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a>
and <a rel="Copyright" href="http://www.w3.org/Consortium/Legal/copyright-software">software licensing</a>
rules apply. Your interactions with this site are in accordance
with our <a href="http://www.w3.org/Consortium/Legal/privacy-statement#Public">public</a> and
<a href="http://www.w3.org/Consortium/Legal/privacy-statement#Members">Member</a> privacy
statements.
</p>
</div>
</body>
</html>
best regards