validator/httpd/cgi-bin check,1.678,1.679

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

Modified Files:
	check 
Log Message:
Fix is_xml() package scope issue introduced in rev 1.675.

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.678
retrieving revision 1.679
diff -u -d -r1.678 -r1.679
--- check	30 Jul 2009 19:48:47 -0000	1.678
+++ check	11 Aug 2009 11:04:12 -0000	1.679
@@ -3024,7 +3024,7 @@
   my $xmlns_value = undef;
 
   # If in XML mode, find namespace used for each element.
-  if (&is_xml($self->{_file})) {
+  if (&W3C::Validator::MarkupValidator::is_xml($self->{_file})) {
     if (my $attr = $element->{Attributes}->{xmlns}) {
       $xmlns_value = "";
       # Try with SAX method
@@ -3118,7 +3118,7 @@
   # our parser OpenSP is not quite XML-aware, or XML Namespaces Aware,
   # so we filter out a few errors for now
 
-  my $is_xml = &is_xml($File);
+  my $is_xml = &W3C::Validator::MarkupValidator::is_xml($File);
 
   if ($is_xml and $err->{num} eq '108' and $err->{msg} =~ m{ "xmlns:\S+"}) {
     # the error is about a missing xmlns: attribute definition"

Received on Tuesday, 11 August 2009 11:04:23 UTC