Hi Chris,

Thanks for the reply and apologies for not making myself clear.

What I am trying to do is within the region-body flow have a
background-color enclosed with a single point border, with the coordinates
of that box being specified relative to the margins of the page.  For
example if the margins are 3cms all around and the page is 21 cms wide and
29 cms high then the following would do precisely what I want:

 <fo:flow flow-name="xsl-region-body">
  <fo:block-container position="absolute" left="0cm" top="0cm" width="15cm"
 height="23cm" background-color="rgb(192, 192, 192)" border-color="rgb(0, 0,
 0)" border-style="solid" border-width="1pt">
   <fo:block>&#160; </fo:block>
   </fo:block-container>

This would give ensure that the text rectangle of the page would be shaded
in grey and have a black border around it of 1 pt.

I thought I could achieve the same with

<fo:flow flow-name="xsl-region-body">
  <fo:block-container position="absolute" left="0cm" top="0cm" right="0cm"
 height="0cm" background-color="rgb(192, 192, 192)" border-color="rgb(0, 0,
 0)" border-style="solid" border-width="1pt">
   <fo:block>&#160; </fo:block>
   </fo:block-container>

And I must have misread the FOP spec because I thought it said it complied
with right and bottom positions.

The problem is not  huge one for me, but it is a problem nevertheless.  I
can of course  work out the necessary container dimensions from the relevant
margins and set the container coordinates accordingly.  This works fine
unless page height/width or margin settings change within
repeating-alternatives in the page seuqence.

I hope this makes thing clearer.  From your reply, however, it would seem
that FOP does not in fact support what I am trying to do (although I am told
by the XSL group that AntennaHouse and RenderX, render the above XSL as I
anticipated it would be rendered .  Do you know of any workarounds?

Regards,

Mark

----- Original Message -----
From: "Chris Bowditch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 18, 2004 3:21 PM
Subject: Re: position block-container relative to right and bottom


> Mark Williams wrote:
>
> > Hi,
> >
> > I've posted a couple of messages on the xsl list and got responses re
above
> > problem.  It seems like there may be a bug in FOP re positioning
relative to
> > right and bottom edge's of the container.
>
> I'm not sure what you mean by this. Do you mean you want to specify the
> position for the block container relative to the bottom right corner of
> the page? Normally its specified relative to the top left.
>
> Or perhaps you mean for the contents to be vertically aligned to the
> bottom, then specify display-align="bottom", and horizontally aligned to
> the right, text-align="right"
>
> <snip/>
>
> > I would expect this to produce a grey-shaded page with a 1pt black
border at
> > the margin edges of each page in the flow.  Instead I get a miniscule
box
> > (about 2mm sq) at the top left margins of the page.
>
> Its true that FOP doesnt fully implement block-containers, and FOP's
> implementation expects width and height to be specified
>
> > If, however, I do the following, I get roughly what I want.
> >
> > <fo:flow flow-name="xsl-region-body">
> >  <fo:block-container position="absolute" left="0cm" top="0cm"
width="19cm"
> > height="27cm" background-color="rgb(192, 192, 192)" border-color="rgb(0,
0,
> > 0)" border-style="solid" border-width="1pt">
> >   <fo:block>&#160; </fo:block>
> >   </fo:block-container>
> >
> > Can anyone tell me if I am doing something wrong or whether this is a
known
> > FOP problem and, if so, any workarounds please.
>
> Fop currently only supports block-containers that are absolutely
> positioned, and you need to specify top/left coordinates relative to the
> top/left corner of the page, and width and height must also be present.
>
> Chris
>
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to