Repost: Spaces and Precedences

2003-01-26 Thread Stefan . Wachter
Hi all.

Last April there was a discussion in this list (started by Ralf Steppacher)
about spaces and precedences. The discussion considered the situation:

fo:block space-after=20pt space-after.precedence=1line 1/fo:block
fo:block space-before=10pt space-before.precedence=0line 2/fo:block

and the question if there should be a space of 20pt or 30pt between the
lines.

Unfortunately the former discussion fizzled, i.e. yielded no conclusion.
Reading the spec and in particular the example 6.5.1.1 I think that the correct
answer is 20pt. However, FOP seems to add the spaces, i.e. inserts a 30pt
space.

Can FOP somehow get convinced to render only 20pt space between the lines?

--Stefan


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



Re: vertical alignment

2003-01-23 Thread Stefan . Wachter
Thanks for the tip. The table solution worked. I should have looked at the
FAQ myself.

The only thing that is somewhat unaesthetic about the solution is that I
have to use fixed heights for the table rows. Is there also a solution for this?

Thanks again,
--Stefan

fo:table table-layout=fixed width=100%
  fo:table-column column-width=proportional-column-width(1)/
  fo:table-body
fo:table-row height=99mm
  fo:table-cell display-align=center
fo:block1/fo:block
  /fo:table-cell
/fo:table-row
fo:table-row height=99mm
  fo:table-cell display-align=center
fo:block2/fo:block
  /fo:table-cell
/fo:table-row
fo:table-row height=99mm
  fo:table-cell display-align=center
fo:block3/fo:block
  /fo:table-cell
/fo:table-row
  /fo:table-body
/fo:table


 [EMAIL PROTECTED] wrote:
 
  I want to have a start-region that contains static content. The static
  content consists of three blocks. The first block is to be displayed at
 the top
  the second in the center and the third at the bottom of the region. One
 of my
  many fruitless tries was:
  
  fo:static-content flow-name=xsl-region-start
fo:block absolute-position=absolute top=0mm1/fo:block
fo:block2/fo:block
fo:block absolute-position=absolute bottom=0mm3/fo:block
  /fo:static-content
  
 The absolute-position property is not implemented, you should have
 seen an error message. Use position=absolute, and supply all four
 of top, left, height and width.
 
   where the region-start is defined by region-start extent=1in
   display-align=center/.
 I don't think display-align works on regions. You can use
 display-align on table cells.
 See
   http://xml.apache.org/fop/faq.html#faq-N10489
 you can try a table with three rows.
 
 J.Pietschmann
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



vertical alignment

2003-01-22 Thread Stefan . Wachter
Hi all.

I have a problem that I couldn't solve using FOP:

I want to have a start-region that contains static content. The static
content consists of three blocks. The first block is to be displayed at the top
the second in the center and the third at the bottom of the region. One of my
many fruitless tries was:

fo:static-content flow-name=xsl-region-start
  fo:block absolute-position=absolute top=0mm1/fo:block
  fo:block2/fo:block
  fo:block absolute-position=absolute bottom=0mm3/fo:block
/fo:static-content

where the region-start is defined by region-start extent=1in
display-align=center/.

Can anyone help? Thanks,

--Stefan


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