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

Re: sgml tools help



Hi.

 at "Wed, 5 Apr 2000 08:17:54 -0700 (PDT)",
  Tom Fawcett <[email protected]> writes:

> % sgmltools -b html Bootdisk-HOWTO.sgml 
> Traceback (innermost last):
>   File "/usr/bin/sgmltools", line 81, in ?
>     tool.processFile(curfile)
>   File "/usr/share/sgml/misc/sgmltools/python/SGMLtools.py", line 218, 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"]
> Exit 1

I have "/usr/lib/sgml/stylesheet/dsssl/sgmltools/sgmltools.cat" on
my Debian potato system, and it has the lines:

 --                                                         --
 --  Common generic driver files                            --
 --                                                         --
PUBLIC "-//SGMLtools//DOCUMENT Docbook Style Sheet for HTML//EN" html.dsl
PUBLIC "-//SGMLtools//DOCUMENT Docbook Style Sheet for Print//EN" print.dsl
PUBLIC "-//SGMLtools//DOCUMENT Docbook Style Sheet for Lynx Text//EN" ascii-lynx.dsl

 --                                                        --
 --  Conversion stylesheet                                 --
 --                                                        --
PUBLIC "-//SGMLtools//DOCUMENT Linuxdoc Style Sheet for Docbook//EN" ld2db.dsl

and of course "/usr/lib/sgml/stylesheet/dsssl/sgmltools/" directory
has a "html.dsl" style sheet file.

Makefile.in in cvs-tree/sgmltools/packages/cvs/sgmltools/ have

install:
        -$(MKDIRHIER) $(BINDIR)
        $(INSTALL_PROGRAM) bin/sgmltools $(BINDIR)/sgmltools
        $(INSTALL_PROGRAM) bin/buildcat $(BINDIR)/buildcat
        $(INSTALL_PROGRAM) bin/gensgmlenv $(BINDIR)/gensgmlenv
        $(INSTALL_PROGRAM) bin/sgmlwhich $(BINDIR)/sgmlwhich
        -umask 022;$(MKDIRHIER) $(SHAREDIR)/stylesheet/dsssl/sgmltools
          set -e; for i in dsssl/*.dsl dsssl/*.cat; do \
            $(INSTALL_DATA) $$i $(SHAREDIR)/stylesheet/dsssl/sgmltools; \
          done;

so you should have installed ascii-lynx.dsl, html.dsl, ld2db.dsl, print.dsl,
and sgmltools.cat under /usr/share/sgml/stylesheets/dsssl/sgmltools/ directory.

I have also /etc/sgml/aliases file, and it has the lines:

sgmltools-dvi  "-//SGMLtools//DOCUMENT Docbook Style Sheet for Print//EN"#print
sgmltools-html "-//SGMLtools//DOCUMENT Docbook Style Sheet for HTML//EN"#html
sgmltools-db   "-//SGMLtools//DOCUMENT Linuxdoc Style Sheet for Docbook//EN"#db
sgmltools-ps   "-//SGMLtools//DOCUMENT Docbook Style Sheet for Print//EN"#print
sgmltools-rtf  "-//SGMLtools//DOCUMENT Docbook Style Sheet for Print//EN"#print
sgmltools-lynx "-//SGMLtools//DOCUMENT Docbook Style Sheet for Lynx Text//EN"#html
sgmltools-tex  "-//SGMLtools//DOCUMENT Docbook Style Sheet for Print//EN"#print

One more, also /etc/sgml/catalog file, and it has the lines:

-- AUTOMATICALLY GENERATED, DO NOT EDIT --
CATALOG "/usr/lib/sgml/catalog"
CATALOG "/usr/lib/sgml/stylesheet/dsssl/sgmltools/sgmltools.cat"

Maybe you should have replace the "/usr/lib/sgml" to "/usr/share/sgml"
for your environment.

> I have some idea what it's complaining about, having spent much time
> already manually fixing up CATALOG and /usr/share/sgml/ files.
> Indeed, I know more about sgmltools than I ever wanted to.

Have you checked the files under /etc/sgml/ directory ?

> I haven't yet found a package that installs successfully with correct
> catalog files, file permissions, entity filenames, etc.  Maybe I'm just
> very unluckly.  This is what led to my question.

Good Luck.

-- 
  Taketoshi Sano: <[email protected]>


--  
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]