OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] custom class attributes


On Sat, Oct 11, 2003 at 07:15:17PM +0200, Michael Wiedmann wrote:
> * Michael Wiedmann <mw@miwie.in-berlin.de> wrote [031011 18:45]:
> 
> [ sorry for answering to my own posting ]
> 
> > Is there a way to get "custom class attributes" as described in 
> > "http://www.sagehill.net/docbookxsl/UsingCSS.html#CustomClass"; 
> > for other elements than the mentioned "emphasis, entry, para, 
> > and phrase"?
> > 
> > I want to markup some deeply nested <section>s as <bridgehead> (to not
> > get section numbers for these) but want to pass down a class attribute
> > to be used in my CSS.
> 
> I found part of a possible solution myself (in rading just a few more
> lines in Bob's document):
> 
> If one uses the <phrase> element with a "role" attribute this value
> will be passed down as "class" attribute of a "span", which is almost 
> what I want. The only difference is that with CSS like
> 
> h5.title        { background-color: lightblue; 
>                   font-family: sans-serif;
>                   font-size: small;
>                   color: black;
>                 }
> span.title      { background-color: lightblue; 
>                   font-family: sans-serif;
>                   font-size: small;
>                   color: black;
>                 }
> 
> browsers render "h5.title" lines over the complete width of the
> browser, the "span" part on the other hand only for the part which
> is "spanned" (in the example below only "foo foo").
> 
> What I want is to get
> 
> <bridgehead><span role="title">foo foo</span></bridgehead> 
> 
> rendered exactly like
> 
> <sect5>foo foo</sect5>

For this, there is a special attribute on bridgehead.
You can use <bridgehead renderas="sect5"> and it
will render it to look like a sect5 heading.
It still won't be in the TOC, nor will it be numbered.

-- 

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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]