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

XSLT/XSL-FO: How to get a special layout for the first

Subject: XSLT/XSL-FO: How to get a special layout for the first page of every chapter in a book
From: Martin Jackson <martsonjackin@xxxxxxxxx>
Date: Wed, 25 Nov 2009 18:49:21 +0100
 XSLT/XSL-FO: How to get a special layout for the first
Hi all,

I'm trying to create a PDF from an XML document containing a book
manuscript, using XSLT/XSL-FO.

In my XML document, a new chapters is identified by a <CHAPTER> tag.

I want the first page of every chapter to look different from the rest
of the chapter pages (on the first page I want a bigger region-before
size and the chapter name in region-before, but no chapter name on the
rest of the pages).

As far I understand, the solution may have something to do with
fo:page-sequence-master, it seems to be able to assign a special
page-master to the first page. I understand that I can identify the
first page of the document this way, but how do I identify the first
pages of the rest of the chapters? Don't I somehow have to make it
react whenever a <CHAPTER> tag comes up, by invoking my "page-master
for first pages"? How do I make it react on <CHAPTER> tags?

Kind regards,
Martin

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