trans-coord-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: home.shtml: Make checks whether the HTML is decently generated.


From: Kaloian Doganov
Subject: Re: home.shtml: Make checks whether the HTML is decently generated.
Date: Tue, 05 Feb 2008 13:10:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gNewSense gnu/linux)

Yavor Doganov <address@hidden> writes:

    The homepage is a bit more complicated and we don't know for certain
    if the generated article will be valid XHTML.

Which tool you are using to validate XHTML?

I've played a little bit with xmllint and I found that the following
script might be useful (introduces dependencies on libxml2-utils and
w3c-dtd-xhtml):

#!/bin/bash

FILE=$1
ROOT=`dirname $0`/../..

cat $FILE | sed "s/<\!--#include virtual=\"\/\?\(.*\)\" -->/include(\`\1')/g" | 
m4 -EE -I $ROOT | xmllint --loaddtd --noout - 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]