This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] sectionheader style
- From: Bob Stayton <bobs at sco dot com>
- To: Jens Stavnstrup <js at ddre dot dk>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Fri, 17 Oct 2003 08:44:53 -0700
- Subject: Re: [docbook-apps] sectionheader style
- References: <Pine.LNX.4.44.0310171417370.22446-100000@ares.ddre.dk>
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<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/.