Re: [xml] xmllint loading remote DTDs instead of local

Andrew McFarland wrote:
When I validate a DocBook 4.5 XML file using xmllint, it fetches rather than
using the local copy.

Loaded URL="";
ID="-//OASIS//DTD DocBook XML V4.5//EN"

As far as I can see, my catalogs are set up correctly. Here are the
relevant lines:


In /etc/xml/catalog:
<delegatePublic publicIdStartString="-//OASIS//DTD DocBook XML"

In /etc/xml/docbook-xml.xml:
<delegatePublic publicIdStartString="-//OASIS//ENTITIES DocBook
Character Entities V4.5//EN"

Shouldn't there be also an entry like:

<delegatePublic publicIdStartString="-//OASIS//DTD DocBook XML V4.5//EN"

Otherwise /usr/share/xml/docbook/schema/dtd/4.5/catalog.xml is not
referenced, or I'm missing something?

In /usr/share/xml/docbook/schema/dtd/4.5/catalog.xml:
<public publicId="-//OASIS//DTD DocBook XML V4.5//EN" uri="docbookx.dtd"/>

Why is this happening? How can I get xmllint to use my local copy of

Does xmllint --nonet fail or correctly use the local copy?

Cheers, Andy

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