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: programlisting in title's


On Fri, Aug 02, 2002 at 09:14:27PM +0200, Michael Wiedmann wrote:
> Using:
> DocBook XML 4.1.2
> DocBook XSL stylesheets 1.53.0
> xsltproc (libxml 20423, libxslt 10019, libexslt 710)
> 
> My source document contains lot's of <programlisting>s, which get
> a special background colour for HTML output using a CSS file.
> 
> <title>s get another background colour using appropriate entries in the
> CSS file, this works great too - in general.
> 
> Now I have some <title>s which I'd prefer to markup with 
> <programlisting>, because they are kind of one- or multi-line source code.
> 
> In such cases I get HTML output like:
> 
> <div><h5 class="title">5.1.1.1.&nbsp;<pre class="programlisting">
> ...
> </pre></h5></div>
> 
> This conflicts somehow with the two background colours I have in my
> CSS file (for 'h5.title' and '.programlisting') and the output is 
> not readable.
> 
> - is there a better way to markup my source document?
> - is there a better way to solve this in my CSS file?

Well, programlisting is not a valid child of the title
element because it is a block style element.
You might try an inline like literal.

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
Caldera International, Inc.                 fax:   (831) 429-1887
                                            email: bobs@caldera.com


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