--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: sgmltools-lite: Docbook Style Sheet for HTML not found
- From: Olivier Parisy <parisy@labri.fr>
- Date: Sun, 10 Nov 2002 19:24:32 +0100
- Message-id: <E18Awl7-0000WW-00@mica>
Package: sgmltools-lite
Version: 3.0.3.0.cvs.20010909-12
Severity: grave
Tags: patch
Justification: renders package unusable
I must say first that I installed most of the SGML tools I was
able to found using apt-cache search ; but I didn't hack
anything in standard files before I got this problem.
After typing
$ sgmltools --backend=onehtml organisation.sgml
I go this error message :
Traceback (most recent call last):
File "/usr/bin/sgmltools", line 93, in ?
tool.processFile(curfile)
File "/usr/share/sgml/misc/sgmltools/python/SGMLtools.py", line 235, in processFile
dssslfile = utils.findStylesheet(stylesheet, self._aliases)
File "/usr/share/sgml/misc/sgmltools/python/utils.py", line 307, in findStylesheet
return findStylesheet(name, aliases)
File "/usr/share/sgml/misc/sgmltools/python/utils.py", line 317, in findStylesheet
raise IOError, "Couldn't resolve pubid [%s]" % id
IOError: Couldn't resolve pubid ["-//SGMLtools//DOCUMENT Docbook Style Sheet for HTML//EN"]
(BTW, my SGML file validate properly against "-//OASIS//DTD DocBook V3.1//EN")
I found a similar problem report here :
http://www.lug-bs.de/lug/linuxtage/blt_2/cd_online/doc/LDP/archives/ldp-discuss/msg01901.html
And followed all its advices, without much luck.
Finally, I was able to resolve this by defining an environment variable :
export SGML_CATALOG_FILES=/usr/lib/sgml/catalog:/usr/share/sgml/stylesheet/dsssl/sgmltools/sgmltools.cat
I am in no position to appreciate this situation, but I have the feeling
that it's not the better fix one can imagine ; using aliases or catalog
files would probably be cleaner, but using update-catalog as an example
I wasn't able to get any result.
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux mica 2.4.18 #2 dim nov 3 21:31:12 CET 2002 i686
Locale: LANG=fr_FR, LC_CTYPE=fr_FR
Versions of packages sgmltools-lite depends on:
ii docbook 4.2-1 SGML DTD for authors of technical
ii docbook-dsssl 1.77-1 Modular DocBook DSSSL stylesheets,
ii jade 1.2.1-28 James Clark's DSSSL Engine
ii python 2.2.2-1 An interactive object-oriented scr
ii sgml-base 1.17 utilities to maintain SGML catalog
-- no debconf information
--- End Message ---