Subject: Re: [xsl] XSL-FO: Background text spanned on several table cells From: Florent Georges <lists@xxxxxxxxxxxx> Date: Thu, 19 Feb 2009 16:05:15 +0000 (GMT) |
G. Ken Holman wrote: > At 2009-02-19 14:26 +0000, Florent Georges wrote: > > Let's say I have a table with 5 columns, and a variable > > count of rows. For some rows, I would like to put a text in > > the background, that is spanned over the first 3 columns. > > For instance with the following table: > The FO file below gives you the effect you want in both > Antenna House and RenderX ... I'm confident you can generalize > this algorithmically into what you want. One key, however, is > your expectation of the cell heights ... I'm not sure you can > achieve what you want with unspecified block-container maximum > heights. You'll have to have rigid cell boundaries, I think, > to get the desired effect. > Below I'm creating a spanned set of rows and columns for the > area in draft, and in that single cell I'm laying down the > "DRAFT" with a z-index="1" and then redrawing the desired > table cells in a new table on top of "DRAFT" by using a > z-index="2". Thanks Ken, that works great for the problem I described. The real problem, though, is a bit more complex. The first three cells (those to put the text on the background) are spanned over several rows. And the table cells have borders. I've adapted your example to reflect this situation: http://www.fgeorges.org/tmp/background-text-ken.fo http://www.fgeorges.org/tmp/background-text-ken.pdf You can see in the PDF that the height of the cells is not spanned anymore over the lines. Ideally, what I would like is something like this (the vertical position of the background text does not really matter): http://www.fgeorges.org/tmp/background-text.jpg But I don't know how to tell the processor to use all the available vertical space for the inner table. Regards, -- Florent Georges http://www.fgeorges.org/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL-FO: Background text s, G. Ken Holman | Thread | Re: [xsl] XSL-FO: Background text s, G. Ken Holman |
RE: [xsl] Integrated sort using dif, G. Ken Holman | Date | Re: [xsl] Integrated sort using dif, Quinn Dombrowski |
Month |