This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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: bobs@sco.com

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]