GNOME Bugzilla – Bug 668694
xsltproc does not honor <phrase role="keep-together">XXXXX</phrase>
Last modified: 2012-11-03 16:00:02 UTC
Created attachment 206134 [details] XML file, FO output, and PDF <?xml version="1.0" encoding="US-ASCII"?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> <book> <chapter id="ch_test"> <title>Chapter Test</title> <para>This is a test of <phrase role="keep-together">C/C++</phrase>.</para> <para>XXXXXXXXXX XXX XXXX XXXXXX XXX XX XXXXXXXXX XXXX XXXXXXXXX XXX <phrase role="keep-together">C/C++</phrase></para> </chapter> </book> My apologies if this is Apache's FOP (https://issues.apache.org/bugzilla/show_bug.cgi?id=52525).
$ xsltproc -V Using libxml 20706, libxslt 10126 and libexslt 815 xsltproc was compiled against libxml 20706, libxslt 10126 and libexslt 815 libxslt 10126 was compiled against libxml 20706 libexslt 815 was compiled against libxml 20706 $ fop -version FOP Version 1.0 $ uname -a Linux studio 2.6.32-38-generic #83-Ubuntu SMP Wed Jan 4 11:12:07 UTC 2012 x86_64 GNU/Linux
According to Pascal Sancho at Apache FOP (https://issues.apache.org/bugzilla/show_bug.cgi?id=52525): Reading XSL-FO snippet (in 2nd attachment), the text "C/C++" is nested in an fo:inline without any property. It should at least have this: keep-with-next.within-column="always" or inherit it from higher level. This issue is related to XSLT, not to FOP.
With my setup the text "C/C++" isn't nested in a fo:inline element. Please make sure you're using a recent version of docbook-xsl.