[xml] xmllint loading remote DTDs instead of local



When I validate a DocBook 4.5 XML file using xmllint, it fetches
http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd rather than
using the local copy.

The output with load-trace looks like this:

xmllint --noout --valid --load-trace test.xml
Loaded URL="test.xml" ID="(null)"
Loaded URL="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd";
ID="-//OASIS//DTD DocBook XML V4.5//EN"
Loaded URL="file:///usr/share/xml/docbook/schema/dtd/4.5/dbnotnx.mod"
ID="-//OASIS//ENTITIES DocBook Notations V4.5//EN"
Loaded URL="file:///usr/share/xml/docbook/schema/dtd/4.5/dbcentx.mod"
ID="-//OASIS//ENTITIES DocBook Character Entities V4.5//EN"
Loaded URL="file:///usr/share/xml/entities/xml-iso-entities-8879.1986/ISOamsa.ent"
ID="ISO 8879:1986//ENTITIES Added Math Symbols: Arrow
Relations//EN//XML"
Loaded URL="file:///usr/share/xml/entities/xml-iso-entities-8879.1986/ISOamsb.ent"
ID="ISO 8879:1986//ENTITIES Added Math Symbols: Binary
Operators//EN//XML"
Loaded URL="file:///usr/share/xml/entities/xml-iso-entities-8879.1986/ISOamsc.ent"
ID="ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN//XML"
Loaded URL="file:///usr/share/xml/entities/xml-iso-entities-8879.1986/ISOamsn.ent"
ID="ISO 8879:1986//ENTITIES Added Math Symbols: Negated
Relations//EN//XML"
Loaded URL="file:///usr/share/xml/entities/xml-iso-entities-8879.1986/ISOamso.ent"
ID="ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN//XML"
Loaded URL="file:///usr/share/xml/entities/xml-iso-entities-8879.1986/ISOamsr.ent"
ID="ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN//XML"
Loaded URL="file:///usr/share/xml/entities/xml-iso-entities-8879.1986/ISObox.ent"
ID="ISO 8879:1986//ENTITIES Box and Line Drawing//EN//XML"
Loaded URL="file:///usr/share/xml/entities/xml-iso-entities-8879.1986/ISOcyr1.ent"
ID="ISO 8879:1986//ENTITIES Russian Cyrillic//EN//XML"
Loaded URL="file:///usr/share/xml/entities/xml-iso-entities-8879.1986/ISOcyr2.ent"
ID="ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN//XML"
Loaded URL="file:///usr/share/xml/entities/xml-iso-entities-8879.1986/ISOdia.ent"
ID="ISO 8879:1986//ENTITIES Diacritical Marks//EN//XML"
Loaded URL="file:///usr/share/xml/entities/xml-iso-entities-8879.1986/ISOgrk1.ent"
ID="ISO 8879:1986//ENTITIES Greek Letters//EN//XML"
Loaded URL="file:///usr/share/xml/entities/xml-iso-entities-8879.1986/ISOgrk2.ent"
ID="ISO 8879:1986//ENTITIES Monotoniko Greek//EN//XML"
Loaded URL="file:///usr/share/xml/entities/xml-iso-entities-8879.1986/ISOgrk3.ent"
ID="ISO 8879:1986//ENTITIES Greek Symbols//EN//XML"
Loaded URL="file:///usr/share/xml/entities/xml-iso-entities-8879.1986/ISOgrk4.ent"
ID="ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN//XML"
Loaded URL="file:///usr/share/xml/entities/xml-iso-entities-8879.1986/ISOlat1.ent"
ID="ISO 8879:1986//ENTITIES Added Latin 1//EN//XML"
Loaded URL="file:///usr/share/xml/entities/xml-iso-entities-8879.1986/ISOlat2.ent"
ID="ISO 8879:1986//ENTITIES Added Latin 2//EN//XML"
Loaded URL="file:///usr/share/xml/entities/xml-iso-entities-8879.1986/ISOnum.ent"
ID="ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML"
Loaded URL="file:///usr/share/xml/entities/xml-iso-entities-8879.1986/ISOpub.ent"
ID="ISO 8879:1986//ENTITIES Publishing//EN//XML"
Loaded URL="file:///usr/share/xml/entities/xml-iso-entities-8879.1986/ISOtech.ent"
ID="ISO 8879:1986//ENTITIES General Technical//EN//XML"
Loaded URL="file:///usr/share/xml/docbook/schema/dtd/4.5/dbpoolx.mod"
ID="-//OASIS//ELEMENTS DocBook Information Pool V4.5//EN"
Loaded URL="file:///usr/share/xml/docbook/schema/dtd/4.5/htmltblx.mod"
ID="-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN"
Loaded URL="file:///usr/share/xml/docbook/schema/dtd/4.5/calstblx.dtd"
ID="-//OASIS//DTD DocBook CALS Table Model V4.5//EN"
Loaded URL="file:///usr/share/xml/docbook/schema/dtd/4.5/dbhierx.mod"
ID="-//OASIS//ELEMENTS DocBook Document Hierarchy V4.5//EN"
Loaded URL="file:///usr/share/xml/docbook/schema/dtd/4.5/dbgenent.mod"
ID="-//OASIS//ENTITIES DocBook Additional General Entities 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"
catalog="file:///etc/xml/docbook-xml.xml"/>

In /etc/xml/docbook-xml.xml:
<delegatePublic publicIdStartString="-//OASIS//ENTITIES DocBook
Character Entities V4.5//EN"
catalog="file:///usr/share/xml/docbook/schema/dtd/4.5/catalog.xml"/>

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
docbookx.dtd?

-- 
You did not read the manual
Our tech writer is sad
Locked in the toilet, he is  crying



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