[xsl] FO - repeat fixed block

Subject: [xsl] FO - repeat fixed block
From: Marco <marcpat@xxxxxxxxxxxx>
Date: Fri, 09 Sep 2005 12:23:08 +0200
Hi to all,

I have to print some cards on sheets A4 (I use FOP 0.20.5 and xslt processor xalan 2.4.1 with xmlspy2004pro). These cards contain text and an
image. I have implemented the thing as it follows:


<fo:layout-master-set>
<fo:simple-page-master master-name="A4"
page-width="21cm"
page-height="29.7cm"
margin-top="0.5cm"
margin-bottom="0.5cm"
margin-left="0.5cm"
margin-right="0.5cm">
<fo:region-body margin="0.5cm"/>
<fo:region-before extent="0.5cm"/>
<fo:region-after extent="0.5cm"/>
<fo:region-start extent="0.5cm"/>
<fo:region-end extent="0.5cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="A4">
<fo:flow flow-name="xsl-region-body">
<xsl:for-each select="//record">
<fo:table table-layout="fixed"
space-before="5mm"
space-after="5mm">
<fo:table-column column-width="12.5cm"/>
<fo:table-body>
<fo:table-row keep-together="always"
space-before="5mm"
space-after="5mm">
<fo:table-cell height="7.5cm"
width="12.5cm"
border-color="black"
border-style="solid"
border-width="medium">
<fo:block padding-before="7mm"
padding-after="7mm"
margin-bottom="15mm"
margin-right="7mm"
margin-left="7mm">
<xsl:apply-templates/>
</fo:block>
<fo:block text-align="center"
margin-top="0.5mm"
writing-mode="tb-rl">
<fo:external-graphic src="url('cerchio.gif')"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:for-each>
</fo:flow>
</fo:page-sequence>
</fo:root>

now I have the following problems:

- if the text doesn't enter a card it must be inserts in a new
card (while now the card is lengthened);
- the image has to be in a static position (in low) inside the card;
- if possible, the text also continue around the image.

Other question: If I want to define an area-container template for use
its in all page A4, is possible to do it?

I hope to have been clear (excuse me for my bad English)
thanks

Current Thread