xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phillip Rhodes <rhode...@telerama.com>
Subject region's content invading neighbor region?
Date Tue, 03 Sep 2002 06:25:47 GMT
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?

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"

    <xsl:template match="/">

   <xsl:template match="guide">
     <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
   		<fo:simple-page-master  master-name="US-Letter"
		     page-height="11in"   page-width="8.5in"
		     margin-top="0.5in"   margin-bottom="0.5in"
		     margin-left="0.5in"  margin-right="0.5in">
			<fo:region-start  extent="2.0in"/>

   <xsl:template match="grouping">
       <fo:page-sequence master-reference="US-Letter">
        <fo:static-content flow-name="xsl-region-start">
         <fo:block text-align="end"
             line-height="14pt" >
            <xsl:value-of select="@displayText"/> - p. <fo:page-number/>
        <fo:flow flow-name="xsl-region-body">

   <xsl:template match="section[@displayHeader = 'true']">
           <fo:block><xsl:value-of select="@title"/></fo:block>


View raw message