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 Michael Gasperi <mg...@web.de> on 2003/04/03 08:51:26 UTC

table header on consecutive pages

Hi,

I've a problem with table-header on consecutive pages, the table-header 
cell number two (with content "some text 2") is not printed, but the 
"member" contents (see below) of this column is printed - any hints what 
I'm doing wrong? I do the following...

---- snip
<fo:layout-master-set>
<fo:simple-page-master master-name="simpleA4" page-height="29.7cm" 
page-width="21cm" margin-top="2cm" margin-bottom="2cm" margin-left="2cm" 
margin-right="2cm">
<fo:region-before region-name="header"/>
<fo:region-body region-name="tableheading"/>
<fo:region-after region-name="footer"/>
</fo:simple-page-master>
</fo:layout-master-set>
---- snip
<fo:flow flow-name="tableheading">
<fo:block font-size="10pt" space-before="2cm">
<!-- ============ -->
<!-- table layout -->
<!-- ============ -->
<fo:table table-omit-header-at-break="false">
<fo:table-column column-width="2cm"/>
<fo:table-column column-width="12cm"/>
<fo:table-column column-width="2cm"/>
<fo:table-header>
<fo:table-row>
<fo:table-cell text-align="center" border="0.5pt solid black">
<fo:block>some text 1</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="0.5pt solid black">
<fo:block>some text 2</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="0.5pt solid black">
<fo:block>some text 3</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<xsl:apply-templates select="member"/>
</fo:table-body>
</fo:table>
</fo:block>
</fo:flow>
--- snip

Thanks in advance and maybe you should know that I'm a beginner but I 
think you'll see this from my code!?

Michael Gasperi


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: table header on consecutive pages

Posted by Clay Leeds <cl...@medata.com>.
Michael,

I don't know if this'll help, but I recall seeing somewhere that borders
on cells are not supported at smaller than 1pt. I have tried this, and
found that PDF handles it differently (displays at .5pt) than AWT/print
(either ignores or draws 1pt). In any case that was with fop-0.20.4 and
I don't know if anything's changed for 0.20.5, 5rc2, etc.

BTW, you don't indicate important and relevant pieces of your case: your
platform (Win, Unix, Mac OS, etc.), version of FOP, version of JAVA.
These may be a factor.

Michael Gasperi wrote:
> Hi,
> 
> I've a problem with table-header on consecutive pages, the table-header
> cell number two (with content "some text 2") is not printed, but the
> "member" contents (see below) of this column is printed - any hints what
> I'm doing wrong? I do the following...
> 
> ---- snip
> <fo:layout-master-set>
> <fo:simple-page-master master-name="simpleA4" page-height="29.7cm"
> page-width="21cm" margin-top="2cm" margin-bottom="2cm" margin-left="2cm"
> margin-right="2cm">
> <fo:region-before region-name="header"/>
> <fo:region-body region-name="tableheading"/>
> <fo:region-after region-name="footer"/>
> </fo:simple-page-master>
> </fo:layout-master-set>
> ---- snip
> <fo:flow flow-name="tableheading">
> <fo:block font-size="10pt" space-before="2cm">
> <!-- ============ -->
> <!-- table layout -->
> <!-- ============ -->
> <fo:table table-omit-header-at-break="false">
> <fo:table-column column-width="2cm"/>
> <fo:table-column column-width="12cm"/>
> <fo:table-column column-width="2cm"/>
> <fo:table-header>
> <fo:table-row>
> <fo:table-cell text-align="center" border="0.5pt solid black">
> <fo:block>some text 1</fo:block>
> </fo:table-cell>
> <fo:table-cell text-align="center" border="0.5pt solid black">
> <fo:block>some text 2</fo:block>
> </fo:table-cell>
> <fo:table-cell text-align="center" border="0.5pt solid black">
> <fo:block>some text 3</fo:block>
> </fo:table-cell>
> </fo:table-row>
> </fo:table-header>
> <fo:table-body>
> <xsl:apply-templates select="member"/>
> </fo:table-body>
> </fo:table>
> </fo:block>
> </fo:flow>
> --- snip
> 
> Thanks in advance and maybe you should know that I'm a beginner but I
> think you'll see this from my code!?
> 
> Michael Gasperi


-- 
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org