On Thu, Feb 19 2009 16:44:07 +0000, lists(_at_)fgeorges(_dot_)org wrote:
G. Ken Holman wrote:
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.
...
Unfortunately I don't. Depending on the length of the text
within them, the height of the spanned rows can vary. So if I
understand correctly what you've said, it is not possible to
achieve this goal in plain XSL-FO, is it?
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.
Secondly, this achieves the desired effect when using Antenna House:
<?xml version="1.0" encoding="US-ASCII"?><!--florent.fo-->
<root xmlns="http://www.w3.org/1999/XSL/Format"
font-family="Times" font-size="20pt">
<layout-master-set>
<simple-page-master master-name="frame"
page-height="297mm" page-width="210mm"
margin-top="15mm" margin-bottom="15mm"
margin-left="15mm" margin-right="15mm">
<region-body region-name="frame-body"/>
</simple-page-master>
</layout-master-set>
<page-sequence master-reference="frame">
<flow flow-name="frame-body" xmlns="http://www.w3.org/1999/XSL/Format">
<block>This is a test for Florent</block>
<table table-layout="fixed">
<table-column column-width="1in" number-columns-repeated="5"/>
<table-body>
<table-row block-progression-dimension=".5in" display-align="center">
<table-cell border="0.5pt solid" text-align="center"
number-rows-spanned="2"><block>aaa</block></table-cell>
<table-cell border="0.5pt solid" text-align="center"
number-rows-spanned="2"><block>bbb</block></table-cell>
<table-cell border="0.5pt solid" text-align="center"
number-rows-spanned="2"><block>ccc</block></table-cell>
<table-cell border="0.5pt solid"
text-align="center"><block>ddd</block></table-cell>
<table-cell border="0.5pt solid"
text-align="center"><block>eee</block></table-cell>
</table-row>
<table-row block-progression-dimension=".5in" display-align="center">
<table-cell border="0.5pt solid"
text-align="center"><block>ddd</block></table-cell>
<table-cell border="0.5pt solid"
text-align="center"><block>eee</block></table-cell>
</table-row>
<table-row block-progression-dimension=".5in"
display-align="center">
<table-cell number-columns-spanned="3" number-rows-spanned="2">
<table table-layout="fixed"
block-progression-dimension.optimum="72pt" background-image="draft.svg"
background-position-vertical="center" background-position-horizontal="center"
background-repeat="no-repeat">
<table-column column-width="1in"
number-columns-repeated="3"/>
<table-body>
<table-row height="100%">
<table-cell height="100%" border="0.5pt solid"
text-align="center"><block>111</block></table-cell>
<table-cell height="100%" border="0.5pt solid"
text-align="center"><block>222</block></table-cell>
<table-cell height="100%" border="0.5pt solid"
text-align="center"><block>333</block></table-cell>
</table-row>
</table-body>
</table>
</table-cell>
<table-cell border="0.5pt solid"
text-align="center"><block>444</block></table-cell>
<table-cell border="0.5pt solid"
text-align="center"><block>555</block></table-cell>
</table-row>
<table-row block-progression-dimension=".5in" display-align="center">
<table-cell border="0.5pt solid"
text-align="center"><block>555</block></table-cell>
<table-cell border="0.5pt solid"
text-align="center"><block>444</block></table-cell>
</table-row>
<table-row block-progression-dimension=".5in"
display-align="center">
<table-cell border="0.5pt solid" text-align="center"
number-rows-spanned="2"><block>vvv</block></table-cell>
<table-cell border="0.5pt solid" text-align="center"
number-rows-spanned="2"><block>www</block></table-cell>
<table-cell border="0.5pt solid" text-align="center"
number-rows-spanned="2"><block>xxx</block></table-cell>
<table-cell border="0.5pt solid"
text-align="center"><block>yyy</block></table-cell>
<table-cell border="0.5pt solid"
text-align="center"><block>zzz</block></table-cell>
</table-row>
<table-row block-progression-dimension=".5in" display-align="center">
<table-cell border="0.5pt solid"
text-align="center"><block>yyy</block></table-cell>
<table-cell border="0.5pt solid"
text-align="center"><block>zzz</block></table-cell>
</table-row>
</table-body>
</table>
</flow>
</page-sequence>
</root>
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>
--~--