This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: Fw: programlisting
- From: Yann Dirson <ydirson at fr dot alcove dot com>
- To: "Gert Bultman (Xi)" <apache at xi-advies dot nl>
- Cc: docbook at lists dot oasis-open dot org
- Date: Wed, 14 Aug 2002 12:12:52 +0200
- Subject: Re: Fw: DOCBOOK: programlisting
- References: <01ad01c24379$cc086040$0314a8c0@xiadvies.nl>
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