Subject: Re: [xsl] [FO] Margin when a block breaks over a page From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Mon, 18 Aug 2008 21:17:23 -0400 |
I want to ensure that when a block breaks on a new page, the top of the content has a certain amount of spacing before it, how can I do this?
I have tried using space-before and and played with margins, but to no avail (that said, I am using FOP which hasn't got full space-before support yet).
I cannot put the margin at the top of the region body because I have a background image.
<?xml version="1.0" encoding="US-ASCII"?><!--background.fo--> <root xmlns="http://www.w3.org/1999/XSL/Format" font-family="Times" font-size="20pt">
<layout-master-set> <simple-page-master master-name="frame" page-height="297mm" page-width="210mm" margin-top="15mm" margin-bottom="15mm" margin-left="15mm" margin-right="15mm"> <region-body region-name="frame-body" background-image="harbour.jpg" background-position-vertical="-20pt" background-repeat="no-repeat"/> </simple-page-master> </layout-master-set>
<page-sequence master-reference="frame"> <flow flow-name="frame-body" xmlns="http://www.w3.org/1999/XSL/Format"> <block>This is a test</block> </flow> </page-sequence> </root>
-- Upcoming XSLT/XSL-FO hands-on courses: Wellington, NZ 2009-01 Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] [FO] Margin when a block brea, Kamal Bhatt | Thread | Re: [xsl] [FO] Margin when a block , Kamal Bhatt |
[xsl] [FO] Margin when a block brea, Kamal Bhatt | Date | Re: [xsl] [FO] Margin when a block , Kamal Bhatt |
Month |