OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Non-graphic callouts

This is a bug in FOP, as it works in XEP.
In the FO output, the non-graphical callouts are rendered as
a number within a fo:inline that has its background color
set to dark grey.  The text is set to white, similar to the
graphical callout bugs.  But in FOP, the background-color
does not get rendered within the fo:inline, and so the white
text is not visible on a white background.

If you want to work around this for fop, you'll have to customize the
template named "callout-bug" in fo/callouts.xsl. At the
end of that template is the set of properties:

    <!-- Most safe: draw a dark gray square with a white number inside -->
      <fo:inline background-color="#404040"
        <xsl:value-of select="$conum"/>

Change the color to something other than white and
the numbers should be visible.  You could also add
parens or brackets using xsl:text if you want that.

These should properly be in an attribute-set so the properties
can be more easily customized.

Bob Stayton
Sagehill Enterprises

----- Original Message ----- 
From: <ekkehard.goerlach@pharma.novartis.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Tuesday, November 18, 2003 8:22 AM
Subject: [docbook-apps] Non-graphic callouts

> I have a small problem with non graphical callouts. As I have 15 such
> callouts in a listing I decided to use the non-graphical version and put
> the following in my customization layer:
>   <xsl:param name="callout.graphics"          select="'0'"/>
> Now the icons are gone but the numbers like (1) do not appear, neither in
> the programlisting nor in the callout listing underneath. The latter is
> indented,however, to leave some space for the numbering.
> I am rendering to PDF format using the XSL style sheets V1.62.4 and fop
> 0.20.5.
> Thanks for any hint,
> Ekkehard
> To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]