validator/httpd/cgi-bin check,1.496,1.497

Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv10969/httpd/cgi-bin

Modified Files:
	check 
Log Message:
Went through all the RECs of the document types we support, and found which ones require 
the xmlns attribute on the root element, and which don't. Making the check script whine 
about its absence only if required. 



Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.496
retrieving revision 1.497
diff -u -d -r1.496 -r1.497
--- check	4 Apr 2007 09:53:16 -0000	1.496
+++ check	4 Apr 2007 10:26:01 -0000	1.497
@@ -2233,7 +2233,8 @@
 
       }
     }
-    if ($has_xmlns == FALSE){
+    if (($has_xmlns == FALSE)  and ($CFG->{Types}->{$self->{_file}->{DOCTYPE}}->{"Namespace Required"} eq TRUE )){
+      # whine if the root xmlns attribute is noted as required by spec, but not present
       my $err;
       my $location = $self->{_parser}->get_location();
       $err->{src}  = '...'; # do this with show_open_entities()?

Received on Wednesday, 4 April 2007 10:26:07 UTC