← Prev in month ← Prev in thread

FO output questions (background images on footer; strip on header)

From
Pedro Morais <>
Date
2003-11-18T22:14:03+00:00
ID
Thread
FO output questions (background images on footer; strip on header)
Hi!
I've searched the mailling list archives and been reading all documentation 
I've found, about the XSLs and XSL:FO, so I apologize if this has been asked 
before.
Also, I'm attaching 2 images, but since they are very small I hope that's ok.

I've got 2 unsolved problems:

a) I'd like to output a footer like you can see in the attached file 
footer.png (ignore the openoffice.org guidelines); some text, followed by a 
png image being the background of the page number. Now, here's the 
appropriate segment from my XSL customization (footer.content):
<xsl:when test="($sequence = 'odd' or $sequence = 'first') and $position = 
'right'">
	  <xsl:text>&#169; </xsl:text>
	  <xsl:value-of select="//bookinfo/publisher/publishername"/>
	  <xsl:text> </xsl:text>
	  <fo:inline background-image="pagenumber.png" 
		     width="0.66cm" height="0.66cm" text-align="center">
	    <fo:page-number/>
	  </fo:inline>
<!-- this works, but puts the image after the pagenumber...
	  <fo:page-number/>
	  <fo:external-graphic src="pagenumber.png"
			       width="0.66cm" height="0.66cm"/>
-->
	</xsl:when>
No image at all. Any ideias?

b) I'd like to have the first X cm's of my page, bellow the header, with a 
grey background (header.png). Where's the best place to customize this? I 
haven't found any good place to do it.

Anyway, thanks for the great work on the XSL sheets!

My configuration (fedora core 1 packages):
passivetex-1.24
xsl-stylesheets-1.61.2
xmlto-0.0.15
-- 
Pedro Morais -  - http://www.rnl.ist.utl.pt/~pmmm/
← Prev in month ← Prev in thread