OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[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: Bob Stayton 
 
> As another data point, I tried Saxon which uses the Java 
> catalog resolver 
> (resolver.jar).  When Saxon encounters the bad catalog entry, 
> it seems to 
> fall back to the original URI, which is what you want.


This is not what I see. I get the following error with a bad catalog entry
(Java 1.6.0, Saxon 6.5.5, XML Commons Resolver 1.2, Xerces 2.9.1): 

Failed to create InputSource (java.io.FileNotFoundException:
c:\octypes\docbook\4.5\docbookx.dtd (The system cannot find the path
specified)): file:/c:/octypes/docbook/4.5/docbookx.dtd
Error 
  Failure reading file:/c:/doctypes/docbook/catalog-test/test.xml:
www.oasis-open.org
Transformation failed: Run-time errors were reported

The catalog file contains this single entry (with "octypes" instead of the
correct "doctypes"):

<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:/octypes/docbook/4.5/docbookx.dtd"/>
</catalog>

And this is the source XML file:

<?xml version="1.0"?>
<!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]