<html><body><div style="color:#000; background-color:#fff; font-family:tahoma, new york, times, serif;font-size:10pt"><div>I am trying to have page numbers generate in a fo:table cell with leader dots. When I try to do this with many page number references the page numbers wrap to the next line. I have the text right aligned in table cell but the second row of page numbers are justified. I do not have the fo:leader justified because I need page number to wrap and if you wrap page numbers with justified alignment the same thing happens. The second&nbsp;line of page numbers, (which have fewer page numbers than first line) are justified align instead of right aligned. This is not what I need. I need both lines of page numbers to be right justified even when the lines do not have the same amount of text.</div><div>&nbsp;</div><div>Code example:</div><div>&nbsp;</div><font color="#005ab4"><font color="#005ab4"><div><font
 color="#000096">&lt;fo:table-cell</font><font color="#f5844c"> </font><font color="#005ab4">xsl:use-attribute-sets</font><font color="#ff8040">=</font><font color="#993300">"item_toc"</font></div><div></div></font><div><font color="#f5844c">text-align</font><font color="#ff8040">=</font><font color="#993300">"right"</font><font color="#f5844c"> display-align</font><font color="#ff8040">=</font><font color="#993300">"before"</font><font color="#000096">&gt;</font>&gt;<br><font color="#000096">&lt;fo:block</font><font color="#f5844c"> text-align</font><font color="#ff8040">=</font><font color="#993300">"right"</font><font color="#000096">&gt;</font>   <br><font color="#006400">&lt;fo:leader </font> <font color="#006400">                                                leader-pattern="dots" leader-length.optimum="70%"/&gt;</font><br><font color="#005ab4">&lt;xsl:for-each</font><font color="#f5844c"> select</font><font color="#ff8040">=</font><font
 color="#993300">"$item"</font><font color="#000096">&gt;</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><font color="#000096">&lt;fo:basic-link</font><font color="#f5844c"> internal-destination</font><font color="#ff8040">=</font><font color="#993300">"{concat('_item_', generate-id())}"</font><font color="#000096">&gt;</font><br><font color="#000096">&lt;fo:inline</font><font color="#f5844c"> text-align</font><font color="#ff8040">=</font><font color="#993300">"right"</font><font color="#000096">&gt;</font><br><font color="#000096">&lt;fo:page-number-citatio<var id="yui-ie-cursor"></var>n</font><br><font color="#f5844c">                                                         ref-id</font><font color="#ff8040">=</font><font color="#993300">"{concat('_service_tool_', generate-id())}"</font><font color="#000096">/&gt;&lt;/fo:inline&gt;</font> <br><font color="#000096">&lt;/fo:basic-link&gt;</font>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><font color="#000096">&lt;/fo:block&gt;</font><br><font color="#000096">&lt;/fo:table-cell&gt;</font></div><div><font color="#000096"></font>&nbsp;</div><div><font color="#000000">I am also trying to suppress&nbsp;duplicate page number references.</font></div></font><div></div></div>
!DSPAM:87,525337929851815019603!

</body></html>