Peter Brooks wrote:
> 
> I note that XXE V2.0beta supports the sidebar element in simplified docbook
> (the sidebar appears as a green tinted box on screen) but that XFO-C doesn't
> appear to process the tinting when outputting to PDF (so the sidebar
> contents appear to be in line with other text).

The green tinted box displayed by XXE is specified by the CSS stylesheet.
Norman Walsh's XSL stylesheet, by contrast, has no particular processing of
'sidebar' elements, i.e. it doesn't set any special property on the
resulting blocks.
 
> Is this a limitation of FO or have I missed something (perhaps in setting
> attributes for the sidebar element)? I would like to have the sidebar appear
> in the PDF with a tinted background (shade of grey) to set the text inside
> apart from the rest of the text.

The only way to achieve this is to slightly modify Norman Walsh's XSL
stylesheet. Locate the template for 'sidebar' elements in file
$XFC_HOME/xsl/docbook/fo/block.xsl and add a 'background-color' property
declaration (e.g. background-color"#d3d3d3") to the output block
specification.
This should do the trick, provided that FOP supports the 'background-color'
property... (XFC does, by the way.)

Hope this helps,

-- 
   Jean-Yves Belmonte <john at pixware.fr> - Pixware <http://www.pixware.fr>
   Le Capricorne - 23 rue Colbert - 78180 Montigny-le-Bretonneux - France
   voice: +33 (0)1.30.60.07.00 - fax: +33 (0)1.30.96.05.23

Reply via email to