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

FW: XSL-FO print of static area at end

Subject: FW: XSL-FO print of static area at end
From: "Linda Burgess" <linda@xxxxxxxxx>
Date: Tue, 28 Feb 2006 10:20:47 +0200
fo print
Hi

I am new to using XSL-FO.B  I want to print a document with a quotation section (which may be less than or more than one page long) followed with a remittance advice section, which must only print at the end of the document, at a fixed position at the bottom of the page (to enable user to tear it off).B  If there is no space for the remittance advice on the last page of the quotation, the remittance advice must print at the bottom of the next page (which will then be a empty page with only the remittance section printed at the bottom).

After investigating as well as I could, I ended up with 3 possibilities:
1 b using B page-master-alternatives, with a different page-master for the last page, with a region-after section big enough to print the remittance advice into.

The problem I have, is that it works perfectly if the output is more than one page long, but, if less than one page, the text in the region-after section just does not print.B  What am I doing wrong? (example of XSL code used attached)

2 b to use the footnote, but I canbt figure out if you can set it to print at a certain position or of a specific size, and to fit it in, and, if, not, to print at the bottom of the next page?

3 b Can I use a block-container?B  It seems that I will then have a problem to prevent it from printing over existing text?

I will appreciate all the help I can get.

Thank you
Linda Burgess

XSL used for possibility 1: (I am at this stage just printing bdummyb data)

<xsl:template match="/ROWSET">
<fo:layout-master-set>

B  <!-- Page master for last page -->
B  <fo:simple-page-master master-name="lastPage"
B B B B B B B B B B B  page-height="297mm"
B B B  page-width="210mm"
B B B  margin-top="10mm"
B B B  margin-left="10mm"
B B B  margin-right="10mm">
B B B  <fo:region-before region-name="last-header" extent="30mm"/>
B B B  <fo:region-body margin-top="25mm"
B B B B B B B B B B B B B B B B B B B  margin-bottom="100mm"
B B B B B B B B B B B B B B B B B B B  font-size="10pt"
B B B B B B B B B B B B B B B B B B B  font-family="Times New Roman"/>
B B B  <fo:region-after region-name="last-footer" extent="95mm"/>B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B  
B  </fo:simple-page-master>

B  <!-- Page master for other pages -->
B  <fo:simple-page-master master-name="rest"
B B B  page-height="297mm"
B B B  page-width="210mm"
B B B  margin-top="10mm"
B B B  margin-left="10mm"
B B B  margin-right="10mm">
B B B  <fo:region-before region-name="rest-header" extent="30mm"/>
B B B  <fo:region-body margin-top="25mm"
B B B B B B B B B B B B B B B B B B B  margin-bottom="10mm"
B B B B B B B B B B B B B B B B B B B  font-size="10pt"
B B B B B B B B B B B B B B B B B B B  font-family="Times New Roman"/>
B B B  <fo:region-after region-name="rest-footer" extent="10mm"/>
B  </fo:simple-page-master>
B  
B  
B  
B  <fo:page-sequence-master master-name="document">
B B B B B B B B B B B  B  <fo:repeatable-page-master-alternatives>
B B B B B B B B B B B  B B  <fo:conditional-page-master-reference
B B B B B B B B B B  master-reference="lastPage" page-position="last"/>
B B B B B B  <fo:conditional-page-master-reference
B B B B B B B B B B  master-reference="rest" />
B B B B B  </fo:repeatable-page-master-alternatives>
B  </fo:page-sequence-master>
B  
</fo:layout-master-set>


<fo:page-sequence master-reference="document">

B <fo:static-content flow-name="last-footer">
B B  <fo:block >
B B B B B B  <fo:inline>*** last page - region after ***</fo:inline>

B B B B B B  <fo:table table-layout="fixed" width="189mm" font-size="10pt">
B B B B B B B B  <fo:table-column column-width="150mm"/>
B 
B B B B B B B B  <fo:table-body>

B B B B B B B B B  <fo:table-row> <fo:table-cell> <fo:block> <fo:inline>yyyy </fo:inline> </fo:block> </fo:table-cell> </fo:table-row>
B B B B B B B B B  <fo:table-row> <fo:table-cell> <fo:block> <fo:inline>yyyy </fo:inline> </fo:block> </fo:table-cell> </fo:table-row>
B B B B B B B B B B <fo:table-row> <fo:table-cell> <fo:block> <fo:inline>yyyy </fo:inline> </fo:block> </fo:table-cell> </fo:table-row>
B B B B B B B B B  <fo:table-row> <fo:table-cell> <fo:block> <fo:inline>yyyy </fo:inline> </fo:block> </fo:table-cell> </fo:table-row>
B B B B B B B B B  <fo:table-row> <fo:table-cell> <fo:block> <fo:inline>yyyy </fo:inline> </fo:block> </fo:table-cell> </fo:table-row>
B B B B B B B B B  <fo:table-row> <fo:table-cell> <fo:block> <fo:inline>yyyy </fo:inline> </fo:block> </fo:table-cell> </fo:table-row>

B B B B B B  B B </fo:table-body>
B B B B B B  </fo:table> 
B B  </fo:block>
B </fo:static-content>
B 
B  
B <fo:flow flow-name="xsl-region-body">
B B B  <fo:block> <fo:inline>This is the body</fo:inline> </fo:block>
B B B  <fo:block>
B B B  <fo:table table-layout="fixed" width="189mm" font-size="10pt">
B B B B B B B B  <fo:table-column column-width="150mm"/>
B 
B B B B B B B B  <fo:table-body>
B B B B B B B B B  
B B B B B B B B B  <fo:table-row> <fo:table-cell> <fo:block> <fo:inline>xxxxxxxx </fo:inline> </fo:block> </fo:table-cell> </fo:table-row>
B B B B B B B B B  <fo:table-row> <fo:table-cell> <fo:block> <fo:inline>xxxxxxxx </fo:inline> </fo:block> </fo:table-cell> </fo:table-row>
B B B B B B B B B  <fo:table-row> <fo:table-cell> <fo:block> <fo:inline>xxxxxxxx </fo:inline> </fo:block> </fo:table-cell> </fo:table-row>
B B B B B B B B B B B  <!brepeat to force page break bB  
B B B B B  
B B B B B B B B  </fo:table-body>
B B B B B B  </fo:table> 
B B B B  </fo:block>
B </fo:flow>

</fo:page-sequence>
</fo:root>
</xsl:template>B B B B B  
</xsl:stylesheet>

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-2007 All Rights Reserved.