|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Creating page breaks in XSLT
Assuming you are using XSL:FO (formatting objects) and then render the
document to PDF with FOP, you can use the break-before or break-after
property on block element:
<fo:block break-before="page">
....
</fo:block>
You also need to set a header section in the page master, e.g.:
<fo:simple-page-master master-name="content-page" page-height="29.7cm"
page-width="21cm" margin-top="1cm" margin-bottom="1cm" margin-left="2cm"
margin-right="2cm">
<fo:region-body margin-top="3cm" margin-bottom="2cm"/>
<fo:region-before region-name="content-header" extent="4cm"/>
<fo:region-after region-name="content-footer" extent="1.5cm"/>
</fo:simple-page-master>
and then :
<fo:page-sequence master-name="body" initial-page-number="1">
<fo:static-content flow-name="content-header">
<fo:block text-align="start" font-size="16pt" font-family="sans-serif"
line-height="22pt" font-weight="bold">
This Text will appear in the header of each page
</fo:block>
...
</fo:page-sequence>
There aren't too many tutorials around on XSL:FO but the archives of this
mailing list, http://www.ibiblio.org/xml/books/bible2/chapters/ch18.html and
xml.apache.org/fop are good starting points.
Regards
Perry Molendijk
----- Original Message -----
From: Jitt_Joynoosaeng@xxxxxxxxxxx
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Sent: Monday, August 06, 2001 8:50 PM
Subject: Creating page breaks in XSLT
Hello all,
I am creating an invoice and wanted to know about controlling the page
breaks in XSLT. I want to be able to set the page break, so when
printing out the invoice, the heading will appear on the top of each
page with the results below the heading. Any suggestions would be
greatly appreciated.
Thank you for your help.
Jitt
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








