<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 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> </div><div>Code example:</div><div> </div><font color="#005ab4"><font color="#005ab4"><div><font
color="#000096"><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">></font>><br><font color="#000096"><fo:block</font><font color="#f5844c"> text-align</font><font color="#ff8040">=</font><font color="#993300">"right"</font><font color="#000096">></font> <br><font color="#006400"><fo:leader </font> <font color="#006400"> leader-pattern="dots" leader-length.optimum="70%"/></font><br><font color="#005ab4"><xsl:for-each</font><font color="#f5844c"> select</font><font color="#ff8040">=</font><font
color="#993300">"$item"</font><font color="#000096">></font> <br><font color="#000096"><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">></font><br><font color="#000096"><fo:inline</font><font color="#f5844c"> text-align</font><font color="#ff8040">=</font><font color="#993300">"right"</font><font color="#000096">></font><br><font color="#000096"><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">/></fo:inline></font> <br><font color="#000096"></fo:basic-link></font>
<br><font color="#000096"></fo:block></font><br><font color="#000096"></fo:table-cell></font></div><div><font color="#000096"></font> </div><div><font color="#000000">I am also trying to suppress duplicate page number references.</font></div></font><div></div></div>
!DSPAM:87,525337929851815019603!
</body></html>