diff options
author | ot <ot@localhost> | 2007-05-07 14:42:31 +0000 |
---|---|---|
committer | ot <ot@localhost> | 2007-05-07 14:42:31 +0000 |
commit | 37756d2c206aa1691d577e79a3b93ec317268f88 (patch) | |
tree | 72746fb965b5757dd62a63f73cc30b82e255a71c | |
parent | f200af50a30ae4373db73c9a343b83f355e8938c (diff) | |
download | markup-validator-37756d2c206aa1691d577e79a3b93ec317268f88.zip markup-validator-37756d2c206aa1691d577e79a3b93ec317268f88.tar.gz markup-validator-37756d2c206aa1691d577e79a3b93ec317268f88.tar.bz2 |
Better Error Msg for missing xmlns
-rwxr-xr-x | httpd/cgi-bin/check | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index 9d66428..d244112 100755 --- a/httpd/cgi-bin/check +++ b/httpd/cgi-bin/check @@ -14,7 +14,7 @@ # This source code is available under the license at: # http://www.w3.org/Consortium/Legal/copyright-software # -# $Id: check,v 1.515 2007-05-01 15:04:29 ot Exp $ +# $Id: check,v 1.516 2007-05-07 14:42:31 ot Exp $ # # Disable buffering on STDOUT! @@ -180,7 +180,7 @@ Directory not readable (permission denied): @_r # # Strings - $VERSION = q$Revision: 1.515 $; + $VERSION = q$Revision: 1.516 $; $VERSION =~ s/Revision: ([\d\.]+) /$1/; # @@ -2285,7 +2285,9 @@ sub W3C::Validator::SAXHandler::start_element $err->{char} = $location->{ColumnNumber}; $err->{num} = "no-xmlns"; $err->{type} = "E"; - $err->{msg} = "Missing xmlns attribute for element ".$element->{Name}; + $err->{msg} = "Missing xmlns attribute for element ".$element->{Name} . ". + The value should be: $CFG->{Types}->{$doctype}->{Namespace}"; + # ... $self->{_file}->{'Is Valid'} = FALSE; @@ -2301,7 +2303,7 @@ sub W3C::Validator::SAXHandler::start_element $err->{char} = $location->{ColumnNumber}; $err->{num} = "wrong-xmlns"; $err->{type} = "E"; - $err->{msg} = "Wrong xmlns attribute for element $element->{Name}. " . + $err->{msg} = "Wrong xmlns attribute for element $element->{Name}. ". "The value should be: $CFG->{Types}->{$doctype}->{Namespace}"; # ... |