<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Christian,<br>
Problem is that line should alway be together within line (see
attributes). When this line doesn't feet line width the weakest place
to break is page number. Try to remove keep-with-next.within-line rule
from &lt;fo:basic-link/&gt;. Then Xep will be able to place line break
between title and leader.<br>
<br>
Keep with rules is the problem place of all XSL-FO formatters. Try to
use them as less as it possible.<br>
<br>
--<br>
Volodymyr.Mykhailyk<br>
Intelliarts-consulting.<br>
<br>
Ettinger, Christian wrote:
<blockquote
 cite="mid24BE418F8416F24D837E0157E45DD82402903DCC@eridani.de.3soft"
 type="cite">
  <pre wrap="">Hi,
 
I discovered a strange phenomenon in my Table of Contents when creating the PDF file with XEP.
I use the Docbook stylesheets to generate the FO file, and these stylesheets produce the following FO code:
 
&lt;fo:block xmlns:axf=<a class="moz-txt-link-rfc2396E" href="http://www.antennahouse.com/names/XSL/Extensions">"http://www.antennahouse.com/names/XSL/Extensions"</a> text-align-last="justify" text-align="start" color="blue" end-indent="24pt" last-line-end-indent="-24pt"&gt;
  &lt;fo:inline keep-with-next.within-line="always"&gt;
    &lt;fo:basic-link internal-destination="id411140"&gt;2.4.4. Echo Request message to a destination IP address of
255.255.255.255&lt;/fo:basic-link&gt;
  &lt;/fo:inline&gt;
  &lt;fo:inline keep-together.within-line="always"&gt; &lt;fo:leader leader-pattern="dots" leader-pattern-width="3pt" leader-alignment="reference-area" keep-with-next.within-line="always"/&gt; &lt;fo:basic-link internal-destination="id411140"&gt;&lt;fo:page-number-citation ref-id="id411140"/&gt;&lt;/fo:basic-link&gt;&lt;/fo:inline&gt;
&lt;/fo:block&gt;

So far, this is correct, but look at the attached file what XEP does with it.
There seems to be some critical line length, where XEP just breaks the page number but does not extend the leader into the next line.

Does anybody have an idea how I can overcome this problem? Or any ideas on the source of this phenomenon?

Thanks in advance,
Christian
 
--
Dipl.-Ing. (FH) Christian Ettinger, Business Unit PD-36
3SOFT GmbH - Member of the Elektrobit Group,
Frauenweiherstra&szlig;e 14, 91058 Erlangen, Germany
Phone: +49 (9131) 7701-249  <a class="moz-txt-link-freetext" href="mailto:christian.ettinger@3SOFT.de">mailto:christian.ettinger@3SOFT.de</a>
Fax: +49 (9131) 7701-333  <a class="moz-txt-link-freetext" href="http://www.3SOFT.de">http://www.3SOFT.de</a> <a class="moz-txt-link-rfc2396E" href="http://www.3soft.de/">&lt;http://www.3soft.de/&gt;</a> 
 
  </pre>
  <br>
  <hr size="4" width="90%"><br>
  <center><img src="cid:part1.03050908.06070703@intelliarts.com"></center>
</blockquote>
<br>
</body>
</html>