[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

FO - repeat fixed block

Subject: FO - repeat fixed block
From: Marco <marcpat@xxxxxxxxxxxx>
Date: Fri, 09 Sep 2005 12:23:08 +0200
fo block
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.