<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [docbook-apps] How to avoid a line break in a
&lt;phrase&gt;</title></head><body>
<div><font size="-1" color="#000096">I tried the customization
(Docbook 4.5 xsl) below, but</font></div>
<div><font size="-1" color="#000096"><br></font></div>
<div><font size="-1" color="#000096">&lt;para&gt;some long text
&lt;phrase</font><font size="-1" color="#F5844C"> role</font><font
size="-1" color="#FF8040">=</font><font size="-1"
color="#993300">&quot;keep-together&quot;</font><font size="-1"
color="#000096">&gt;</font><font size="-1"
color="#000000">http://www.xxxxxxxxxxx.com/</font><font size="-1"
color="#000096">&lt;/phrase&gt;&lt;/para&gt;</font></div>
<div><font size="-1" color="#000000"><br></font></div>
<div><font size="-1" color="#000000">still gives:</font></div>
<div><font size="-1"
color="#000000">..................................ht-</font></div>
<div><font size="-1"
color="#000000">tp://www.xxxxxxxxxxx.com/</font></div>
<div><font size="-1" color="#000000"><br></font></div>
<div><font size="-1" color="#000000"><br></font></div>
<div><font size="-1" color="#000000">&nbsp;</font><font size="-1"
color="#0064C8">&lt;xsl:template</font><font size="-1"
color="#F5844C"> name</font><font size="-1"
color="#FF8040">=</font><font size="-1"
color="#993300">&quot;inline.monoseq&quot;</font><font size="-1"
color="#000096">&gt;</font><font size="-1" color="#000000"><br>
&nbsp;&nbsp;</font><font size="-1" color="#0064C8">
&lt;xsl:param</font><font size="-1" color="#F5844C"> name</font><font
size="-1" color="#FF8040">=</font><font size="-1"
color="#993300">&quot;no-hyphenate&quot;</font><font size="-1"
color="#F5844C"> select</font><font size="-1"
color="#FF8040">=</font><font size="-1"
color="#993300">&quot;false()&quot;</font><font size="-1"
color="#000096">/&gt;</font><font size="-1" color="#000000"><br>
&nbsp;&nbsp;</font><font size="-1" color="#0064C8">
&lt;xsl:param</font><font size="-1" color="#F5844C"> name</font><font
size="-1" color="#FF8040">=</font><font size="-1"
color="#993300">&quot;content&quot;</font><font size="-1"
color="#000096">&gt;</font><font size="-1" color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;</font><font size="-1" color="#0064C8">
&lt;xsl:apply-templates/&gt;</font><font size="-1"
color="#000000"><br>
&nbsp;&nbsp;</font><font size="-1" color="#0064C8">
&lt;/xsl:param&gt;</font><font size="-1" color="#000000"><br>
&nbsp;&nbsp;</font><font size="-1" color="#000096">
&lt;fo:inline</font><font size="-1" color="#F5844C">
xsl:use-attribute-sets</font><font size="-1"
color="#FF8040">=</font><font size="-1"
color="#993300">&quot;monospace.properties&quot;</font><font
size="-1" color="#000096">&gt;</font><font size="-1"
color="#000000"><br>
&lt;!-- Keith's customization: --&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;</font><font size="-1" color="#0064C8">
&lt;xsl:if</font><font size="-1" color="#F5844C"> test</font><font
size="-1" color="#FF8040">=</font><font size="-1"
color="#993300">&quot;@role[contains(.,
'keep-together')]&quot;</font><font size="-1"
color="#000096">&gt;</font><font size="-1" color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font size="-1"
color="#0064C8"> &lt;xsl:attribute</font><font size="-1"
color="#F5844C"> name</font><font size="-1"
color="#FF8040">=</font><font size="-1"
color="#993300">&quot;keep-together.within-line&quot;</font><font
size="-1" color="#000096">&gt;</font><font size="-1"
color="#000000">always</font><font size="-1"
color="#0064C8">&lt;/xsl:attribute&gt;</font><font size="-1"
color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font size="-1"
color="#0064C8"> &lt;xsl:attribute</font><font size="-1"
color="#F5844C"> name</font><font size="-1"
color="#FF8040">=</font><font size="-1"
color="#993300">&quot;hyphenate&quot;</font><font size="-1"
color="#000096">&gt;</font><font size="-1"
color="#000000">false</font><font size="-1"
color="#0064C8">&lt;/xsl:attribute&gt;</font><font size="-1"
color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;</font><font size="-1" color="#0064C8">
&lt;/xsl:if&gt;</font><font size="-1" color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;</font><font size="-1" color="#0064C8">
&lt;xsl:choose&gt;</font><font size="-1" color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font size="-1"
color="#0064C8"> &lt;xsl:when</font><font size="-1" color="#F5844C">
test</font><font size="-1" color="#FF8040">=</font><font size="-1"
color="#993300">&quot;$no-hyphenate&quot;</font><font size="-1"
color="#000096">&gt;</font><font size="-1" color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font
size="-1" color="#0064C8"> &lt;xsl:attribute</font><font size="-1"
color="#F5844C"> name</font><font size="-1"
color="#FF8040">=</font><font size="-1"
color="#993300">&quot;keep-together.within-line&quot;</font><font
size="-1" color="#000096">&gt;</font><font size="-1"
color="#000000">always</font><font size="-1"
color="#0064C8">&lt;/xsl:attribute&gt;</font><font size="-1"
color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font
size="-1" color="#0064C8"> &lt;xsl:attribute</font><font size="-1"
color="#F5844C"> name</font><font size="-1"
color="#FF8040">=</font><font size="-1"
color="#993300">&quot;hyphenate&quot;</font><font size="-1"
color="#000096">&gt;</font><font size="-1"
color="#000000">false</font><font size="-1"
color="#0064C8">&lt;/xsl:attribute&gt;</font><font size="-1"
color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font size="-1"
color="#0064C8"> &lt;/xsl:when&gt;</font></div>
<div><font size="-1"
color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font
size="-1" color="#0064C8"> &lt;xsl:otherwise&gt;</font></div>
<div><font size="-1"
color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font
><font size="-1" color="#0064C8"> &lt;xsl:attribute</font><font
size="-1" color="#F5844C"> name</font><font size="-1"
color="#FF8040">=</font><font size="-1"
color="#993300">&quot;hyphenation-character&quot;</font><font
size="-1" color="#000096">&gt;</font><font size="-1"
color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font
 size="-1" color="#0064C8"> &lt;xsl:value-of</font><font size="-1"
color="#F5844C"> select</font><font size="-1"
color="#FF8040">=</font><font size="-1"
color="#993300">&quot;'&amp;#x200B;'&quot;</font><font size="-1"
color="#000096">/&gt;</font><font size="-1" color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font
size="-1" color="#0064C8"> &lt;/xsl:attribute&gt;</font><font
size="-1" color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font size="-1"
color="#0064C8"> &lt;/xsl:otherwise&gt;</font><font size="-1"
color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;</font><font size="-1" color="#0064C8">
&lt;/xsl:choose&gt;</font><font size="-1" color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;</font><font size="-1" color="#0064C8">
&lt;xsl:choose&gt;</font><font size="-1" color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font size="-1" color="#0064C8">
&lt;xsl:when</font><font size="-1" color="#F5844C"> test</font><font
size="-1" color="#FF8040">=</font><font size="-1"
color="#993300">&quot;ancestor::footnote&quot;</font><font size="-1"
color="#000096">&gt;</font><font size="-1" color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font
size="-1" color="#0064C8"> &lt;xsl:attribute</font><font size="-1"
color="#F5844C"> name</font><font size="-1"
color="#FF8040">=</font><font size="-1"
color="#993300">&quot;font-size&quot;</font><font size="-1"
color="#000096">&gt;</font><font size="-1"
color="#000000">90%</font><font size="-1"
color="#0064C8">&lt;/xsl:attribute&gt;</font><font size="-1"
color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font size="-1"
color="#0064C8"> &lt;/xsl:when&gt;</font><font size="-1"
color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;</font><font size="-1" color="#0064C8">
&lt;/xsl:choose&gt;</font><font size="-1" color="#000000"><br>
&lt;!-- end customization --&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;</font><font size="-1" color="#0064C8">
&lt;xsl:if</font><font size="-1" color="#F5844C"> test</font><font
size="-1" color="#FF8040">=</font><font size="-1"
color="#993300">&quot;@dir&quot;</font><font size="-1"
color="#000096">&gt;</font><font size="-1" color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font size="-1"
color="#0064C8"> &lt;xsl:attribute</font><font size="-1"
color="#F5844C"> name</font><font size="-1"
color="#FF8040">=</font><font size="-1"
color="#993300">&quot;direction&quot;</font><font size="-1"
color="#000096">&gt;</font><font size="-1" color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font
size="-1" color="#0064C8"> &lt;xsl:choose&gt;</font><font size="-1"
color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font
 size="-1" color="#0064C8"> &lt;xsl:when</font><font size="-1"
color="#F5844C"> test</font><font size="-1"
color="#FF8040">=</font><font size="-1" color="#993300">&quot;@dir =
'ltr' or @dir = 'lro'&quot;</font><font size="-1"
color="#000096">&gt;</font><font size="-1"
color="#000000">ltr</font><font size="-1"
color="#0064C8">&lt;/xsl:when&gt;</font><font size="-1"
color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font
 size="-1" color="#0064C8"> &lt;xsl:otherwise&gt;</font><font
size="-1" color="#000000">rtl</font><font size="-1"
color="#0064C8">&lt;/xsl:otherwise&gt;</font><font size="-1"
color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font
size="-1" color="#0064C8"> &lt;/xsl:choose&gt;</font><font size="-1"
color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font size="-1"
color="#0064C8"> &lt;/xsl:attribute&gt;</font><font size="-1"
color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;</font><font size="-1" color="#0064C8">
&lt;/xsl:if&gt;</font><font size="-1" color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;</font><font size="-1" color="#0064C8">
&lt;xsl:copy-of</font><font size="-1" color="#F5844C">
select</font><font size="-1" color="#FF8040">=</font><font size="-1"
color="#993300">&quot;$content&quot;</font><font size="-1"
color="#000096">/&gt;</font><font size="-1" color="#000000"><br>
&nbsp;&nbsp;</font><font size="-1" color="#000096">
&lt;/fo:inline&gt;</font><font size="-1" color="#000000"><br>
&nbsp;</font><font size="-1"
color="#0064C8">&lt;/xsl:template&gt;</font><br>
<font size="-1" color="#000000"></font></div>
<div><font size="-1" color="#000000">Bob reports:</font></div>
<div>FOP has limited support for keep-together.&nbsp; Version 0.93 now
supports it for fo:block elements, but not for fo:inline.</div>
<div><br></div>
<div>I guess that Keith is using AntennaHouse.&nbsp; I am using XEP
4.9, could it be that XEP also doesn't support keep-together for
fo:inline - so this is posted to xep-support@renderx.com as
well.</div>
<div><font size="-1" color="#000000"><br>
</font><br>
</div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div>Ron Catterall, Phd, DSc<x-tab>
</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<x-tab>
</x-tab>email: ron@catterall.net<br>
Prolongacion de Hidalgo 140<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;
</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</x-tab>http://catterall.net/<br>
San Felipe del Agua<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </x-tab>tel:
+52 951 520 1821<br>
Oaxaca&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 68020<x-tab>&nbsp;
</x-tab>Mexico<x-tab>&nbsp;
</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </x-tab>fax:
+1 530 348 8309</div>
</body>
</html>
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html