[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: XML catalog documentation
On Tue, Dec 03, 2002 at 12:30:29PM +0100, Jeanson Mauritz wrote: > > -----Original Message----- > > From: Bob Stayton [mailto:bobs@caldera.com] > > Sent: Monday, November 11, 2002 10:44 AM > > To: docbook-apps@lists.oasis-open.org > > Subject: DOCBOOK-APPS: XML catalog documentation > > > > > > I've rewritten my chapter on using XML catalogs with > > DocBook XSL so that it is more complete and accurate. It > > is available at > > > > http://www.sagehill.net/xml/docbookxsl/Catalogs.html > > > > Comments welcome. > > Regarding the Xalan command line example: > > I can't prevent Xalan from trying to go out on the web. This means it > doesn't work when I'm offline. The log looks like this: > > Parse catalog: catalog.xml > Loading catalog: catalog.xml > Default BASE: file:/C:/XMLtest/catalogs/test/Xalan/catalog.xml > uri: http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl > file:///c:/doctypes/docbook/xsl/html/docbook.xsl > URI: http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl > file:/c:/doctypes/docbook/xsl/html/docbook.xsl > rewriteURI: http://docbook.sourceforge.net/release/xsl/current/ > file:///c:/doctypes/docbook/xsl/ > REWRITE_URI: http://docbook.sourceforge.net/release/xsl/current/ > file:/c:/doctypes/docbook/xsl/ > > (Location of error unknown)XSLT Error (javax.xml.transform.TransformerConfigurat > ionException): javax.xml.transform.TransformerException: java.net.ConnectExcepti > on: Connection refused: connect > > The catalog file: > > <catalog > xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> > > <uri > name="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl" > uri="file:///c:/doctypes/docbook/xsl/html/docbook.xsl"/> > > <rewriteURI > uriStartString="http://docbook.sourceforge.net/release/xsl/current/" > rewritePrefix="file:///c:/doctypes/docbook/xsl/"/> > > </catalog> > > > What am I missing? Well, I could have sworn I had the Xalan example working, but it doesn't. I don't think you are missing anything. Xalan doesn't seem to apply the catalog to URIs on the command line. Period. I can put the CatalogManager.properties verbosity setting up to 4, and I never see a message like: resolve(http://docbook.sourceforge.net/...). The first resolve attempt is for: resolve(../VERSION) which is the first reference in docbook.xsl to another file. So it never even tries to look up the argument to the -XSL option from the command line. But if I put the stylesheet reference in the file like this: <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xml" href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"?> Then the catalog is consulted and it works to find the local file. That shows that the catalog is working, but how do we convince Xalan to use it on the command line argument? Saxon has the -u option to do that. -- Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 The SCO Group fax: (831) 429-1887 email: bobs@sco.com ---------------------------------------------------------------- To subscribe or unsubscribe from this elist use the subscription manager: <http://lists.oasis-open.org/ob/adm.pl>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC