diff options
author | ot <ot@localhost> | 2007-06-12 11:58:58 +0000 |
---|---|---|
committer | ot <ot@localhost> | 2007-06-12 11:58:58 +0000 |
commit | c84875dacbe19640a172bf7864f8375cdb4a5bd2 (patch) | |
tree | b83a34f92a1006a1bf1d6d3f3d0a446603a65d12 | |
parent | 1211991960cf82280664f637031a66be04778a3f (diff) | |
download | markup-validator-c84875dacbe19640a172bf7864f8375cdb4a5bd2.zip markup-validator-c84875dacbe19640a172bf7864f8375cdb4a5bd2.tar.gz markup-validator-c84875dacbe19640a172bf7864f8375cdb4a5bd2.tar.bz2 |
giving XML::LibXML the path to our XML catalog, for entities.
See discussion at http://www.w3.org/Bugs/Public/show_bug.cgi?id=4623
-rwxr-xr-x | httpd/cgi-bin/check | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index 60346fe..bf17457 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.525 2007-06-11 18:33:57 ot Exp $ +# $Id: check,v 1.526 2007-06-12 11:58:58 ot Exp $ # # Disable buffering on STDOUT! @@ -181,7 +181,7 @@ Directory not readable (permission denied): @_r # # Strings - $VERSION = q$Revision: 1.525 $; + $VERSION = q$Revision: 1.526 $; $VERSION =~ s/Revision: ([\d\.]+) /$1/; # @@ -623,6 +623,8 @@ if (&is_xml($File)) { require XML::LibXML; my $xmlparser = XML::LibXML->new(); $xmlparser->line_numbers(1); + # loading the XML catalog for entities resolution + $xmlparser->load_catalog( File::Spec->catfile($CFG->{Paths}->{SGML}->{Library}, 'xml.soc') ); eval { $xmlparser->parse_string(join"\n",@{$File->{Content}}); }; |