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, 17 Oct 2003, Bob Stayton wrote:

> 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>

You are right, don't know how I reversed that ooperator !

> 
> > Why is that done?
> 
> I don't know. Ask Norm.  8^)
>

Better not
  
> > 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.
> 

Never actually read that section. Just assumed it allowing CSS styles, as 
defined in html.stylesheet. Well you know what they say, assumptions is 
the mother of all f... ...

Maybe it would be an idea to in to create on big Refpage. That might be 
helpfull.


Thank Bob


Regards,

Jens

------------------------------------------------------------------------
Jens Stavnstrup                            Phone :
Danish Defence Research Establishment         Voice : + 45 - 39 15 17 97
Ryvangs Alle 1 - P.O. Box 2715                Fax   : + 45 - 39 29 15 33
DK - 2100 Copenhagen O.                    E-Mail (Internet) :
Denmark                                       js@ddre.dk
------------------------------------------------------------------------





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]