OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: RE: DOCBOOK-APPS: Howto eliminate margins on FO coverpage?

I would think you would have more luck looking at pagesetup.xsl and changing
the margins on the physical page.


-----Original Message-----
From: Bob Stayton [mailto:bobs@caldera.com]
Sent: Wednesday, August 07, 2002 1:42 PM
To: Devin Bayer; docbook-apps@lists.oasis-open.org
Subject: Re: DOCBOOK-APPS: Howto eliminate margins on FO coverpage?

On Wed, Aug 07, 2002 at 12:41:18AM -0400, Devin Bayer wrote:
> I'm trying to make the coverpage of my book one big image, but cannot 
> get it to work correctly.
> I'm using:
> xsltproc     1.0.18
> libfop-java  0.20.3
> docbook-xsl  1.50.0
> Here is the template I can up with that doesn't work:
> <!-- CoverPage -->
> <xsl:template name="book.titlepage.recto">
>          <fo:block margin-left="-1in" margin-top="-2in"
> 		margin-right="-1in" margin-bottom="-2in"
>                  padding-top="-1in" padding-bottom="-2in"
> 		background-color="red">
>                  <fo:external-graphic height="11in"
> 			width="8.5in"
> 			src="i_am_a_big.jpeg"/>
>          </fo:block>
> </xsl:template>
> What happens is the red background streches from side to side, but 
> only in the middle of the page (offset up a little).  The image is in 
> the upper-left corner, but doesn't fill the page.  I've tried many 
> variations on this template with no luck.  I'm not getting any 
> relevant diagnostics messages from the software.

I'd try two things:

1.  padding values don't take negative numbers.
I'd remove those entirely as they may be confusing
the processor.

2.  Try negative space-before and space-start instead of margins.

I can't say I fully understand how blocks are rendered as
areas on the page, as the XSL spec is rather complex.
This is complicated by the processors not supporting all
properties, so you never quite know why something doesn't


Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
Caldera International, Inc.                 fax:   (831) 429-1887
                                            email: bobs@caldera.com

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC