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>  </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]
