xsl-list
[Top] [All Lists]

Re: [xsl] XSL-FO: Background text spanned on several table cells

2009-02-20 08:14:26
On Thu, Feb 19 2009 18:18:49 +0000, lists(_at_)fgeorges(_dot_)org wrote:
Tony Graham wrote:
...
Firstly, if you hadn't wanted one "DRAFT" over multiple cells,
you could have the "background-image" property on every cell
that is in the draft state.

  Yes, or even the way Ken proposed, as the vertical alignment
of "DRAFT" is not that important.

Though you could use "background-image" in the main table for the cells
in the draft state instead of making one or two extra interior tables.

Secondly, this achieves the desired effect when using Antenna
House:

  I maybe missed something, but it seems that this is what Ken
proposed, using block-progression-dimension.  But as I don't
know the height of the spanned rows (because the text can be on
several lines within each row,) I think I can't use this
technique.

Sorry about that: I was trying to give a hint to the formatter rather
than a fixed height, but quite by accident my hint was exactly the right
size, hence it worked for me.

In principle (at least according to me, that is) it should be sufficient
to just use <table-row height="100%"> so the row, and hence the interior
table, fills the height available, but Antenna House only fits the
interior table to the height of one table row, not the height of the two
spanned rows, and XEP doesn't change anything (though it makes very
interesting results when you put height="100%" on an fo:table-cell).

So if your requirements would allow, just using "background-image" and
no extra tables would be simplest.

Regards,


Tony Graham                         
Tony(_dot_)Graham(_at_)MenteithConsulting(_dot_)com
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--