Re: [docbook-apps] sectionheader style

From
Bob Stayton <>
Date
2003-10-17T16:30:40+00:00
ID
Thread
Re: [docbook-apps] sectionheader style
On Fri, Oct 17, 2003 at 03:02:20PM +0200, Jens Stavnstrup wrote:
> All,
> 
> In DocBook (1.62.4) the template section.heading in html/sections.xsl 
> attach the clear attribute to h4,h5,h6 elements.

Actually, it attaches the attribute to h1 and h2, that is,
heading levels less than 3:

    <xsl:if test="$css.decoration != '0'">
      <xsl:if test="$hlevel&lt;3">
        <xsl:attribute name="style">clear: both</xsl:attribute>
      </xsl:if>
    </xsl:if>

> Why is that done?

I don't know. Ask Norm.  8^)
 
> h4, h5 and h6 will by default be displayed as a block anyway. 
> The clear attribute might break the CSS layout of documents. 

You can turn it off by setting $css.decoration to zero.
That parameter's function is to insert certain style
attributes in some HTML elements.  If you are using a
complete CSS stylesheet, you should probably turn that
parameter off anyway.

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: