docbook: Thread: Linuxdoc 2 html question.


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Linuxdoc 2 html question.
From: "Ryan Gallagher" ####@####.####
Date: 11 Jan 2001 01:50:55 -0000
Message-Id: <000201c07b71$3036ea00$d16ea8c0@ibooks.com>

I got my docbook problems all sorted out... now the other format:

linuxdoc-tools installed in /usr/local

sym link made in /usr/local/lib/linuxdoc-tools/catalog -->
linuxdoc-tools.catalog

/usr/local/lib/linuxdoc-tools/catalog added to $SGML_CATALOG_FILES in
/etc/profile

and for the life of me i can't get it to process any Linuxdoc-HOWTO.sgml
files without exceeding 200 errors and stopping. (Using Howtos from a cvs
mirror of Linuxdoc as testing documents).

here is the activation commandline and result:
=-=-=-=-=-=-=-

$ linuxdoc -B html WWW-HOWTO.sgml
Processing file WWW-HOWTO.sgml
/usr/bin/onsgmls:/home/os-admin/refs/dtds/docbk31/catalog:22:0:W: DTDDECL
catalog entries are not supported
/usr/bin/onsgmls:/home/os-admin/refs/dtds/docbk40/catalog:22:0:W: DTDDECL
catalog entries are not supported
/usr/bin/onsgmls:/home/os-admin/refs/dtds/docbk41/catalog:22:0:W: DTDDECL
catalog entries are not supported
/usr/bin/onsgmls:<OSFD>0:3:8:E: document type does not allow element
"ARTICLE" here; assuming missing "LINUXDOC" start-tag
/usr/bin/onsgmls:<OSFD>0:5:6:E: document type does not allow element "TITLE"
here; assuming missing "TITLEPAG" start-tag
/usr/bin/onsgmls:<OSFD>0:6:7:E: document type does not allow element
"AUTHOR" here
/usr/bin/onsgmls:<OSFD>0:6:8:E: character data is not allowed here
/usr/bin/onsgmls:<OSFD>0:6:24:E: document type does not allow element "TT"
here; assuming missing "NAME" start-tag
/usr/bin/onsgmls:<OSFD>0:8:5:E: document type does not allow element "DATE"
here
/usr/bin/onsgmls:<OSFD>0:10:9:E: document type does not allow element
"ABSTRACT" here
/usr/bin/onsgmls:<OSFD>0:16:4:E: document type does not allow element "TOC"
here
/usr/bin/onsgmls:<OSFD>0:20:5:E: document type does not allow element "SECT"
here
/usr/bin/onsgmls:<OSFD>0:20:6:E: character data is not allowed here
/usr/bin/onsgmls:<OSFD>0:21:2:E: document type does not allow element "P"
here
/usr/bin/onsgmls:<OSFD>0:23:E: document type does not allow element "P" here
/usr/bin/onsgmls:<OSFD>0:31:E: document type does not allow element "P" here
/usr/bin/onsgmls:<OSFD>0:38:E: document type does not allow element "P" here
/usr/bin/onsgmls:<OSFD>0:38:6:E: document type does not allow element
"SECT1" here
/usr/bin/onsgmls:<OSFD>0:38:7:E: character data is not allowed here
/usr/bin/onsgmls:<OSFD>0:39:2:E: document type does not allow element "P"
here
/usr/bin/onsgmls:<OSFD>0:42:E: document type does not allow element "P" here
/usr/bin/onsgmls:<OSFD>0:45:E: document type does not allow element "P" here
/usr/bin/onsgmls:<OSFD>0:46:E: document type does not allow element "P" here
/usr/bin/onsgmls:<OSFD>0:51:E: document type does not allow element "P" here
/usr/bin/onsgmls:<OSFD>0:52:E: document type does not allow element "P" here
/usr/bin/onsgmls:<OSFD>0:57:E: document type does not allow element "P" here
/usr/bin/onsgmls:<OSFD>0:58:E: document type does not allow element "P" here
[snip - etc etc up until 200 errors is reached]

To me it looks like something related to finding the right DTD... did i do
that part right?

Any help would be appreciated,
Thanks in advance,
Ryan Gallagher

####@####.####


Subject: Re: Linuxdoc 2 html question.
From: Taketoshi Sano ####@####.####
Date: 11 Jan 2001 18:43:39 -0000
Message-Id: <y5aelyakmpj.fsf@kgh12351.nifty.ne.jp>

Hi.

 (maybe off-topic, since this list is meant for docbook.
  where this question should go ? ####@####.#### is right ?)

In ####@####.####
  on Wed, 10 Jan 2001 19:52:42 -0600,
 "Ryan Gallagher" ####@####.#### wrote:

> here is the activation commandline and result:
> =-=-=-=-=-=-=-
> 
> $ linuxdoc -B html WWW-HOWTO.sgml
> Processing file WWW-HOWTO.sgml
> /usr/bin/onsgmls:/home/os-admin/refs/dtds/docbk31/catalog:22:0:W: DTDDECL
> catalog entries are not supported

> /usr/bin/onsgmls:<OSFD>0:3:8:E: document type does not allow element
> "ARTICLE" here; assuming missing "LINUXDOC" start-tag
> /usr/bin/onsgmls:<OSFD>0:5:6:E: document type does not allow element "TITLE"
> here; assuming missing "TITLEPAG" start-tag
> /usr/bin/onsgmls:<OSFD>0:6:7:E: document type does not allow element
> "AUTHOR" here

> To me it looks like something related to finding the right DTD... did i do
> that part right?

Well, it seems that DTD is understood well, since onsgmls claims that
"LINUXDOC" start-tag should be happen.

What is different than usual, is SGML declaration for linuxdoc dtd.
Linuxdoc DTD does not have its declaration, and uses the default of
SGML parser, which allows omittag in its configuration so far.

Can you find opensp-implied.dcl if you use opensp (onsgmls) ?
It should have lines:

MINIMIZE DATATAG   NO
         OMITTAG   YES
         RANK      YES
         SHORTTAG  YES

If this "OMITTAG YES" is changed to "OMITTAG NO", then it may have
something with this error messages.

Hmm. I found the recent opensp (version 1.5pre4 here) does not work
as old sp. Is there some backward-incompatibility with recent opensp ?

Specifically, SGML source is not read at full, onsgmls just read
the head part of it, and complains that the source is not finished.

sp 1.2.1 successfully does its job as usual on the same system, so
the problem comes from onsgmls (opensp) 1.5pre4.

Regards.
-- 
  Taketoshi Sano: ####@####.####
[<<] [<] Page 1 of 1 [>] [>>]


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.