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] Do docbook Stylesheet access the Internet

Well, if your documents contain any of the DocBook-defined character
entities in your document, such as ™, then the parser will report an
error if it can't find the entity declarations.

You can get the DTD to work without a catalog.  Just download the DTD zip
file, which contains the collection of DTD files.  Unzip it somewhere
convenient, and point the DOCTYPE in each of your documents to the main
docbookx.dtd file from the collection.  It can be a relative path (even on
Windows), such as:

<!DOCTYPE book SYSTEM "../docbook43/docbookx.dtd">

The main file will find all the other files in the DTD collection.

Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Michael Smith" <smith@xml-doc.org>
To: "Paul Taylor" <paul_t100@fastmail.fm>
Cc: "Bob Stayton" <bobs@sagehill.net>; "John L. Clark" <jclark@nps.edu>;
Sent: Tuesday, November 16, 2004 2:32 AM
Subject: Re: [docbook-apps] Do docbook Stylesheet access the Internet

> Note that one way around this is to completely remove the DOCTYPE
> declarations from all your document instances. They aren't
> strictly necessary for XSLT processing or even for validation (you
> can explicity specify a DTD or even a schema to your validator at
> run time). And your documents will still be well-formed XML and
> valid DocBook even if they don't contain DOCTYPE declarations.
> So unless you have DTD subsets in your documents, with entity
> declarations in them, maybe just try removing the DOCTYPE.
> Paul Taylor <paul_t100@fastmail.fm> writes:
> > The problem occurs when i run the xml document through an xslt processor
> > to generate html. The problem was with accessing the DTD which was not
> > available. Ive tried manually copying it locally but it refers to
> > additional DTDs.
> >
> > Bob Stayton wrote:
> >
> > >The stylesheets themselves don't normally access the internet.
> > >the Internet access comes when the processor tries to resolve the DTD
> > >reference in the document, or when the XSL-FO processor tries to
> > >the
> > >draft.watermark.image location, whose default value is a URL.
> > >
> > >Let's eliminate the DTD first.  After downloading the DTD and changing
> > >DOCTYPE, can you validate the document?
> > >
> > >If the document validates, can you be more specific about what stage of
> > >processing generates the network messages?  Can you successfully
> > >HTML output?  Are the message occuring when you run the FO processor?
> > >it
> > >is the latter, then try setting the stylesheet parameter 'draft.mode'
> > >'no'.  That will prevent the draft.watermark.image from being accessed.
> > >
> > >Bob Stayton
> > >Sagehill Enterprises
> > >DocBook Consulting
> > >bobs@sagehill.net
> > >
> > >
> > >
> > >
> >

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]