You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Georg Datterl <ge...@geneon.de> on 2009/10/13 13:22:34 UTC
Vertical table header
Hi everybody,
Please have a look at the following fo code:
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions">
<fo:layout-master-set>
<fo:simple-page-master page-height="7cm" page-width="7cm" master-name="xxx">
<fo:region-body margin-right="1cm" margin-left="1cm" margin-bottom="1cm" margin-top="1cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="xxx">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:table table-layout="fixed" start-indent="0pt">
<fo:table-column column-number="1"/>
<fo:table-column column-number="2"/>
<fo:table-header>
<fo:table-row keep-with-next.within-page="5">
<fo:table-cell padding-before="61.795pt">
<fo:block-container>
<fo:block>
<fo:inline>horizontal Header</fo:inline>
</fo:block>
</fo:block-container>
</fo:table-cell>
<fo:table-cell background-color="rgb(0, 0, 255)" display-align="center">
<fo:block-container reference-orientation="90" keep-together.within-page="always">
<fo:block reference-orientation="0">
<fo:block start-indent="-28.346pt" background-color="rgb(255, 0, 0)">
<fo:inline>verticacacal Headererer</fo:inline>
</fo:block>
</fo:block>
</fo:block-container>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block-container>
<fo:block>
<fo:inline>text cell 1</fo:inline>
</fo:block>
</fo:block-container>
</fo:table-cell>
<fo:table-cell>
<fo:block-container>
<fo:block>
<fo:inline>O</fo:inline>
</fo:block>
</fo:block-container>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
this code builds a table with a header, two columns and a row. Interesting part is the second column header, a vertical text. I know the first column header with its padding is responsible for the cell height. But who is responsible for the length of the outer vertical block (colored red)? Without the start-indent it would have the same size but would hang from the top border of the cell.
Questions:
*) Why would the block hang from the cell top without the negative start-indent?
*) Why is the red block as long as it is?
*) How can I increase the size of the red block?
Regards,
Georg Datterl
------ Kontakt ------
Georg Datterl
Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg
HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert
Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20
www.geneon.de
Weitere Mitglieder der Willmy MediaGroup:
IRS Integrated Realization Services GmbH: www.irs-nbg.de
Willmy PrintMedia GmbH: www.willmy.de
Willmy Consult & Content GmbH: www.willmycc.de
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Vertical table header
Posted by Vincent Hennebert <vh...@gmail.com>.
Hi Georg,
Georg Datterl wrote:
> Hi everybody,
>
> Please have a look at the following fo code:
>
<snip/>
>
> this code builds a table with a header, two columns and a row. Interesting part is the second column header, a vertical text. I know the first column header with its padding is responsible for the cell height. But who is responsible for the length of the outer vertical block (colored red)? Without the start-indent it would have the same size but would hang from the top border of the cell.
>
> Questions:
> *) Why would the block hang from the cell top without the negative start-indent?
> *) Why is the red block as long as it is?
> *) How can I increase the size of the red block?
Your FO file is invalid, which is the origin of your problems. According
to the Recommendation, “the inline-progression-dimension [...] may not
be ‘auto’ if the inline-progression-direction is different from that of
the parent of the fo:block-container.” [1]
[1] http://www.w3.org/TR/xsl11/#fo_block-container
Since you rotated the block-container by 90°, you must specify a ‘width’
or ‘inline-progression-dimension’. Otherwise the behaviour is
unspecified, and I actually don’t know what FOP does.
HTH,
Vincent
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org