This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Page-break/Static content
- To: "xsl-list at lists dot mulberrytech dot com" <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] Page-break/Static content
- From: tobi dot kamke at t-online dot de (Tobi Kamke)
- Date: Thu, 28 Dec 2000 11:50:52 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi all,
I would like to create a stylesheet for a bill: On the first page there
should be only the name of the receiver, some text and other things. On the
second and the following pages there should be some static-content in the
region-before field (e.g. page-number ...) and then finally in the
region-body the single items of the bill. So my first problem is that I
have to different single-page-masters, one for the first page, the other
for the rest. I have now created the first page, but how can I enforce a
page-break? I tried this:
<fo:page-sequence master-name="sequence">
<fo:flow flow-name="xsl-region-body">
<xsl:apply-templates select="DOCUMENT/DATA" mode="FirstPage"/>
</fo:flow>
<fo:block break-after="page"/>
<fo:static-content flow-name="xsl-region-before">
<fo:block-container height="3cm" width="7cm" top="0cm" left="0cm"
position="absolute">
<fo:block font-family="serif" font-size="10pt" font-weight="bold">
Some text
</fo:block>
</fo:block-container>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<xsl:apply-templates select="DOCUMENT/ITEMS" mode="Rest"/>
</fo:flow>
FOP 0.15 returns the error that the flow-names must be unique. What can I
do? Can someone help me?
Thanks,
Tobi
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list