Re: coloured rectangles
- Thanx heaps Eliot! That's a very creative approach... never thought
of it. And thanx for the amount of detail you place in your replies.
--- In XSL-FO@yahoogroups.com, "W. Eliot Kimber" <eliot@i...> wrote:
> kennethy1 wrote:
> > Hello all! I would like to absolutely-position coloured
> > anywhere over the body region, then write over the top of them
> > the dynamic (text) flow. Without using external graphics, how
> > I do this? I've tried using leaders with a set height/width, but
> > are rendered on top of my dynamic text.
> It's not completely clear what effect you're trying to get, but the
> easiest thing is probably to set the extent of one of the edge
> to be coincident with the region body--anything you put in this
> using static-content will be rendered under the region-body.
> To get rectangles of a specified size use block-container with
> block-progression-dimension and inline-progression-dimension
> <fo:flow flow-name="xsl-region-body">
> <!-- 1 inch blue box -->
> <fo:block> </fo:block>
> Note that the block with a non-break space is not strictly required.
> Block containers with absolute positioning are positioned relative
> their containing reference area (the body region in this example).
> containers establish new reference areas, so you can use nested
> containers to easily do overlays, such as text on top of graphics
> graphic on top of another (such as an SVG defining callouts and
> on top of a bitmap or some such).
> Blocks drawn earlier in the area tree should go *under* later
> Note that unless you are explictly setting page breaks, there will
> way to predict reliably what page a given block-container will
> (unless you put them in the static content, in which case they'll
> on each page the static content applies to).
> You can also use inline-container to create arbitrarily sized
> that are inline in a flow of text.
> W. Eliot Kimber, eliot@i...
> Consultant, ISOGEN International
> 1016 La Posada Dr., Suite 240
> Austin, TX 78752 Phone: 512.656.4139