This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] 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 - morais@kde.org - http://www.rnl.ist.utl.pt/~pmmm/

Attachment: footer.png
Description: PNG image

Attachment: header.png
Description: PNG image

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]