This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Page-break/Static content


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]