Hi Jeremias:

Also, when I put the following as the header

<fo:region-before region-name="Header" extent="15.0pt"
background-color="#4AB1FF" padding-top="10.0pt" padding-bottom="0.0pt"
padding-left="100.0pt" padding-right="0.0pt">
</fo:region-before>

FOP complains with the following : 

SEVERE: javax.xml.transform.TransformerException: Border and padding for
region "Header" must be '0' (See 6.4.13 in XSL 1.0).
javax.xml.transform.TransformerException:
org.apache.fop.fo.expr.PropertyException: Border and padding for region
"Header" must be '0' (See 6.4.13 in XSL 1.0).
        at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:167)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:114)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:119)


What is exactly meant by " Border and padding for region "Header" must be
'0'"?

Can you please help?

Regards,

Debasish

-----Original Message-----
From: Debasish Jana [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 18, 2006 10:49 AM
To: [email protected]
Subject: RE: Help required for margin in simple-page-master and padding in
Start

Many thanks, Jeremias. If we don't use block-container, how can we supply
the padding parameters? Can we supply that in the region too?

Regards,

Debasish

-----Original Message-----
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 18, 2006 1:58 AM
To: [email protected]
Subject: Re: Help required for margin in simple-page-master and padding in
Start

Two problems:
- You don't specify the extent property for Header and LeftSide.
- You use fixed positioned block-containers which actually makes FOP
ignore the whole region setup, because fixed positions block-containers
are absolutely positioned relatively to the upper left corner of the
page. So, remove the block-containers. If you need a background-color
I'd first try to set it on fo:region-start before playing with
block-containers.

On 17.08.2006 12:01:30 Debasish Jana wrote:
> Hi:
> 
> I am facing a problem with margin and padding.
> 
> The associated xsl-fo file is enclosed below.
> 
> I have a section (simple-page-master) that has margins on all four sides
as
> 10.0pt. The section's start (flow name = LeftSide) has left-padding as
10.0
> pt and top-padding as 10.0 pt. The start part has a child component as a
> text showing HELLO. With the padding on for start, the text is appearing
ok,
> but the section is not showing the margin gap in generated PDF. 
> 
> I am using FOP 0.92
> 
> Please help.
> 
> Regards,
> 
> Debasish Jana
<snip/>



Jeremias Maerki



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to