Bug 52525 - FOP 1.0 does not honor <phrase role="keep-together">XXXXX</phrase>
Summary: FOP 1.0 does not honor <phrase role="keep-together">XXXXX</phrase>
Status: CLOSED INVALID
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 1.0
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-25 17:39 UTC by Jeffrey Walton
Modified: 2012-04-01 13:43 UTC (History)
1 user (show)



Attachments
PDF file showing a split f "C/C++" (6.28 KB, application/pdf)
2012-01-25 17:39 UTC, Jeffrey Walton
Details
Additional information (8.25 KB, application/zip)
2012-01-25 18:50 UTC, Jeffrey Walton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Walton 2012-01-25 17:39:02 UTC
Created attachment 28207 [details]
PDF file showing a split f "C/C++"

<?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">
<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>
Comment 1 Jeffrey Walton 2012-01-25 17:40:42 UTC
$ uname -a
Linux studio 2.6.32-38-generic #83-Ubuntu SMP Wed Jan 4 11:12:07 UTC 2012 x86_64 GNU/Linux

$ fop -version
FOP Version 1.0
Comment 2 Glenn Adams 2012-01-25 18:28:45 UTC
Please rewrite this bug report in terms of XSL-FO content. FOP has no knowledge
of the DocBook format you use to present your example.

That is, please supply a minimum XSL-FO document that depicts the problem you
are reporting.
Comment 3 Jeffrey Walton 2012-01-25 18:50:12 UTC
Created attachment 28211 [details]
Additional information

FO object as requested.

With xsltproc and fop on path, `make-test.sh` should reproduce the problem.
Comment 4 Jeffrey Walton 2012-01-25 21:26:55 UTC
I'm not sure if this xsltproc, but just in case:

$ 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

https://bugzilla.gnome.org/show_bug.cgi?id=668694
Comment 5 Pascal Sancho 2012-01-26 10:55:59 UTC
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.

Please, before opening a FOP issue, can you check if it is FOP concerned:

by analyzing resulting XSL-FO,
by asking on FOP user-list?
etc.
Comment 6 Jeffrey Walton 2012-01-26 15:48:09 UTC
> This issue is related to XSLT, not to FOP.
My apologies.
Comment 7 Glenn Adams 2012-04-01 13:43:06 UTC
batch transition to closed for remaining resolved bugs