Re: Indenting Tables

2002-04-18 Thread J.Pietschmann

Roger Tribe wrote:
 I am trying to indent individual tables from the page margin without 
 success.

This appears to be intentional, though inconvenient. I read
the spec about a dozen times, or so, and the behaviour
appears to be conformant. Tables are not block level
elements for some strange reason.

I usually create an invisible column serving as margin:
   fo:table table-layout=fixed
 fo:table-column column-width=2cm/
 fo:table-column  border-color=black border-style=solid
   border-width=.5mm column-width=3cm/
 fo:table-body
   fo:table-row
 fo:table-cell/
 fo:table-cell
   fo:blockstuff/fo:block
 /fo:table-cell
   /fo:table-row
 /fo:table-body
   /fo:table

If you use XSLT to generate the file, it should
not be too hard to keep block margins and the table
column width consistent.

 I have tried using margin-left, start-indent and position-absolute on 
 the table node and although the text position within the cell moves,
Thats because table cell areas are reference areas.
You have to reset most block properties on the table
element if you don't want to have them inherited.

J.Pietschmann


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




Indenting Tables

2002-04-17 Thread Roger Tribe



Hi,

I am fairly new to 
FOP and XSLFO so forgive me if I sound a bit vague...

The product I am 
writing produces letters with the layout and content produced on the 
fly.
The letters will 
have numerous tables included, but the left starting positions of each table 
will vary.

I am trying to 
indentindividualtables from the page margin without 
success.
I have tried using 
margin-left, start-indent and position-absolute on the table node and although 
the text position within the cell moves, the start of the first cell in the 
table always appears at the page margin.

Being a newbie I 
am not sure if the problem lies with my FO knowledge or it is the capabilities 
of FOP.

I would very much 
appreciate a FO snippet.

thanks

R. 
Tribe