Issue Details (XML | Word | Printable)

Key: DERBY-2473
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Tomohito Nakayama
Reporter: Tomohito Nakayama
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

Compilation of reference manual translated into pt_BR seems to be failed

Created: 21/Mar/07 10:04 AM   Updated: 08/May/07 10:37 AM
Return to search
Component/s: Build tools
Affects Version/s: None
Fix Version/s: 10.3.1.4

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works DERBY-2473.patch 2007-05-04 06:50 PM Tomohito Nakayama 2 kB
File Licensed for inclusion in ASF works refderby.fo 2007-05-04 05:04 PM Tomohito Nakayama 2.26 MB
Environment:
naka@rufelza:~/derby/dev.doc/trunk$ java -version
java version "1.4.2_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)
Issue Links:
Reference
 

Resolution Date: 05/May/07 12:31 AM


 Description  « Hide
I found next compilation error in my environment ....

cd ~/derby/dev.doc/trunk/
ant -emacs pt_BR
Buildfile: build.xml

<snip>

BUILD FAILED
/home/naka/derby/dev.doc.DERBY-2261/trunk/build.xml:330: The following error occurred while executing this line:
/home/naka/derby/dev.doc.DERBY-2261/trunk/src/pt_BR/build.xml:101: The following error occurred while executing this line:
/home/naka/derby/dev.doc.DERBY-2261/trunk/build.xml:231: The following error occurred while executing this line:
/home/naka/derby/dev.doc.DERBY-2261/trunk/DITA-OT1.1.2.1/conductor.xml:209: The following error occurred while executing this line:
/home/naka/derby/dev.doc.DERBY-2261/trunk/DITA-OT1.1.2.1/ditatargets.xml:78: javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: fo:table-cell overlaps in column 1 (line #5020, column #1399)


I think problem caused around FOP .....

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Tomohito Nakayama added a comment - 04/May/07 05:02 PM
Problem seems to happen in page of Expressões SQL ....
The line #5020 in error message is that of refderby.fo and that line is for page of Expressões SQL.

Tomohito Nakayama added a comment - 04/May/07 05:04 PM
Error seems to happen for this file ....

Tomohito Nakayama made changes - 04/May/07 05:04 PM
Field Original Value New Value
Attachment refderby.fo [ 12356791 ]
Tomohito Nakayama added a comment - 04/May/07 05:45 PM
I think this problem can be escaped manipulating attributes in element of table in next source file ....
trunk/src/pt_BR/ref/rrefsqlj19433.dita

Tomohito Nakayama added a comment - 04/May/07 06:02 PM
It seems that FOP does not support multi column spanned cell .....
I think problem happen because of it ....

Tomohito Nakayama added a comment - 04/May/07 06:50 PM
* Description of the patch
   * Modifying attribute of cell not to span multi column
      in order to escape compilation error of pt_BR.

* Test
   * Found no error in three type of compiled manual.

Tomohito Nakayama made changes - 04/May/07 06:50 PM
Attachment DERBY-2473.patch [ 12356801 ]
Repository Revision Date User Message
ASF #535421 Sat May 05 00:17:57 UTC 2007 fuzzylogic DERBY-2473: Fix compilation of pt_BR reference manual.

Committed for Tomohito Nakayama <tomonaka@basil.ocn.ne.jp>
Files Changed
MODIFY /db/derby/docs/trunk/src/pt_BR/ref/rrefsqlj19433.dita

Andrew McIntyre added a comment - 05/May/07 12:31 AM
Hi Tomohito,

The patch looks correct and fixes the compilation error. I went ahead and committed the patch with revision 535421.

Looking at the XSL-FO generated by the DITA toolkit, it appears the problem is not with FOP being able to handle multiple column spanning cells, but that the DITA toolkit does not assign proper values to the column-number and number-columns-spanned attributes for the <fo:table-cell>s in the XSL-FO for the DITA <entry>s that span multiple columns. Even with your patch, the column numbers are still being generated incorrectly for many of the tables in the pt_BR reference manual, which is leading to a large number of warnings being printed when building the PDF for that manual. The tables in the pt_BR reference manual could be improved to have a form more consistent with what the DITA toolkit expects, but that can be handled with a different JIRA issue.

Thank you for looking into this and fixing it.

Andrew McIntyre made changes - 05/May/07 12:31 AM
Status Open [ 1 ] Resolved [ 5 ]
Assignee Tomohito Nakayama [ naka ]
Fix Version/s 10.3.0.0 [ 12310800 ]
Resolution Fixed [ 1 ]
Tomohito Nakayama added a comment - 05/May/07 06:26 AM
I see.
Thank you for committing.

Kim Haase added a comment - 07/May/07 02:49 PM
There are many warnings about column numbers (and other matters) for the English documents too, ever since the FOP .93 upgrade. I reopened DERBY-2373 a few weeks ago to try to deal with this issue. Is there something we should be doing with our source code to get rid of these warnings? If so, would it be possible for you to put that information in a comment on DERBY-2373?

Kim Haase made changes - 07/May/07 02:50 PM
Link This issue is related to DERBY-2373 [ DERBY-2373 ]
Kim Haase added a comment - 07/May/07 02:50 PM
DERBY-2373 concerns the toolkit warnings about column-numbers.

Laura Stewart added a comment - 08/May/07 04:06 AM
I am not familiar with any tables that have columns which span multiple cells... can someone point one out to me?

Kim - thanks for opening up Derby-2373 for this issue. I hope that Andrew or someone familiar with FOP and the way that Derby builds the docs can take a look at this...

Tomohito Nakayama added a comment - 08/May/07 10:37 AM
My expression may be not appropriate ....
I intended the last example of table in the next piece of the spec.
 
http://www.w3.org/TR/1999/REC-html401-19991224/struct/tables.html#h-11.2.6.1


In the example, columns of compounded cell numbered 4 spans multiple cells.