W3C home > Mailing lists > Public > www-validator-cvs@w3.org > April 2007

validator/httpd/cgi-bin check,1.513,1.514

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 30 Apr 2007 16:09:11 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1HiYR5-0004Qg-Ks@lionel-hutz.w3.org>

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

Modified Files:
	check 
Log Message:
Applying patch from http://www.w3.org/Bugs/Public/show_bug.cgi?id=800
based on ideas and code proposed by Shane McCarron.



Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.513
retrieving revision 1.514
diff -u -d -r1.513 -r1.514
--- check	30 Apr 2007 13:36:34 -0000	1.513
+++ check	30 Apr 2007 16:09:09 -0000	1.514
@@ -2339,6 +2339,17 @@
   $err->{type} = $mess->{primary_message}{Severity};
   $err->{msg}  = $mess->{primary_message}{Text};
 
+  # our parser OpenSP is not quite XML-aware, or XML Namespaces Aware, 
+  # so we filter out a few errors for now
+
+  if ($File->{Mode} eq 'XML') {
+    if ($err->{num} eq '108' and $err->{msg} =~ m{ "xmlns:\S+"}) {
+      # the error is about a missing xmlns: attribute definition"
+      return ;  # this is not an error, 'cause we said so
+    }
+  }
+
+
   # ...
   $File->{'Is Valid'} = FALSE if $err->{type} eq 'E';
 
Received on Monday, 30 April 2007 16:09:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:54:57 GMT