[xep-support] Masterpage for chapter start

Chris Cosentino ccosenti at cisco.com
Thu Feb 10 08:14:50 PST 2005


Hello Henk,

I do the same thing, here is how I do it:.

First, you need to set up an additional page sequence, for instance:

                <!-- Page Sequences -->
                <!-- Chapter with special first page -->
                <fo:page-sequence-master master-name="chapters">
                    <fo:repeatable-page-master-alternatives>
                        <fo:conditional-page-master-reference page-position="first" master-reference="chapterfirst"/>
                        <fo:conditional-page-master-reference odd-or-even="odd" master-reference="oddLayout"/>
                        <fo:conditional-page-master-reference odd-or-even="even" master-reference="evenLayout"/>
                    </fo:repeatable-page-master-alternatives>
                </fo:page-sequence-master>
                
                <!-- Standard left/right -->
                <fo:page-sequence-master master-name="oddEven">
                    <fo:repeatable-page-master-alternatives>
                        <fo:conditional-page-master-reference odd-or-even="odd" master-reference="oddLayout"/>
                        <fo:conditional-page-master-reference odd-or-even="even" master-reference="evenLayout"/>
                    </fo:repeatable-page-master-alternatives>
                </fo:page-sequence-master>

Then, for the template that matches your chapters, you call something
like the following:

 <xsl:template match="document/chapter">
    <fo:page-sequence master-reference="chapters" initial-page-number="auto" format="1" force-page-count="end-on-even">
    <!-- next is static content, then the text flow -->

Hope that helps...

-Chris



Thursday, February 10, 2005, 10:11:21 AM, hrutten at grafidata.nl wrote:
HR> Hello,
HR>  
HR> We have an xml  document, which contains several chapters.
HR> Each chapter has to start on  a new page and has a different
HR> lay-out than the custom left/right  pages. We have created a
HR> masterpage for these chapter start pages, but how can these
HR> masterpages be applied  to the chapter openings?

HR>  
HR> kind regards,
HR>  
HR> Henk  Rutten
HR> GrafiData Deventer
HR> ------------------------------------------------
HR> Dit e-mailbericht is  slechts bestemd voor de personen of
HR> organisatie aan wie het is gericht. Het  bericht kan informatie
HR> bevatten die persoonlijk en vertrouwelijk is. Tevens kan  het
HR> informatie bevatten die niet publiekstoegankelijk van aard is.
HR> GrafiData  Media & Informatie Technologie aanvaardt geen
HR> aansprakelijkheid indien de  inhoud van dit bericht en eventuele
HR> bijlagen in strijd is met de Wet of de goede  zeden. Voor het
HR> geval de ontvanger van dit bericht niet de bedoelde persoon of 
HR> organisatie is, wordt hierbij vermeld dat verdere verspreiding,
HR> openbaarmaking  of vermenigvuldiging van dit bericht strikt
HR> verboden is en verzoeken wij u de  inhoud niet te gebruiken en de
HR> afzender direct te informeren. Dank voor uw  medewerking.


HR>  

  
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list