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


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: Fw: programlisting


On Wed, Aug 14, 2002 at 12:02:39PM +0200, Gert Bultman (Xi) wrote:
> I would like to have two diffrent types of programlisting (for
> instance one for inputfiles and one for outputfiles). They should be
> identical, except perhaps for the text or background colour. How can
> I achive this in docbook? (And yes, I realize this is a presentation
> issue).

The "role" attribute is here for that.  You can use for example
<programlisting role="inputfile"> and <programlisting
role="outputfile">.  You'll probably want to write a customisation
layer above the stylesheets, for example to change the "class"
attribute in the "<pre>" output.

HTH,
-- 
Yann Dirson <Yann.Dirson@fr.alcove.com>                 http://www.alcove.com/
Technical support manager                Responsable de l'assistance technique
Senior Free-Software Consultant          Consultant senior en Logiciels Libres
Debian developer (dirson@debian.org)                        Développeur Debian


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