[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSL-FO: Background text spanned on several table

Subject: Re: XSL-FO: Background text spanned on several table cells
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Thu, 19 Feb 2009 16:05:15 +0000 (GMT)
Re:  XSL-FO: Background text spanned on several table
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.