[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSL-FO page layout question
Cindy,
You're almost there. Currently, you're flowing your entire content into a single page-sequence, as shown here: At 09:58 AM 3/29/2007, you wrote: <fo:page-sequence master-reference="my-sequence"> <fo:static-content flow-name="first-before"> ... </fo:static-content> <!-- This code sets up running head for odd pages --> <fo:static-content flow-name="odd-before"> ... </fo:static-content> <!-- This code sets up running head for even pages --> <fo:static-content flow-name="even-before"> ... </fo:static-content> <fo:flow flow-name="xsl-region-body"> <xsl:apply-templates select="/book/body"/> </fo:flow> </fo:page-sequence> Instead, you want each chapter to get its own page sequence. Something like (where the above appeared) <xsl:apply-templates select="/book/body/chapter"/> and then <xsl:template match="chapter"> <fo:page-sequence master-reference="my-sequence"> ... first, your static contents ... then: <fo:flow flow-name="xsl-region-body"> <xsl:apply-templates/> </fo:flow> </fo:page-sequence> </xsl:template> (with adjustments made for the actual structure of your input). Then each chapter gets its own page sequence and thus its own first page. You may have to adjust settings on the page-sequence-master to get pagination to be continuous, control where the first page appears (on an odd or even page), etc. Cheers, Wendell
|
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
|