Aha, I see what I need to change.
I take the posted example, move the “fo:block-container” to the fo:flow, wrap it in a fo:block, and it disappears. This is what I was doing (a container in a block) and it wasn’t working. As I (try to) read the spec it seems legal to do this. If I take out the wrapping fo:block it appears to work like a charm.
Here’s the edited FO code:
<?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 master-name="simpleA4" page-height="11in" page-width="8.5in" margin-top="0in" margin-bottom="0in" margin-left="0in" margin-right="0in"> <fo:region-before extent="0in" /> <fo:region-body margin-top="0in" /> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="simpleA4"> <fo:flow flow-name="xsl-region-body"> <fo:block>Hello World!</fo:block> <fo:block>xsl-region-before</fo:block>
<fo:block> <!-- ADDED, remove to have the container appear -->
<fo:block-container left="2cm" top="1cm" width="5cm" height="1cm" background-color="lightgreen" position="absolute"> <fo:block>I love block-containers!</fo:block> </fo:block-container>
</fo:block> <!-- ADDED, remove to have the container appear -->
</fo:flow> </fo:page-sequence> </fo:root>
It’s NO BIG DEAL at all. I just wanted to check with folks after consulting the “compliance” page.
-- Mark C. Allman -- Innovator -- Allman Professional Consulting, Inc. -- www.allmanpc.com, 617-947-4263
BusinessMsg – the secure, managed, J2EE-standard Enterprise IM solution (alpha testing shortly).
-----Original Message-----
Just answered that yesterday on fop-user: http://marc.theaimsgroup.com/?l=fop-user&m=104928256603740&w=2
On 03.04.2003 20:34:59 Mark C. Allman wrote: > Version: 0.20.5rc, with my fixes to get markers working. > > > > What I'm trying to do is place a fo:block at an absolute position on a > page. Any way I can. The idea is to format text on a page so that when > we feed a pre-printed form through the printer we get "X" placed in a > box, a name in it's box, a date where it should be on the form, etc. > > > > I see that "absolute-position" isn't supported yet, but that "top," > "right," etc., are. Is there functionality implemented in 0.20.5rc that > allows a block to be placed at a specific position or do I need to add > the implementation of "absolute-position" (and, if I need to do this, > can anyone suggest any helpful hints)?
Jeremias Maerki
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] |
- Absolute-positon of a block Mark C. Allman
- Re: Absolute-positon of a block Clay Leeds
- Re: Absolute-positon of a block Jeremias Maerki
- Mark C. Allman