[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: docbook2html terribly slow



On Tue, Feb 22, 2005 at 12:11:14PM +0100, Dominik Epple wrote:
> However, it is SLOW! Consider this trivial example I took from some
> tutorial:
[ snip ]
> Compiling this file on a Pentium-III at 450 MHz takes three minutes(!).

If anyone cares... :

I found out the reason: Because per default on debian all catalogs
found in /etc/sgml/catalog are parsed (which contain lot of stuff
recursively) the processing takes very long.

If you just read the catalogs you really need, compilation time of
a small document drops from 180 sec to 8 sec.

So instead of using docbook2html et al, I do something like

export SGML_CATALOG_FILES=/usr/share/sgml/entities/sgml-iso-entities-8879.1986/catalog:/usr/share/sgml/docbook/dtd/4.2/catalog:/usr/share/sgml/OpenJade/catalog:/usr/share/xml/docbook/schema/dtd/4.2/catalog:/usr/share/sgml/docbook/stylesheet/dsssl/modular/catalog
export DBPATH=/usr/share/sgml/docbook/stylesheet/dsssl/modular
 
openjade -t sgml -i html -d /usr/share/docbook-utils/docbook-utils.dsl#html user.sgml

openjade -t tex -i print -d /usr/share/docbook-utils/docbook-utils.dsl#print -o user.tex user.sgml
jadetex user.tex

(I hope this helps someone -- it took me a while to figure out what
really happens when using docbook2html et al.)
-- 



Reply to: