Re: [Fwd: BUG? Row data breaks over a page within a column]

2002-03-09 Thread Karen Lease

Hi Matthew,

You're right, it really shoulldn't do this. However you can keep it from
doing it by putting the keep-together=always attribute on the
table-row containing the cell which is breaking. Keep-together doesn't
work yet for block, but at least in this case, it does for table-row.

Like this:
fo:table-row keep-together=always
  fo:table-cell number-rows-spanned=3 display-align=center
text-align=left border-width=1pt
border-color=black border-style=solid 
fo:blockTotal/fo:block
  /fo:table-cell
  fo:table-cell display-align=center text-align=left 
border-width=1pt  border-color=black
border-style=solid
fo:blockMore Budget Data/fo:block
  /fo:table-cell
  
HTH,
Karen

Matthew Mastracci wrote:
 
 I posted this to the fop-user list, but I think it might be better to
 post it here.
 
   
 
 Subject: BUG? Row data breaks over a page within a column
 Date: Thu, 07 Mar 2002 13:08:30 -0700
 From: Matthew Mastracci [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 
 I think I mave have encountered a bug.  The attached XSL:FO file renders
 in what I think is an incorrect manner with FOP 0.20.3.
 
 The column itself ends up being split across two pages.  The row,
 however, contains a column with number-rows-spanned.  I thought that a
 column with number-rows-spanned would be kept together across a page
 break- breaking in the middle of the row seems to be an error.  I've
 tried adding the keep-together=always attribute and it still seems not
 to work.
 
 The column cells with borders are where I think the problem is.
 
 Thanks!
 Matt

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




[Fwd: BUG? Row data breaks over a page within a column]

2002-03-07 Thread Matthew Mastracci

I posted this to the fop-user list, but I think it might be better to 
post it here.

---BeginMessage---

I think I mave have encountered a bug.  The attached XSL:FO file renders 
in what I think is an incorrect manner with FOP 0.20.3.

The column itself ends up being split across two pages.  The row, 
however, contains a column with number-rows-spanned.  I thought that a 
column with number-rows-spanned would be kept together across a page 
break- breaking in the middle of the row seems to be an error.  I've 
tried adding the keep-together=always attribute and it still seems not 
to work.

The column cells with borders are where I think the problem is.

Thanks!
Matt




?xml version=1.0 encoding=utf-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
fo:simple-page-master margin-right=1.5cm margin-left=1.5cm 
margin-bottom=2cm margin-top=1cm page-width=11in page-height=8.5in 
master-name=first
fo:region-before extent=1cm/
fo:region-body margin-top=1cm/
fo:region-after extent=1cm/
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence master-reference=first
fo:flow flow-name=xsl-region-body
fo:table border-collapse=collapse
fo:table-column column-width=20mm/
fo:table-column column-width=20mm/
fo:table-column column-width=20mm/
fo:table-column column-width=20mm/
fo:table-column column-width=20mm/
fo:table-column column-width=20mm/
fo:table-column column-width=20mm/
fo:table-column column-width=20mm/
fo:table-column column-width=20mm/
fo:table-column column-width=20mm/
fo:table-header
fo:table-row
fo:table-cell font-weight=bold 
text-align=center display-align=center border-width=1pt border-color=white 
border-style=solid color=white background-color=navy number-rows-spanned=3 
number-columns-spanned=1
fo:blockTeam/fo:block
/fo:table-cell
fo:table-cell font-weight=bold 
text-align=center display-align=center border-width=1pt border-color=white 
border-style=solid color=white background-color=navy number-rows-spanned=3 
number-columns-spanned=1
fo:blockVersion/fo:block
/fo:table-cell
fo:table-cell font-weight=bold 
text-align=center display-align=center border-width=1pt border-color=white 
border-style=solid color=white background-color=navy number-rows-spanned=1 
number-columns-spanned=6
fo:block2001/fo:block
/fo:table-cell
fo:table-cell font-weight=bold 
text-align=center display-align=center border-width=1pt border-color=white 
border-style=solid color=white background-color=navy number-rows-spanned=2 
number-columns-spanned=2
fo:blockAverage/fo:block
/fo:table-cell
/fo:table-row
fo:table-row
fo:table-cell font-weight=bold 
text-align=center display-align=center border-width=1pt border-color=white 
border-style=solid color=white background-color=navy number-rows-spanned=1 
number-columns-spanned=2
fo:blockAugust/fo:block
/fo:table-cell
fo:table-cell font-weight=bold 
text-align=center display-align=center border-width=1pt border-color=white 
border-style=solid color=white background-color=navy number-rows-spanned=1 
number-columns-spanned=2
fo:blockSeptember/fo:block
/fo:table-cell
fo:table-cell font-weight=bold 
text-align=center display-align=center border-width=1pt border-color=white 
border-style=solid color=white background-color=navy number-rows-spanned=1 
number-columns-spanned=2
fo:blockOctober/fo:block