[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] Re: Fall back to network DTD if local one not found
> -----Original Message----- > From: John Brown > > C:\Book>xmllint --valid --noout book2.xml > Resolve: pubID -//OASIS//DTD DocBook XML V4.5//EN sysID > http://www.oasis-open.or > g/docbook/xml/4.5/docbookx.dtd > 692 Parsing catalog catalog.xml > catalog.xml added to file hash > Found system match > http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd, using > file:///c:/msys/share/xml/docbook/4.5/docbookx.dtd > Resolve: pubID -//OASIS//ENTITIES DocBook Notations V4.5//EN > sysID file:///c%3A/ > msys/share/xml/docbook/4.5/dbnotnx.mod > Found public match -//OASIS//ENTITIES DocBook Notations V4.5//EN > Resolve URI dbnotnx.mod > file:///c:/msys/share/xml/docbook/4.5/docbookx.dtd:101: > warning: failed to load > external entity "file:///c%3A/msys/share/xml/docbook/4.5/dbnotnx.mod" > %dbnotn; > > It finds the DTD, but it cannot load any entities from it. It > converts the > special character":" to hex "%3A", which I suppose it should > do, but Windows > does not accept that. This is odd. I use xmllint (libxml2 version 2.6.30) on Windows XP and there are no problems with "%3A" characters. The DTD modules resolve just fine: c:\doctypes\docbook\catalog-test>xmllint --noout --valid test.xml Resolve: sysID http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd 2728 Parsing catalog catalog.xml catalog.xml added to file hash Found system match http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd, using file:///c:/doctypes/docbook/4.5/docbookx.dtd Resolve: pubID -//OASIS//ENTITIES DocBook Notations V4.5//EN sysID file:///c%3A/doctypes/docbook/4.5/dbnotnx.mod Resolve URI file:///c%3A/doctypes/docbook/4.5/dbnotnx.mod Resolve: pubID -//OASIS//ENTITIES DocBook Character Entities V4.5//EN sysID file:///c%3A/doctypes/docbook/4.5/dbcentx.mod Resolve URI file:///c%3A/doctypes/docbook/4.5/dbcentx.mod ... ... Here is my catalog (catalog.xml): <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> <system systemId="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" uri="file:///c:/doctypes/docbook/4.5/docbookx.dtd"/> </catalog> And test.xml looks like this: <!DOCTYPE book SYSTEM "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> <book> <title>Book Title</title> <chapter> <title>Chapter title</title> <para>Text</para> </chapter> </book> /MJ
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]