Bug 38244 - table-column and number-columns-spanned (prepatch)
Summary: table-column and number-columns-spanned (prepatch)
Status: NEW
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: fo tree (show other bugs)
Version: trunk
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: fop-dev
Depends on:
Reported: 2006-01-12 19:30 UTC by gerhard oettl
Modified: 2012-04-07 01:51 UTC (History)
0 users

proposal for number-columns-spanned on table-column (3.09 KB, patch)
2006-01-12 19:33 UTC, gerhard oettl
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gerhard oettl 2006-01-12 19:30:58 UTC
Only to have a first sign to discuss.
Comment 1 gerhard oettl 2006-01-12 19:33:22 UTC
Created attachment 17403 [details]
proposal for number-columns-spanned on table-column
Comment 2 Andreas L. Delmelle 2006-01-12 20:00:54 UTC

I see you made the same mistake (?) in interpretation of the Rec that I initially made: the Rec states 
literally that "the column-number for a fo:table-column is 1 plus the column-number of the previous 
column", if any. IOW, it is not because the first column 'spans' two columns, that the second column has 
initial value 3 as column-number... 
What it does mean, AFAICT, is that a fo:table-cell that has column-number 1 will automatically span the 
first two columns, such that a following cell having 2 as column-number will cause an overlap.

The code you offer for number-columns-repeated is interesting, but would fail IIC, unless the repeated 
column is really cloned. If not, then forceColumnNumber() --whatever that method does-- will most 
likely also alter the column-number of the base column (not only the repeated copy).

My 0.02$


Comment 3 gerhard oettl 2006-01-31 21:26:42 UTC
Finaly I would say, that my point of view is not better than the current
implementation. So i would propose to document the decision in the source of
fo/flow/Table.java to prevent others to go the same route (based on rec 7.26.12
"number-columns-repeated") before they recognize that there is a inconsistency
with 7.26.8 "column-number".

Something like this (feel free to alter or shorten)

if (colRepeat > 1) {
//in case column is repeated:
//there is an inconsistency for the column-number of table-column in the w3c
xml-fo rec between 
//7.26.8 "column-number": column-number of previous table-column + 1 
//and 7.26.12 "number-columns-repeated": column-number = previous +
//fop developers decided to implement the behavour of 7.27.8
//see discussion on fop-dev mailing-list in 01/2006

After inserting something like that it is ok for me to close the bug.
Comment 4 Glenn Adams 2012-04-07 01:42:38 UTC
resetting P2 open bugs to P3 pending further review