[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Do docbook Stylesheet access the Internet
The stylesheets themselves don't normally access the internet. Generally the Internet access comes when the processor tries to resolve the DTD reference in the document, or when the XSL-FO processor tries to resolve the draft.watermark.image location, whose default value is a URL. Let's eliminate the DTD first. After downloading the DTD and changing your DOCTYPE, can you validate the document? If the document validates, can you be more specific about what stage of the processing generates the network messages? Can you successfully generate HTML output? Are the message occuring when you run the FO processor? If it is the latter, then try setting the stylesheet parameter 'draft.mode' to 'no'. That will prevent the draft.watermark.image from being accessed. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Paul Taylor" <paul_t100@fastmail.fm> To: "John L. Clark" <jclark@nps.edu>; <docbook-apps@lists.oasis-open.org> Sent: Monday, November 15, 2004 10:48 AM Subject: Re: [docbook-apps] Do docbook Stylesheet access the Internet > Sorry, read the chapter but didnt really understand it, it seems > unneccessarily complicated for what i want to do. > > So instead I downloaded the DTD and in my source document and changed > <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" > "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> > to > <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" > "file://code/help/docbookx.dtd"> > > but it didnt work > > John L. Clark wrote: > > >On Mon, Nov 15, 2004 at 04:35:03PM +0000, Paul Taylor wrote: > > > > > >>I've been creating documents with docbook, but today it is only working > >>sporadically giving java.net.ConnectionExceptions, do the stylesheets > >>access DocBook when run. If so can they be modified to work locally. > >> > >> > > > >The DocBook XSL Stylesheets do refer to global URLs. As you've noticed, > >it's often a good thing to not have to rely on these URLs (i.e. to be > >decoupled from the network). This can be done neatly using XML Catalog > >technology. Conveniently, Bob Stayton's venerable book "DocBook XSL: > >The Complete Guide"[0] has a chapter[1] entirely devoted to this common > >problem and its solution. Let us know here if you need additional help > >setting it up. > > > >Take care, > > > > John L. Clark > > > >[0] http://www.sagehill.net/docbookxsl/index.html > > > >[1] http://www.sagehill.net/docbookxsl/Catalogs.html > > > > > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]