Subject: Re: [xsl] How to apply different page master From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 08 Feb 2005 07:39:42 -0500 |
For each chapter I need to print different heading as chapter title and restart the page
numbering for starting from 1.
The number of chapters are not known.
I tried setting the following page sequence :-
<fo:layout-master-set> <fo:simple-page-master master-name="document" page-height ="297mm" page-width ="210mm" margin-left ="2mm" margin-right ="2mm"> <fo:region-body margin-top="100mm" margin-bottom="5mm" /> <fo:region-before extent="99mm"/> <fo:region-after extent="4mm"/> </fo:simple-page-master>
<fo:page-sequence-master master-name="chapter">
<xsl:for-each select="/document/chapter">
<fo:repeatable-page-master-reference master-reference="document" />
</xsl:for-each>
<fo:flow flow-name="xsl-region-body"> <fo:block break-before="page" /> ...... </fo:flow> </fo:page-sequence>
But it doesn't work. It is printing only one page even if there is a break specified.
Is it the right way to apply different page sequence for different chapter?
<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>
-- World-wide on-site corporate, govt. & user group XML/XSL training. G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] How to apply different page m, Arun Sinha | Thread | Re: [xsl] How to apply different pa, Arun Sinha |
Re: [xsl] XSLT use cases; data-cent, David Carlisle | Date | RE: [xsl] Get all childs with xsl:f, Michael Kay |
Month |