Knowledge Base Nr: 00076 www_validate.txt - http://www.swe-kaiser.de

Downloads:

Win32: internet/intranet seiten verifizieren mit tidy von w3c und meinem gethttpsource.

  
//im wesentlichen besteht der check aus 2 batchfiles. das ergebniss steht in
//"out\allerror.log" die formatierten und korrigierten files im "out"-verzeichniss
//das original im "in"-verzeichniss.

validate_all.bat:
=================

set host=www.kaiserreich.de

del out\error.log
del out\allerror.log
del out\*.htm
del in\*.htm

call validate %host% k_HomePage.php3
call validate %host% k_search.html
...

notepad out\allerror.log


validate.bat:
=============
set host=%1
set PAGE=%2

echo ###################### >>out/allerror.log
echo ###################### >>out/allerror.log
echo ###################### %PAGE% >>out/allerror.log
gethttpsource -f "http://%host%/kaiserreich/%PAGE%" >in/%PAGE%.htm
copy in\%PAGE%.htm out\out_%PAGE%.htm
tidy -config tidy.cfg out\out_%PAGE%.htm
type error.log >>out\allerror.log