Hi Andreas, Thanks for your response!
The problem with fo-external-graphic is that it does not work as a background for a text that is placed in the footer. ;-( So frustrating... Best wishes, Nancy Andreas Delmelle-2 wrote: > > On Oct 5, 2008, at 15:42, nancy_b wrote: > > Hi > >> I am trying to put an image as a footer separator. But the problem >> is that >> it does not cover the whole page width (not including the margins of >> course). Could you please advise me what I do wrong? > >> Here is the code: >> <xsl:param name="footer.path" >> select="'../scripts/images/footer.png'"/> >> >> <xsl:template name="foot.sep.rule"> >> <xsl:param name="pageclass"/> >> <xsl:param name="sequence"/> >> <xsl:param name="gentext-key"/> >> >> <xsl:if test="$footer.rule != 0"> >> <xsl:attribute name="background-image"> >> > > Since the image is used as a background, there is no way to scale it > to fit the page-width during formatting. This is only possible with > either fo:external-graphic or fo:instream-foreign-object (to which > the content-height/content-width properties actually apply; not sure > to which element they are being added in your code) > > The only two options I see are: > - either pre-scale the 'footer.png' image, so it already has the > right dimensions > - or abandon the approach of using a background-image, and try to > replace it by a fo:external-graphic, which allows you to use the > combination of 'width="100%" content-width="scale-to-fit" > > > HTH'! > > Andreas > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Background-image-as-a-footer-separator-tp19824703p19833760.html Sent from the FOP - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]