[xep-support] Re: [error] Attribute 'background-image' cannot occur at element 'fo:simple-page-master'.

Kevin Brown kevin at renderx.com
Wed May 25 11:28:50 PDT 2011


We find it better to use fo:region-before if possible. This way, you don't
have to play with all margins. This is exactly the way our VisualXSL product
works when you insert a background PDF into the design.

It will set a background image on fo:region-before with extent = page-height
... as in:

<fo:region-before extent="792pt" region-name="header-any"
background-image="url(&quot;Master.pdf&quot;)"/>

Kevin Brown
RenderX

-----Original Message-----
From: xep-support-bounces at renderx.com
[mailto:xep-support-bounces at renderx.com] On Behalf Of Nathan Stenzel
Sent: Wednesday, May 25, 2011 11:11 AM
To: xep-support at renderx.com
Subject: [xep-support] Re: [error] Attribute 'background-image' cannot occur
at element 'fo:simple-page-master'.

On Wednesday 25 May 2011 10:50:32 am G. Ken Holman wrote:
> At 2011-05-25 10:16 -0500, you wrote:
> >Why can't we do this? It would make sense to be able to say what the
> >background image is for the sake of saying "this goes on this paper".
>
> According to the XSL-FO specification, the background image is a
> property of each of the regions on the page, not a property of the
> page geometry.
>
> If you set your page margins to 0pt, then the region-body is the same
> size as your paper, and then you would get your full-page background
image.
>
> I hope this helps.
>
> . . . . . . . . Ken
>
> --
> Contact us for world-wide XML consulting & instructor-led training
> Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/f/
> G. Ken Holman                 mailto:gkholman at CraneSoftwrights.com
> Legal business disclaimers:  http://www.CraneSoftwrights.com/legal
>
>
> 
>
>
> _______________________________________________
> (*) To unsubscribe, please visit
> http://lists.renderx.com/mailman/options/xep-support (*) By using the
> Service, you expressly agree to these Terms of Service http://w
> ww.renderx.com/terms-of-service.html

Thanks much for the reply. I think a number of people have had trouble with 
this in the past.

I did the following...
-set background-image for the fo:region-body
-set the margins to 0in and the padding to the top and bottom borders of the

flowing space for the fo:region-body
-set the block-containers to be relatively postioned (not absolute)

Now, I finally have it working.

!DSPAM:87,4ddd465163736718531440!


_______________________________________________
(*) To unsubscribe, please visit
http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service
http://w
ww.renderx.com/terms-of-service.html



More information about the Xep-support mailing list