OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: DOCBOOK-APPS: RE: Need TOC Example & Best Method for Rendering html/pdf


Title: RE: Need TOC Example & Best Method for Rendering html/pdf

Docbook html and fo XSL stylesheets with fop is the methodology
I'm using.

Below is "bare-bones" example out of many scenarios I've tried.
HTML as well as PDF comes up with all expected content except for
the toc.  I thought that the toc was automatically generated and I
have tried with and without the toc tags.  I sure wish I could find
a simple example that will render a toc to both html and pdf.  Must
be something simple...

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"file:/C:/vendor/docbook/docbookx.dtd">
<book>
<bookinfo>
<title>Book Example</title>
<pubdate>April 5, 2002</pubdate><copyright><year>2002</year></copyright>
</bookinfo>
<toc>
 <tocchap><tocentry>Chapter 1</tocentry></tocchap>
 <tocchap><tocentry>Chapter 2</tocentry></tocchap>
</toc>
<chapter><title>Chapter 1</title><para>Paragraph </para></chapter>
<chapter><title>Chapter2</title><para>Paragraph</para></chapter>
</book>

I've also tried a variation of the following from the book with no
luck:

<toc>
<tocfront pagenum="i">Preface</tocfront>
<tocpart>
  <tocentry>Part I</tocentry>
  <tocchap>
    <tocentry pagenum="1">Getting Started with SGML/XML</tocentry>
    <toclevel1>
      <tocentry pagenum="1">HTML and SGML vs. XML</tocentry>
    </toclevel1>
    <toclevel1>
      <tocentry pagenum="3">How Does DocBook Fit In?</tocentry>
      <toclevel2>
        <tocentry pagenum="3">A Short DocBook History</tocentry>
      </toclevel2>
    </toclevel1>
    <!-- ... -->
  </tocchap>
</tocpart>
<!-- ... -->
<tocback pagenum="305">Bibliography</tocback>
</toc>

-----Original Message-----
From: Norman Walsh [mailto:ndw@nwalsh.com]
Sent: Wednesday, May 01, 2002 8:34 AM
To: STEWARD, Curtis (Jamestown)
Cc: "'docbook-apps@lists.oasis-open.org'"@mercury.trw.com
Subject: Re: Need TOC Example & Best Method for Rendering html/pdf


[ Follow-ups to docbook-apps, please ]

/ "STEWARD, Curtis (Jamestown)" <Curtis.Steward@trw.com> was heard to say:
| I've struggled way to long to have docbook automatically generate a simple
| toc.  I must be missing something obvious here, does anyone have a simple
| example of a automatically generated toc?  I understand this should work
| with
| the provided docbook stylesheets, I've tried stylesheets with and without
| %generate-book-toc% with no luck and wish to render html and pdf.

%generate-book-toc% is the name of the DSSSL parameter, but

| I'm using:
|
|   Docbook XML 4.12
|   Docbook Stylesheets 1.50

These are the XSL stylesheets.

|   Xerces 2.0.1
|   Fop 0.20.3
|   Xalan 2.3.1

What is your input document and what results do you get? What are you
producing, HTML or print? How?

                                        Be seeing you,
                                          norm

--
Norman Walsh <ndw@nwalsh.com>      | I'm NOT in denial!
http://www.oasis-open.org/docbook/ |
Chair, DocBook Technical Committee |



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC