From fop-user-return-4853-apmail-xml-fop-user-archive=xml.apache.org@xml.apache.org Tue Sep 03 08:04:20 2002 Return-Path: Delivered-To: apmail-xml-fop-user-archive@xml.apache.org Received: (qmail 49637 invoked by uid 500); 3 Sep 2002 08:04:19 -0000 Mailing-List: contact fop-user-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: fop-user@xml.apache.org Delivered-To: mailing list fop-user@xml.apache.org Received: (qmail 49626 invoked from network); 3 Sep 2002 08:04:19 -0000 Sender: magnus@secode.com Message-ID: <3D746D0B.FBE521C6@secode.com> Date: Tue, 03 Sep 2002 10:04:27 +0200 From: Magnus =?iso-8859-1?Q?Sj=F6berg?= X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.4.18 i686) X-Accept-Language: en MIME-Version: 1.0 To: fop-user@xml.apache.org Subject: Re: region's content invading neighbor region? References: <5.1.0.14.0.20020903021522.024d91f0@mail.telerama.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Status: O X-Status: X-Keywords: You could argue that laying out content using fo is somewhat complicated for a beginner, I know it took me a while. First off, read through the spec, around this point: http://www.w3.org/TR/xsl/slice6.html#fo_page-sequence That should give you some clues to what is happening. There are some good pictures showing how the layout works. What you need in your xsl below are margins for your region-body. The margin-x attributes for your simple-page-master defines the content rectangle of the page-reference area, with respect to your page-height and page-width. Inside this then, the region-body has margin attributes (top, left, bottom and right), as well as being surrounded by the Region-before, -after, -start and -end areas. Since your region-start has an extent of 2 inches and your region-body has no margin (to the left), they effectively 'start' at the same position to the left, thereby overlapping each other. Why? Because the spacing between the region-body (to the left) and region-start is defined as region-body's margin-left attribute minus region-start's extent attribute. This would in your case be a negative value. So to answer your question, which is by no means dumb, regions can overlap, by design. And you can prevent them from overlapping through trimming the margins and extents and so on. Try and add a margin-left of 2 inches to your region-body, that should give you something. hth/// Magnus Phillip Rhodes wrote: > > I have defined 2 regions, a region-start and a region-body. > > I am writing content to both regions (yea!!!), but the regions are > overlapping each other. I defined an extent of 2 inches for the region > "region-start", but it seems that this does not reserve the space for this > region, and the region-body content is overwriting the region-start content. > > I can see the content from both regions. It's just not where I expect it > to be. > > Thanks. Sorry if this is a dumb question. I tried! > > My questions are? > Why do regions overlap? Is this by design? > How can I prevent one region's content from invading another region's? > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:fo="http://www.w3.org/1999/XSL/Format"> > > > > > > > > > page-height="11in" page-width="8.5in" > margin-top="0.5in" margin-bottom="0.5in" > margin-left="0.5in" margin-right="0.5in"> > > > > > > > > > > > > font-size="10pt" > font-family="serif" > line-height="14pt" > > - p. > > > > > > > > > > > > >