DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5805>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5805

<fo:block text-align="end"><fo:page-number-citation 
ref-id="{generate-id(.)}"/></fo:block> doesn't right align

           Summary: <fo:block text-align="end"><fo:page-number-citation ref-
                    id="{generate-id(.)}"/></fo:block> doesn't right align
           Product: Fop
           Version: all
          Platform: PC
        OS/Version: Windows 9x
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: general
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I've produced the following much simplified fo file. It produces a PDF with a 
front page ToC. The ToC contains the title of the section, it's number in the 
sequence of title elements and its page reference <fo:page-number-citation ref-
id="{generate-id(.)}"/>.
Both the sequence number and the page number are placed in <fo:block text-
align="end"> elements. Whilst this works fine for the sequence number, the page 
citation is not "properly" right aligned. More specifically, whilst the element 
is right aligned in the table cell, the list it produces is "dog-legged". The 
xsl file i use is:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
xmlns:fo="http://www.w3.org/1999/XSL/Format";>

        <!-- Turns on indenting -->
        <xsl:output indent="yes"/>
        
        <!-- Executes the template -->
        <xsl:template match="/">
        
                <!-- Declares the root -->
                <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
                
                        <!-- Defines the layout master set -->
                        <fo:layout-master-set>
                        
                                <!-- Defines the simple page master -->
                                <fo:simple-page-master master-name="A4" page-
width="210mm" page-height="297mm" margin-top="10mm" margin-bottom="10mm" margin-
left="10mm" 
                                margin-right="10mm">
                                        
                                        <!-- Defines the Page Body region -->
                                        <fo:region-body/>
                                </fo:simple-page-master>
                        </fo:layout-master-set>
                        <fo:page-sequence master-name="A4" initial-page-
number="1" language="en" country="uk">
                        
                                <!-- Displays the Page Body -->
                                <fo:flow flow-name="xsl-region-body">
                                
                                        <!-- Displays the Table of Contents in 
a 3 column table -->
                                        <fo:table>
                                                <fo:table-column column-
width="100mm"/>
                                                <fo:table-column column-
width="20mm"/>
                                                <fo:table-column column-
width="20mm"/>
                                                <fo:table-body>
                                                        <xsl:apply-templates 
mode="toc"/>
                                                </fo:table-body>
                                        </fo:table>
                                </fo:flow>
                        </fo:page-sequence>
                        <fo:page-sequence master-name="A4" language="en" 
country="uk">
                        
                                <!-- Displays the Page Body -->
                                <fo:flow flow-name="xsl-region-body">
                                
                                        <xsl:apply-templates mode="title"/>
                                </fo:flow>
                        </fo:page-sequence>
                </fo:root>
        </xsl:template>

        <xsl:template match="text()" mode="toc"/>

        <xsl:template match="title" mode="toc">
                <fo:table-row>
                        <fo:table-cell>
                                <fo:block><xsl:apply-templates 
mode="display"/></fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                                <fo:block text-align="end"><xsl:value-of 
select="count(preceding::title)"/></fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                                <fo:block text-align="end"><fo:page-number-
citation ref-id="{generate-id(.)}"/></fo:block>
                        </fo:table-cell>
                </fo:table-row>
        </xsl:template>
        
        <xsl:template match="text()" mode="title"/>
        
        <xsl:template match="title" mode="title">
                <fo:block break-after="page" id="{generate-id(.)}"><xsl:apply-
templates mode="display"/></fo:block>
        </xsl:template>

        <xsl:template match="text()" mode="display">
                <xsl:value-of select="."/>
        </xsl:template>
</xsl:stylesheet>


The fo is:

<?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-right="10mm" margin-left="10mm" margin-
bottom="10mm" margin-top="10mm" page-height="297mm" page-width="210mm" master-
name="A4">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence country="uk" language="en" initial-page-number="1" master-
name="A4">
<fo:flow flow-name="xsl-region-body">
<fo:table>
<fo:table-column column-width="100mm"/>
<fo:table-column column-width="20mm"/>
<fo:table-column column-width="20mm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block>The Recruitment Process</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">0</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N40009B"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Stages in the Recruitment Process</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">1</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N4000BE"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Procedure for Carrying Out a Recruitment Exercise</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">2</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N4000C3"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Pre-recruitment Activities</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">3</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N400114"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Poor Recruitment Decisions</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">4</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N400119"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Aligning Recruitment with Corporate Strategy</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">5</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N400186"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Manpower Planning/Human Resource Planning</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">6</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N400246"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>The Planning Processes</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">7</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N40027C"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Demand Forecasting</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">8</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N400294"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Supply Forecasting</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">9</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N4002F9"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Skills Shortage</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">10</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N4002FE"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>The External Market Place</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">11</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N400315"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Factors Influencing Labour Supply</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">12</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N40031A"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>The Internal Market Place</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">13</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N400360"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Useful Personnel Statistics</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">14</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N400394"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Staff Turnover Statistics</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">15</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N400399"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Staff Turnover or Wastage</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">16</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N4003B0"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Turnover Index</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">17</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N4003BC"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Stability Index</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">18</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N4003CC"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Length of Service Analysis</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">19</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N4003DC"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Cohort or Survival Analysis</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">20</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N4003E9"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Half-life Index</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">21</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N4003F6"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Census Method</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">22</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N400400"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Retention Profile</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">23</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N40040A"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Making Best Use of Staff Turnover Information</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">24</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N400415"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Analysing Staff Turnover Information</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">25</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N40041A"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Career and Succession Planning</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">26</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N4004C8"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Changes in Working Methods and Practices</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">27</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N400521"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Outsourcing or Subcontracting</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">28</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N400572"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Staff Transfer and Promotion</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">29</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N40057F"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>The Employment Contract</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">30</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end">
<fo:page-number-citation ref-id="N400592"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence>
<fo:page-sequence country="uk" language="en" master-name="A4">
<fo:flow flow-name="xsl-region-body">
<fo:block id="N40009B" break-after="page">The Recruitment Process</fo:block>
<fo:block id="N4000BE" break-after="page">Stages in the Recruitment 
Process</fo:block>
<fo:block id="N4000C3" break-after="page">Procedure for Carrying Out a 
Recruitment Exercise</fo:block>
<fo:block id="N400114" break-after="page">Pre-recruitment Activities</fo:block>
<fo:block id="N400119" break-after="page">Poor Recruitment Decisions</fo:block>
<fo:block id="N400186" break-after="page">Aligning Recruitment with Corporate 
Strategy</fo:block>
<fo:block id="N400246" break-after="page">Manpower Planning/Human Resource 
Planning</fo:block>
<fo:block id="N40027C" break-after="page">The Planning Processes</fo:block>
<fo:block id="N400294" break-after="page">Demand Forecasting</fo:block>
<fo:block id="N4002F9" break-after="page">Supply Forecasting</fo:block>
<fo:block id="N4002FE" break-after="page">Skills Shortage</fo:block>
<fo:block id="N400315" break-after="page">The External Market Place</fo:block>
<fo:block id="N40031A" break-after="page">Factors Influencing Labour 
Supply</fo:block>
<fo:block id="N400360" break-after="page">The Internal Market Place</fo:block>
<fo:block id="N400394" break-after="page">Useful Personnel Statistics</fo:block>
<fo:block id="N400399" break-after="page">Staff Turnover Statistics</fo:block>
<fo:block id="N4003B0" break-after="page">Staff Turnover or Wastage</fo:block>
<fo:block id="N4003BC" break-after="page">Turnover Index</fo:block>
<fo:block id="N4003CC" break-after="page">Stability Index</fo:block>
<fo:block id="N4003DC" break-after="page">Length of Service Analysis</fo:block>
<fo:block id="N4003E9" break-after="page">Cohort or Survival Analysis</fo:block>
<fo:block id="N4003F6" break-after="page">Half-life Index</fo:block>
<fo:block id="N400400" break-after="page">Census Method</fo:block>
<fo:block id="N40040A" break-after="page">Retention Profile</fo:block>
<fo:block id="N400415" break-after="page">Making Best Use of Staff Turnover 
Information</fo:block>
<fo:block id="N40041A" break-after="page">Analysing Staff Turnover 
Information</fo:block>
<fo:block id="N4004C8" break-after="page">Career and Succession 
Planning</fo:block>
<fo:block id="N400521" break-after="page">Changes in Working Methods and 
Practices</fo:block>
<fo:block id="N400572" break-after="page">Outsourcing or 
Subcontracting</fo:block>
<fo:block id="N40057F" break-after="page">Staff Transfer and 
Promotion</fo:block>
<fo:block id="N400592" break-after="page">The Employment Contract</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to