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

From: Nathan Stenzel <nathanstenzel@sebis.com>
Date: Wed May 25 2011 - 12:38:58 PDT

Using what I believe was XEP version 4.3, the fo:region-before will have its
background overwrite the foreground of the body. I had tried that a few times
and had no luck. There could have been other factors too, I suppose, since
absolute positioning vs relative positioning seems to affect the apparent
z-index. I also played with z-index and had no luck or affect there.

On Wednesday 25 May 2011 01:28:50 pm Kevin Brown wrote:
> 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@renderx.com
> [mailto:xep-support-bounces@renderx.com] On Behalf Of Nathan Stenzel
> Sent: Wednesday, May 25, 2011 11:11 AM
> To: xep-support@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@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.
>
>
>
>
> _______________________________________________
> (*) 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
>
> _______________________________________________
> (*) 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

!DSPAM:87,4ddd5ad763732194511301!

_______________________________________________
(*) 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
Received on Wed May 25 12:39:12 2011

This archive was generated by hypermail 2.1.8 : Wed May 25 2011 - 12:39:21 PDT