- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 12 Jun 2007 11:59:00 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv28001/httpd/cgi-bin
Modified Files:
check
Log Message:
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
Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.525
retrieving revision 1.526
diff -u -d -r1.525 -r1.526
--- check 11 Jun 2007 18:33:57 -0000 1.525
+++ check 12 Jun 2007 11:58:58 -0000 1.526
@@ -623,6 +623,8 @@
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}});
};
Received on Tuesday, 12 June 2007 11:59:02 UTC