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: 4646765
Votes 0
Synopsis <H2> in overview.html should map to ClassSubHead, not ChapterSubHead
Category customdoclets:mifdoclet
Reported Against 1.2beta1
Release Fixed 1.2beta2
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs
Submit Date 04-MAR-2002
Description
<H2> in overview.html gets mapped to ChapterSubHead, but 
documentation says it should map to ClassSubHead.
This is because an overview section is closer to a package page,
which also maps to ClassSubHead.  

   Note 3:
   <H2> in an overview file maps internally to "PackageSubHead" (because 
   there are no overview subheads) but then maps to "ClassSubHead" in 
   stylemap.properties for convenience. 

http://java.sun.com/j2se/javadoc/mifdoclet/docs/mifdoclet.html#mappingofhtmltags

In the following case, the developer wants ChapterSubHead to start
a new page, but doesn't want the <H2> in overview.html to start a new page.


-----------------
In my XML book file I have

<chapter>
<overviewfile>../doc/api-overview.html</overviewfile>
</chapter>
<chapter>
<package>com.sun.jini.temp.davis.jeri. customer </package>
<class>com.sun.jini.temp.davis.jeri. customer .TcpServerEndpoint</class>
<class>com.sun.jini.temp.davis.jeri. customer .TcpEndpoint</class>
<sectionfile>doc-files/mux.html</sectionfile>
</chapter>

The mux.html file starts with an <H2> heading. I view this file
as at the same level as classes within the package, so I'd like
this section to start at the top of a page, and I'd like its heading
to have a font size comparable to that of ClassPreHead/ClassHead.
The <H2> gets translated to a ChapterSubHead, so I thought I could
customize my template.mif to make ChapterSubHead be
<PgfPlacement PageTop> and a larger font size than the default 14 pt.

But, the api-overview.html also starts with an <H2> heading which
gets translated to a ChapterSubHead.

and when used as an <overviewfile>,
a "Description" ChapterSubHead also gets prepended. So if I change
ChapterSubHead to be <PgfPlacement PageTop>, my overview ends up
as three pages: a page with nothing but an "Overview" OverviewHead,
a page with nothing but a "Description" ChapterSubHead and a one-sentence
description, and a page with an "Overview" ChapterSubHead and the
actual overview.

Is there a better way to handle this?

- Bob
Work Around
N/A
Evaluation
Fixed last week.  Duplicate is "4646634 Add internal styles for Overview subhead styles"
  xxxxx@xxxxx   2002-03-11
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang