![]() |
Boost Docs : |
From: Paul A Bristow (pbristow_at_[hidden])
Date: 2006-09-20 05:55:21
I have tried to validate an index.html generated from math.qbk using
> but it fails with
>
> No DOCTYPE found! Attempting validation with HTML 4.01 Transitional.
>
> The DOCTYPE Declaration was not recognized or is missing. This
> probably means that the Formal Public Identifier contains a spelling
> error, or that the Declaration is not using correct syntax.
> Validation has been performed using a default "fallback" Document
> Type Definition that closely resembles "HTML 4.01 Transitional", but
> the document will not be Valid until you have corrected this problem
> with the DOCTYPE Declaration.
>
> Learn how to add a doctype to your document from our FAQ.
http://validator.w3.org/docs/help.html#faq-doctype
"
One should place a DOCTYPE declaration as the very first thing in an HTML
document. For example, for a typical XHTML 1.0 document:
<!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" lang="en" xml:lang="en">
<head>
<title>Title</title>
</head>
<body>
<!-- ... body of document ... -->
</body>
</html>
"
It would be nice if this worked as expected by the 'Standard'?
And perhaps it could include the code for the W3C validated logo as well?
I assume it should pass ;-)
How could this be included in the Docbook->HTML stylesheets ?
Thanks
Paul
--- Paul A Bristow Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB +44 1539561830 & SMS, Mobile +44 7714 330204 & SMS pbristow_at_[hidden]