This is the mail archive of the
docbook-tools-discuss@sourceware.cygnus.com
mailing list for the docbook-tools project.
Jade problem with stylesheets
- To: docbook-tools-discuss@sourceware.cygnus.com
- Subject: Jade problem with stylesheets
- From: Derek Simkowiak <dereks@kd-dev.com>
- Date: Sat, 4 Sep 1999 02:32:18 -0700 (PDT)
Hello,
I am having a problem with jade. I am a jade and SGML beginner,
so please bear with me.
My system is an AMD K6/2 with a (basically) clean Redhat 6.0
install.
I am trying to get the introductory "myfile.sgml" example from
Mark Galassi's DocBook tutorial to convert into HTML. I have attached it
to this message, if anyone wants to see what I'm talking about. But jade
doesn't work on my system.
If I install the packages
docbook-3.1-5.noarch.rpm
jade-1.2.1-4.i386.rpm
jadetex-2.5-0.noarch.rpm
sgml-common-0.1-3.noarch.rpm
...I can convert the file "demo.sgm" that comes with jade into
"demo.fot" with no errors:
bash# cd /usr/doc/jade-1.2.1/dsssl/
bash# jade demo.sgm
bash#
However, I want to use "db2html" to convert the first sample of
Mark's DocBook tutorial into HTML. "db2html" is part of the stylesheets
package. But after I install
stylesheets-0.10-2.noarch.rpm
I get the following output when I try to convert the demo.sgm with
jade:
$ jade demo.sgm
jade:demo.sgm:5:2:E: document type does not allow element "P" here; assuming missing "DEMO" start-tag
jade:demo.sgm:7:2:E: document type does not allow element "P" here
jade:demo.sgm:8:22:E: end tag for "P" omitted, but OMITTAG NO was specified
jade:demo.sgm:7:0: start tag was here
jade:demo.sgm:8:22:E: end tag for "P" omitted, but OMITTAG NO was specified
jade:demo.sgm:5:0: start tag was here
jade:demo.sgm:8:22:E: end tag for "DEMO" omitted, but OMITTAG NO was specified
jade:demo.sgm:5:0: start tag was here
jade:demo.dsl:3:0:E: document instance must start with document element
jade:demo.dsl:3:0:E: character data is not allowed here
jade:demo.dsl:3:0:E: meta-DTD does not allow data at this point
jade:demo.dsl:3:5:E: meta-DTD does not allow data at this point
jade:demo.dsl:3:6:E: meta-DTD does not allow data at this point
jade:demo.dsl:3:11:E: meta-DTD does not allow data at this point
jade:demo.dsl:3:12:E: meta-DTD does not allow data at this point
jade:demo.dsl:3:18:E: meta-DTD does not allow data at this point
jade:demo.dsl:3:23:E: meta-DTD does not allow data at this point
[...etc. for many lines...]
I get similar results when I try to convert my DocBook file into
HTML.
So what have I done wrong? I believe I need the stylesheets
package installed to convert my DocBook file into HTML, right? But then
why does the stylesheets package appear to "break" jade?
If I uninstall the stylesheets package, then the demo.sgm file
works again (i.e., "jade demo.sgm" does not produce any errors). I have
noticed the following results with the package combinations of
jade-1.2.1-4.i386.rpm with stylesheets-0.10-2.noarch.rpm, as well as
jade-1.2.1-3.i386.rpm with stylesheets-0.8-4.i386.rpm.
Any help is greatly appreciated. Please let me know if I should
provide additional information.
Thank You,
Derek Simkowiak
dereks@kd-dev.com
<!doctype book PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
]>
<book>
<bookinfo>
<date>1997-10-11</date>
<title>My first booklet</title>
<subtitle>it even has a subtitle</subtitle>
</bookinfo>
<toc></toc>
<!-- We are done with the preliminaries, now we can start with
the body of the document -->
<chapter>
<title>My first chapter</title>
<para>Here's a paragraph of text because it is stylistically
poor to start a section right after the chapter title.</para>
<sect1>
<title>A section in that first chapter</title>
<para>All I need is a single paragraph of text to make the
section valid.</para>
</sect1>
</chapter>
<appendix>
<title>Remaining details</title>
<para>Although this booklet is quite complete, here I will
mention some details I never got to.</para>
<sect1>
<title>Use of the word dude</title>
<para>Here's an example of how to say
<emphasis>dude</emphasis>: DUDE.</para>
</sect1>
</appendix>
</book>