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

Re: sgml and DocBook



On Wed, Dec 01, 1999 at 05:43:31PM -0600, Jor-el wrote:
> Hi,
> 
> 	I wrote an entire document using the debiandoc DTD before I
> realized that I picked on the weaker and less prevailing DTD. I would like
> to convert my entire document to docbook. Unfortunately, the docbook
> package that I have (originally the Slink package, but I upgraded to the
> potato sgmltools2 package) doesnt seem to be set up perfectly. When I try
> to convert the following test document :
> 
> <!doctype DocBook system>
> <book>
> ?
> </book>
> 
> 	into html by doing '$sgmltools -b html try.sgml' (where try.sgml
> is the above file), I get :
> 
> /usr/bin/jade:<OSFD>0:1:24:W: cannot generate system identifier for
> document type "DOCBOOK"
> /usr/bin/jade:<OSFD>0:1:24:E: reference to entity "DOCBOOK" for which no
> system identifier could be generated
> /usr/bin/jade:<OSFD>0:1:0: entity was defined here
> /usr/bin/jade:<OSFD>0:1:24:E: DTD did not contain element declaration for
> document type name
> /usr/bin/jade:<OSFD>0:2:5:E: element "BOOK" undefined
> /usr/bin/jade:<OSFD>0:2:5:E: element "DOCBOOK" undefined
> /usr/bin/jade:<OSFD>0:4:8:E: end tag for "DOCBOOK" omitted, but its
> declaration does not permit this
> /usr/bin/jade:<OSFD>0:2:0: start tag was here
> 

You have docbook installed, no? It looks like it's not being found.
There should be a file /etc/catalog that should have an entry pointing
to the location of the docbook dtd. Hunt around under /usr/lib/sgml.
Maybe try using the public identifier instead.

Here on potato: <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">

On a slink, maybe:
<!DOCTYPE book PUBLIC "-//DavenPort//DTD DocBook V3.0//EN">

Maybe not specifying "book" is the problem as well?
<!doctype book SYSTEM DocBook>

After all, you should be able to do something like:
<!doctype chapter SYSTEM DocBook>

Although, I think it should default to "book" if not specified.

Hmmm, with system you may want to try:
<!doctype book SYSTEM "docbook.dtd">

I'm rather new to this SGML stuff as well (mostly using LaTeX).
-- 
+----------------------------------------------------+
| Eric G. Miller                        egm2@jps.net |
| GnuPG public key: http://www.jps.net/egm2/gpg.asc  |
+----------------------------------------------------+


Reply to: