After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 668694 - xsltproc does not honor <phrase role="keep-together">XXXXX</phrase>
xsltproc does not honor <phrase role="keep-together">XXXXX</phrase>
Status: RESOLVED NOTGNOME
Product: libxslt
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2012-01-25 21:23 UTC by Jeffrey Walton
Modified: 2012-11-03 16:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
XML file, FO output, and PDF (8.25 KB, application/zip)
2012-01-25 21:23 UTC, Jeffrey Walton
Details

Description Jeffrey Walton 2012-01-25 21:23:36 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 &lt;phrase role="keep-together"&gt;C/C++&lt;/phrase&gt;.</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).
Comment 1 Jeffrey Walton 2012-01-25 21:24:38 UTC
$ 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
Comment 2 Jeffrey Walton 2012-04-01 13:51:41 UTC
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.
Comment 3 Nick Wellnhofer 2012-09-16 21:36:37 UTC
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.