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 <> http://www.alcove.com/
Technical support manager Responsable de l'assistance technique
Senior Free-Software Consultant Consultant senior en Logiciels Libres
Debian developer () D憝eloppeur Debian