Michael Ludwig schrieb am 16.05.2012 um 16:35 (+0200): > Daniel Veillard schrieb am 16.05.2012 um 17:04 (+0800): > > On Wed, May 16, 2012 at 12:16:43AM +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? > > > > Hum, that's weird, the only thing I can think of is doing vaidity > > testing of XHTML which may load the DTDs, I have a local cache > > because the XHTML1 DTDs are loaded in the XML catalog on my > > machines. I'm surprizer because I sometimes run "make check" on > > machines without any IP connection. > > Going to check later whether I can get the catalogue to work. Much easier than expected! http://de.wikipedia.org/wiki/XML_Catalogs $ 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> $ ./testapi.exe Testing HTMLparser : 32 of 38 functions ... Testing HTMLtree : 18 of 18 functions ... Testing SAX2 : 38 of 38 functions ... ... Testing parser : 61 of 70 functions ... [the one causing the hanging] ... Testing xpathInternals : 106 of 117 functions ... Testing xpointer : 17 of 21 functions ... Total: 1162 functions, 291376 tests, 0 errors Michael :) _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
