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]

Re: [docbook-apps] FO output questions (background images on footer; strip on header)


----- Original Message ----- 
From: "Pedro Morais" <pmmm@rnl.ist.utl.pt>
To: <docbook-apps@lists.oasis-open.org>
Sent: Tuesday, November 18, 2003 2:17 PM
Subject: [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?

I think PassiveTeX doesn't support the background-image property.
On the PassiveTeX conformance page, the status for background-image
is "I can see where I might start".  You might try it with another FO
processor.

> 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.

Take a look at the page masters in fo/pagesetup.xsl that are used when
$draft.mode is set.  They put a background-image property on
the fo:region-body.  You can create your own page masters in a similar
fashion.

> 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

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


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]