Bug 44826 - last-page master reference interfered with span all block
Summary: last-page master reference interfered with span all block
Status: NEW
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: page-master/layout (show other bugs)
Version: all
Hardware: PC Windows Vista
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-15 04:53 UTC by Trevor Smith
Modified: 2012-04-07 01:52 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Trevor Smith 2008-04-15 04:53:59 UTC
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>
Comment 1 Glenn Adams 2012-04-07 01:43:31 UTC
resetting P2 open bugs to P3 pending further review