https://issues.apache.org/bugzilla/show_bug.cgi?id=44826

           Summary: last-page master reference interfered with span all
                    block
           Product: Fop
           Version: all
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: normal
          Priority: P2
         Component: page-master/layout
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


I have a conditional master-reference where I must remove
master-reference="last-page-odd" for a block that spans all to show up.  This
happens in a multiple page document.  In the multiple page document, it would
use last-page-odd.

I have used the 94 and 95 beta.

Thanks
Trevor

Attached a working FO to demonstrate:
_______________________________________________________________________

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
    <fo:layout-master-set>



        <fo:simple-page-master margin-bottom=".5cm" margin-left="2cm"
margin-right="2cm" margin-top="1cm" page-width="21.0cm" page-height="29.7cm"
master-name="odd">
            <fo:region-body background-position-horizontal="left"
background-position-vertical="bottom" background-repeat="no-repeat"
column-count="3" margin-bottom="1.75cm" margin-top="3.5cm" column-gap="10px"  
background-color="orange"/>
            <fo:region-before extent="3cm" region-name="header"
background-color="red"/>
            <fo:region-after extent="1.75cm" region-name="odd-footer"
background-color="blue"/>
            <fo:region-start extent="0"/>
            <fo:region-end extent="0"/>
        </fo:simple-page-master>

        <fo:simple-page-master margin-bottom=".5cm" margin-right="2cm"
margin-left="2cm" margin-top="1cm" page-width="21cm" page-height="29.7cm"
master-name="last-page-odd">
            <fo:region-body background-position-horizontal="left"
background-position-vertical="bottom" background-repeat="no-repeat"
column-count="3" margin-bottom="1.75cm" margin-top="3.5cm" column-gap="10px"  
background-color="orange"/>
            <fo:region-before extent="3cm" region-name="header"
background-color="red"/>
            <fo:region-after extent="1.75cm" region-name="odd-footer"
background-color="blue"/>
            <fo:region-start extent="0"/>
            <fo:region-end extent="0"/>
        </fo:simple-page-master>

        <fo:page-sequence-master master-name="basicPSM">
            <fo:repeatable-page-master-alternatives>

                <!-- If i remove next line, my links appear below -->
                <fo:conditional-page-master-reference page-position="last"
odd-or-even="odd" master-reference="last-page-odd"/>


                <fo:conditional-page-master-reference master-reference="odd"
odd-or-even="odd"/>

            </fo:repeatable-page-master-alternatives>
        </fo:page-sequence-master>
    </fo:layout-master-set>

    <fo:page-sequence force-page-count="no-force" master-reference="basicPSM">
        <fo:static-content background-color="white" flow-name="header">
            <fo:table background-color="white">
                <fo:table-column column-width="3cm" column-number="1"/>
                <fo:table-column overflow="hidden" wrap-option="wrap"
column-width="14cm" column-number="2"/>
                <fo:table-body>
                    <fo:table-row height="2cm">
                        <fo:table-cell background-color="">
                            <fo:block text-align="center">
                                LOGO
                            </fo:block>
                        </fo:table-cell>
                        <fo:table-cell overflow="hidden" wrap-option="wrap"
background-color="#0E6C3B">
                            <fo:block start-indent="1cm" text-align="start"
space-after="3pt" line-height="1.25em" font-family="sans-serif" color="white"
font-weight="bold" font-size="14pt">
                                <fo:retrieve-marker retrieve-boundary="page"
retrieve-position="first-starting-within-page" retrieve-class-name="lo_title"/>
                            </fo:block>
                        </fo:table-cell>
                    </fo:table-row>
                </fo:table-body>
            </fo:table>
        </fo:static-content>
        <fo:static-content flow-name="odd-footer">
            <fo:block border-after-style="solid" border-after-width="thin"
font-size="12pt"/>
            <fo:block space-after="1pt" space-before="1pt">
                <fo:table height="2cm">
                    <fo:table-column column-width="1.5cm" column-number="1"/>

                    <fo:table-column column-width="2cm" column-number="2"/>
                    <fo:table-column column-width="8cm" column-number="3"/>
                    <fo:table-column column-width="2cm" column-number="4"/>
                    <fo:table-column column-width="1.5cm" column-number="5"/>
                    <fo:table-body>
                        <fo:table-row>
                            <fo:table-cell>
                                <fo:block text-align="start"
font-family="sans-serif" font-size="10pt" keep-with-next.within-page="always"/>
                            </fo:table-cell>

                            <fo:table-cell>
                                <fo:block font-family="sans-serif"
font-size="10pt" keep-with-next.within-page="always">2008-04-12</fo:block>
                            </fo:table-cell>
                            <fo:table-cell>
                                <fo:block text-align="center"
font-family="sans-serif" font-size="10pt"
keep-with-next.within-page="always">©2007  test.</fo:block>
                            </fo:table-cell>
                            <fo:table-cell>
                                <fo:block text-align="center"
font-family="sans-serif" font-size="10pt"
keep-with-next.within-page="always">test</fo:block>
                            </fo:table-cell>
                            <fo:table-cell>
                                <fo:block text-align="end"
font-family="sans-serif" font-size="10pt"
keep-with-next.within-page="always">Page <fo:page-number/>
                                </fo:block>
                            </fo:table-cell>
                        </fo:table-row>
                    </fo:table-body>
                </fo:table>
            </fo:block>
        </fo:static-content>

        <fo:flow flow-name="xsl-region-body">

            <fo:block span="all"   id="0019B9F3393011405E62210300003999">


                    <fo:block >

                            <fo:table>
                                <fo:table-column column-width="3cm"
column-number="1"/>

                                <fo:table-body>
                                    <fo:table-row>
                                        <fo:table-cell >
                                            <fo:block text-align="left"
border-width="2pt" font-family="sans-serif" font-size="8pt">
                                                <fo:basic-link
text-align="left" internal-destination="0019B9F3393011405E24210300003714">This
is LINK text</fo:basic-link>
                                            </fo:block>
                                        </fo:table-cell>

                                    </fo:table-row>
                                </fo:table-body>
                            </fo:table>

                    </fo:block>

            </fo:block>

                <fo:block >This is block text</fo:block>
 </fo:flow>
    </fo:page-sequence>
</fo:root>


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to