[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Program listings in tables.
Worked like a charm. You rock, Bob. Bob Bob Stayton wrote: >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 >> >> >> >> > > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]