Subject: Re: [xsl] Creating page breaks in XSLT From: "Perry Molendijk" <perry@xxxxxxxxxxxxxx> Date: Mon, 6 Aug 2001 23:45:03 +0800 |
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: [xsl] 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Creating page breaks in XSLT, Jitt_Joynoosaeng | Thread | RE: [xsl] Creating page breaks in X, Tim Watts |
[xsl] node count, Carlos Pisquem | Date | [xsl] markup of number next to char, Jim Albright |
Month |