Hi Jean-Yves Thank you for that very useful information.
It does look as though background-color is supported by FOP (I can change the declaration for sidebar.title in block.xsl to include, say, background-color="red" and it comes through XFC into the PDF for the sidebar title) but so far I haven't quite worked out how to apply the background-color to the whole sidebar element. I'm still on the early part of the learning curve for XSL and FO, but I'll get there... Thanks once again for your guidance - much appreciated. Best wishes, Peter Brooks > -----Original Message----- > From: Jean-Yves Belmonte [mailto:john at pixware.fr] > Sent: Friday, September 13, 2002 8:12 AM > To: Peter Brooks > Cc: XMLeditor-Support; XFC-Support > Subject: Re: Support for sidebars > > > 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

