Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4516280
Votes 0
Synopsis In TOC, numbering chapters also numbers front/back matter
Category customdoclets:mifdoclet
Reported Against 1.3
Release Fixed 1.2beta2
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs
Submit Date 18-OCT-2001
Description
In regenerating the RealTime Java book with the latest MIF doclet.
it needs this feature.

In the table of contents, if you try to autonumber the chapters,
the front and back matter also get chapter numbers (which they
shouldn't get).

Sections in the front matter, chapters, and back matter, are currently 
all assigned the paragraph tag "ChapterHead".  This means their
TOC styles are all ChapterHeadTOC.  So all will get the same
autonumbering series.

.........

To illustrate, the following front matter section produces files 
with "ChapterHead" assigned to the title of each section:

    <FrontMatter>
        <TitleFile>    james/titlepage.mif                    </TitleFile>
        <ContentsFile> james/contents.mif                     </ContentsFile>
        <SectionFile>  james/src/javax/realtime/caveat.html   </SectionFile>
        <SectionFile>  james/src/javax/realtime/authors.html  </SectionFile>
        <SectionFile>  james/src/javax/realtime/preface.html  </SectionFile>
        <SectionFile>  james/src/javax/realtime/foreword.html </SectionFile>
    </FrontMatter>

These styles then convert to ChapterHeadTOC in the table of contents,
which is the same style used by the <SectionFile> options
in the <Chapters> section.

The problem with this is that then there is no way to separately number
the TOC entries for only those sections inside <Chapter>.

We should probably create a new style called SectionHead that
is identical to ChapterHead but gets applied to front and back
matter sections.  Then ChapterHead could have autonumbering
applied to it without affecting front and back matter.
Work Around
To manually apply "SectionHead" style after the book is generated,
then generate the TOC manually.  Ughh.
Evaluation
This bug has been fixed.  SectionHead is now applied to headings in section files.

  xxxxx@xxxxx   2001-10-20
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang