This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Program listings in tables.
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: "Bob Lee" <crazybob at crazybob dot org>, <docbook-apps at lists dot oasis-open dot org>
- Date: Sat, 16 Oct 2004 17:10:37 -0700
- Subject: Re: [docbook-apps] Program listings in tables.
- References: <41705278.8020709@crazybob.org>
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
>
>