Index: check =================================================================== RCS file: /sources/public/validator/httpd/cgi-bin/check,v retrieving revision 1.507 diff -u -r1.507 check --- check 27 Apr 2007 20:36:31 -0000 1.507 +++ check 28 Apr 2007 03:59:27 -0000 @@ -421,6 +421,7 @@ $File->{Opt}->{'Max Errors'} = $q->param('me') ? $q->param('me') : ''; $File->{Opt}->{'Prefill'} = $q->param('prefill') ? TRUE : FALSE; $File->{Opt}->{'Prefill Doctype'} = $q->param('prefill_doctype') ? $q->param('prefill_doctype') : 'html401'; +$File->{Opt}->{'Ignore XMLNS Errors'} = TRUE ; # # "Fallback" info for Character Encoding (fbc), Content-Type (fbt), @@ -2340,6 +2341,14 @@ $err->{type} = $mess->{primary_message}{Severity}; $err->{msg} = $mess->{primary_message}{Text}; + # XMLNS attributes can be ignored + if ($File->{Opt}->{'Ignore XMLNS Errors'} == TRUE) { + if ($err->{msg} =~ m{there is no attribute "xmlns:}) { + # 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';