- From: Terje Bless <link@dev.w3.org>
- Date: Fri, 04 Feb 2005 13:20:33 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv17005/httpd/cgi-bin
Modified Files:
check
Log Message:
Adding instrumented fallback DTD for XML mode, and tweaking catalogs and
code accordingly.
WARNING: This change nukes "OVERRIDE NO" before the fallback in the catalog
which may break some edgecases horribly. Hopefully this will turn out to be
a more "correct" (or "less wrong", but...) solution, but it needs testing!
Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.377
retrieving revision 1.378
diff -u -d -r1.377 -r1.378
--- check 3 Feb 2005 22:49:59 -0000 1.377
+++ check 4 Feb 2005 13:20:31 -0000 1.378
@@ -810,15 +810,16 @@
# Extract any version attribute from the ESIS.
for (@{$File->{ESIS}}) {
no warnings 'uninitialized';
- next unless /^AVERSION CDATA (.*)/;
- if ($1 eq '-//W3C//DTD HTML Fallback//EN') {
+ next unless /^AVERSION CDATA (.*)/i;
+ if ($1 =~ '-//W3C//DTD (SGML|XML) Fallback//EN') {
$File->{Tentative} |= (T_ERROR | T_FALL);
+ my $dtd = $1 eq 'SGML' ? 'HTML 4.01 Transitional' : 'XHTML 1.0 Strict';
&add_warning($File, 'fallback', 'DOCTYPE Fallback in effect!', <<".EOF.");
The DOCTYPE Declaration in your document was not recognized. 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
+ that closely resembles $dtd, but the document will not
be Valid until you have corrected the problem with the DOCTYPE
Declaration.
.EOF.
Received on Friday, 4 February 2005 13:20:34 UTC