[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] catalog file runaround
I tried adding this to my "group" in the catalog: <system systemId="file:/C:/XML/SDK/dbnotnx.mod" uri="DocBook/dbnotnx.dtd"/> but it just ignores it. (I tried one, two, and three slashes too) So I upgraded to v4.4 and it works!! (with original catalog) I'd really like to use 4.1.2, so if anyone has a quick suggestion on how to make it work, I'll go thru and diff the dtd to see what the differences may be... LN -----Original Message----- From: Bob Stayton [mailto:bobs@sagehill.net] Sent: Friday, April 08, 2005 12:35 PM To: Webmaster; docbook-apps@lists.oasis-open.org Subject: Re: [docbook-apps] catalog file runaround If indeed dbnotnx.mod is in c:/docbook/ent/dbnotnx.mod, then someone has rearranged your DTD files. The dbnotnx.mod file is normally in the same directory as docbookx.dtd. The docbookx.dtd file has a relative reference for the system id of "dbnotnx.mod", which means it looks in the same directory as the docbookx.dtd file. Failing that, the catalog provides not more assistance for that entity, and it falls back to the document's directory as a last resort, which fails. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Webmaster" <Webmaster@comtrol.com> To: <docbook-apps@lists.oasis-open.org> Sent: Friday, April 08, 2005 10:03 AM Subject: [docbook-apps] catalog file runaround > I've been playing around alot to try to get my catalog file to work. Finally > got somewhere and have been able to narrow it down to one problem: > > "Error on line 66 column 1 of file://C:/XML/SDK/default.xml: > Error reported by XML parser: Cannot read from > file://C:/XML/SDK/dbnotnx.mod (C) > Transformation failed: Run-time errors were reported" > > I don't know why it thinks that dbnotnx.mod should be in that directory, the > docbook is in c:/docbook/docbookx.dtd... dbnotnx.mod is in > c:/docbook/ent/dbnotnx.mod > > <onemoretest> > If I change my catalogmanager.properities: > from > catalogs=catalog.xml > to > catalogs=catalog.xml;../docbook/docbook.cat > > Then I get the error: > > "Error on line 56 column 1 of file://C:/XML/SDK/default.xml: > Error reported by XML parser: Cannot read from > file://C:/XML/SDK/ent/iso-amsa.ent (C) > Transformation failed: Run-time errors were reported" > </onemoretest> > > > LN > > docbook. 4.1.2 (unmodified), stylesheets 1.68.1, saxon 653 > > ======================================= > DEFAULT.XML FILE: (located in C:\XML\SDK\) > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE book SYSTEM "file:///C:/bogus/docbookx.dtd" [ > > ======================================= > CATALOG FILE: (located in c:\saxon) > > <?xml version="1.0"?> > <!DOCTYPE catalog > PUBLIC "-//OASIS/DTD Entity Resolution XML Catalog V1.0//EN" > "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd"> > > <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> > > <!-- $STRUCTDIR$ --> > <rewriteSystem > systemIdStartString="file:///C:/bogus" > rewritePrefix="file:/C:/bogus" /> > > <group prefer="system" xml:base="file:///C:/"> > <system > systemId="file:/C:/bogus/docbookx.dtd" > uri="DocBook/docbookx.dtd"/> > > </group> > > </catalog> > > > ===================================================== > CATALOGMANAGER.PROPERTIES FILE: (located in c:\saxon\) > catalogs=catalog.xml > relative-catalogs=false > static-catalog=yes > catalog-class-name=org.apache.xml.resolver.Resolver > verbosity=2 > > ===================================================== > COMMAND LINE (from a batch file): > java -cp > "c:\saxon\;c:\saxon\saxon.jar;c:\docbook-xsl\extensions\saxon653.jar;c:\saxo > n\resolver.jar" com.icl.saxon.StyleSheet -x > org.apache.xml.resolver.tools.ResolvingXMLReader -y > org.apache.xml.resolver.tools.ResolvingXMLReader -r > org.apache.xml.resolver.tools.CatalogResolver -u %2 %STYLESHEET% > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]