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



On 27/02/2008, Andreas Stricker <andreas stricker fela ch> wrote:

<snip/>
Shouldn't there be also an entry like:

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

 catalog="file:///usr/share/xml/docbook/schema/dtd/4.5/catalog.xml"/>

There is. I copied & pasted the wrong line. Sorry.

<delegatePublic publicIdStartString="-//OASIS//DTD DocBook XML
V4.5//EN" catalog="file:///usr/share/xml/docbook/schema/dtd/4.5/catalog.xml"/>

<snip/>
Does xmllint --nonet fail or correctly use the local copy?

It seems to do *almost* the same thing as before:

11:34:33 ~
andrewmcf andrewmcfarland$ xmllint --noout --valid --nonet
--load-trace test.xml
Loaded URL="test.xml" ID="(null)"
Loaded URL="http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd";
ID="-//OASIS//DTD DocBook XML V4.0//EN"
Loaded URL="file:///usr/share/xml/docbook/schema/dtd/4.0/dbnotnx.mod"
ID="-//OASIS//ENTITIES DocBook XML Notations V4.0//EN"
Loaded URL="file:///usr/share/xml/docbook/schema/dtd/4.0/dbcentx.mod"
ID="-//OASIS//ENTITIES DocBook XML Character Entities V4.0//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.0/dbpoolx.mod"
ID="-//OASIS//ELEMENTS DocBook XML Information Pool V4.0//EN"
Loaded URL="file:///usr/share/xml/docbook/schema/dtd/4.0/calstblx.dtd"
ID="-//Norman Walsh//DTD CALS Table Model XML V4.0//EN"
Loaded URL="file:///usr/share/xml/docbook/schema/dtd/4.0/dbhierx.mod"
ID="-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.0//EN"
Loaded URL="file:///usr/share/xml/docbook/schema/dtd/4.0/dbgenent.ent"
ID="-//OASIS//ENTITIES DocBook XML Additional General Entities
V4.0//EN"

I've found I get similar problems when I change the DOCTYPE to
reference the 4.4 DTD rather than the 4.5. Although I installed the
4.5 DTDs myself several months ago, using update-xmlcatalog, the 4.4
DTDs were installed through apt (I'm running Ubuntu), so I don't think
I screwed up when adding the 4.5 DTDs.



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