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: [docbook-apps] Program listings in tables.


I presume you have the shade.verbatim parameter turned on for regular
programlistings, and you just want that turned off when it is in a table?

There isn't a parameter to do that, but you could customize the template
with match="programlisting|screen|synopsis" in fo/verbatim.xsl.  Where it is
checking the $shade.verbatim parameter, add another condition to check the
programlisting's ancestors.

Change:

    <xsl:when test="$shade.verbatim != 0">

to:

   <xsl:when test="$shade.verbatim != 0 and not(ancestor::entry)">

Now the shading properties will be used only if the programlisting is not
inside a table entry element.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Bob Lee" <crazybob@crazybob.org>
To: <docbook-apps@lists.oasis-open.org>
Sent: Friday, October 15, 2004 3:43 PM
Subject: [docbook-apps] Program listings in tables.


> I don't want shading or margins for program listings in tables. Is there
> a way to control this with the XSL-FO stylesheets?
>
> Thanks,
> Bob
>
>



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