Re: [xml] Release candidate 1 of libxml2 2.8.0



Liam R E Quin schrieb am 16.05.2012 um 11:32 (+0200):
On Wed, 2012-05-16 at 00:16 +0200, Michael Ludwig wrote:

./testapi.exe

This tests gets firewalled by the W3.ORG servers, I checked using
netstat. So I interrupted it. The source file testapi.c is huge.
Is there an easy way to instruct the program not to go the W3.ORG
servers like with xmllint --nonet?

Use an XML Catalogue file to point to a local copy of the HTML DTDs (if
that's what is being fetched), and there's an environment variable you
can set to point to it, confusingly named SGML_CATALOG_FILE I think.

$ export XML_CATALOG_FILES=/usr/local/src/libxml2/katalog.xml
$ cat $XML_CATALOG_FILES

<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">

 <system systemId="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";
  uri="dtd/xhtml1/xhtml1-strict.dtd"/>

 <system systemId="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";
  uri="dtd/xhtml1/xhtml1-transitional.dtd"/>

 <system systemId="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";
  uri="dtd/xhtml11/xhtml11-flat.dtd"/>

</catalog>

Catalogue copied from: http://de.wikipedia.org/wiki/XML_Catalogs
-- 
Michael Ludwig



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]