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

From: Kevin Brown <kevin@renderx.com>
Date: Wed May 25 2011 - 14:21:54 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 this discussion with developer's at a recent product planning sessions
and I believe that you would be safe using fo:region-before background image
(not necessarily in the static content, but in the background -- this may
have been the difference). As I said, this is the way it is inserted into FO
using the XSL from VisualXSL and I have seen 1000s of documents done with
background images, never with a problem of the region-before background
image overlaying anything in the body. However, the region before "area"
can.

I or our tech team can crack the code and examine, but I think what happens
is that backgrounds are first, then content in the order of definition
within the template -- meaning likely body, before then after.

A good way to do it is to create a simple example and format to XEP
Intermediate Format -- the order of the objects in this would be the order
in which they are drawn to the page.

Also to note, we do many projects from VisualXSL where we run a bookfold,
like taking the XEP Intermediate format and edit it in XSL to say combine
pages like 4,1 and 2,3 into two pages for bookfold print. As part of that
process, we inject backgrounds that are 11x17 for instance, covering both
pages. In our bookfoled XSL, we inject the image into XEP Intermediate
format at the beginning of the page to ensure it is rendered "first" and
hence in the background. If I look at a page in XEP with fo:region-before as
an image, I see one of the first things in the XEP Intermediate Format.
(this is actually another way to do it if you like)

Kevin
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 12:39 PM
To: xep-support@renderx.com
Subject: [xep-support] Re: [error] Attribute 'background-image' cannot occur
at element 'fo:simple-page-master'.

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

_______________________________________________
(*) 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 14:22:47 2011

This archive was generated by hypermail 2.1.8 : Wed May 25 2011 - 14:22:48 PDT