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

Re: XSL-FO page layout question

Subject: Re: XSL-FO page layout question
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 29 Mar 2007 12:26:13 -0400
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


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================

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