[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to apply different page master
At 2005-02-08 12:13 +0000, Arun Sinha wrote:
For each chapter I need to print different heading as chapter title and restart the page The above is not necessary ... you need only specify page-sequence-master if you have changing page region geometry or perimeter region content. Since you have but one page master, you can simply point to it. <fo:flow flow-name="xsl-region-body"> <fo:block break-before="page" /> ...... </fo:flow> </fo:page-sequence> A page-sequence begins a new page. In your block you are specifying "this block must begin a new page" ... that condition is satisfied, so there is no blank page. Specifying break-before= is specifying a condition to be met, not a command to be executed. Is it the right way to apply different page sequence for different chapter? You don't give a lot of context, but working from the root node you need only do: <xsl:for-each select="/document/chapter"> <fo:page-sequence master-reference="document" initial-page-number="1"> <fo:static-content flow-name="xsl-region-before">... <fo:static-content flow-name="xsl-region-after">... <fo:flow flow-name="xsl-region-body"> .... </fo:flow> </fo:page-sequence> </xsl:for-each> I hope this helps. ............................. Ken
|
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
|