[xep-support] the order of the conditional-page-master-reference

From: Marc (marc.liste@free.fr)
Date: Mon Mar 29 2004 - 04:25:58 PST

  • Next message: G. Ken Holman: "Re: [xep-support] the order of the conditional-page-master-reference"

    Hello,
    I found a problem with the fo:conditional-page-master-reference, it's about the order of the element when there is a page-postion attribute.

    ----
    <fo:conditional-page-master-reference odd-or-even="odd" master-reference="odd-page"/>
    <fo:conditional-page-master-reference odd-or-even="even" master-reference="even-page"/>
    <fo:conditional-page-master-reference odd-or-even="odd" page-position="first" master-reference="odd-first-page"/>
    <fo:conditional-page-master-reference odd-or-even="even" page-position="first"  master-reference="even-first-page"/>
    ---- doesn't run
     but :
    <fo:conditional-page-master-reference odd-or-even="odd" page-position="first" master-reference="odd-first-page"/>
    <fo:conditional-page-master-reference odd-or-even="even" page-position="first"  master-reference="even-first-page"/>
    <fo:conditional-page-master-reference odd-or-even="odd" master-reference="odd-page"/>
    <fo:conditional-page-master-reference odd-or-even="even" master-reference="even-page"/>
    ---- runs very well
    here is a sample where you can invert the lines :
    Marc
    ------------------------------------------------------------
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <fo:layout-master-set>
    	<fo:simple-page-master master-name="first-page">
    		<fo:region-body margin="1in" border="thin solid silver" padding="6pt"/>
    	</fo:simple-page-master>
    	<fo:simple-page-master master-name="odd-page">
    		<fo:region-body margin="1in" border-right="medium gray ridge" padding-right="6pt"/>
    	</fo:simple-page-master>
    	<fo:simple-page-master master-name="even-page">
    		<fo:region-body margin="1in" border-left="medium gray ridge" padding-left="6pt"/>
    	</fo:simple-page-master>
    	<fo:simple-page-master master-name="odd-first-page">
    		<fo:region-body margin="1in" border="thin solid silver" padding="6pt"/>
    	</fo:simple-page-master>
    	<fo:simple-page-master master-name="even-first-page">
    		<fo:region-body margin="1in" />
    	</fo:simple-page-master>
    	<fo:page-sequence-master master-name="my-sequence">
    		<fo:repeatable-page-master-alternatives>
    			<fo:conditional-page-master-reference odd-or-even="odd" master-reference="odd-page"/>
    			<fo:conditional-page-master-reference odd-or-even="even" master-reference="even-page"/>
    			<fo:conditional-page-master-reference odd-or-even="odd" page-position="first" master-reference="odd-first-page"/>
    			<fo:conditional-page-master-reference odd-or-even="even" page-position="first"  master-reference="even-first-page"/>
    		</fo:repeatable-page-master-alternatives>
    	</fo:page-sequence-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="my-sequence">
    	<fo:flow flow-name="xsl-region-body" font="72pt Times">
    		<fo:block space-before="2in" space-after="2in">
    			Seq 1
    		</fo:block>
    		<fo:block space-before="2in" space-after="2in">
    			Second block
    		</fo:block>
    		<fo:block space-before="2in" space-after="2in">
    			Third block
    		</fo:block>
    		<fo:block space-before="2in" space-after="2in">
    			First block
    		</fo:block>
    		<fo:block space-before="2in" space-after="2in">
    			Second block
    		</fo:block>
    		<fo:block space-before="2in" space-after="2in">
    			Third block
    		</fo:block>
    		<fo:block space-before="2in" space-after="2in">
    			First block
    		</fo:block>
    		<fo:block space-before="2in" space-after="2in">
    			Second block
    		</fo:block>
    		<fo:block space-before="2in" space-after="2in">
    			Third block
    		</fo:block>
    	</fo:flow>
    </fo:page-sequence>
    <fo:page-sequence master-reference="my-sequence">
    	<fo:flow flow-name="xsl-region-body" font="72pt Times">
    		<fo:block space-before="2in" space-after="2in">
    			Seq 2
    		</fo:block>
    		<fo:block space-before="2in" space-after="2in">
    			Second block
    		</fo:block>
    		<fo:block space-before="2in" space-after="2in">
    			Third block
    		</fo:block>
    		<fo:block space-before="2in" space-after="2in">
    			First block
    		</fo:block>
    		<fo:block space-before="2in" space-after="2in">
    			Second block
    		</fo:block>
    		<fo:block space-before="2in" space-after="2in">
    			Third block
    		</fo:block>
    	</fo:flow>
    </fo:page-sequence>
    <fo:page-sequence master-reference="my-sequence">
    	<fo:flow flow-name="xsl-region-body" font="72pt Times">
    		<fo:block space-before="2in" space-after="2in">
    			Seq 3
    		</fo:block>
    		<fo:block space-before="2in" space-after="2in">
    			Second block
    		</fo:block>
    		<fo:block space-before="2in" space-after="2in">
    			Third block
    		</fo:block>
    	</fo:flow>
    </fo:page-sequence>
    </fo:root>
    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@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
    


    This archive was generated by hypermail 2.1.5 : Mon Mar 29 2004 - 04:45:15 PST