- From: G. Ken Holman <gkholman@CraneSoftwrights.com>
- Date: Fri, 02 Aug 2002 08:24:09 -0400
- To: XSLFO-WWW <www-xsl-fo@w3.org>
At 2002-08-02 11:19 +0200, mueller wrote: >It works fine for the region-before and the region-body. >I now get what I wanted there, >only now I lost the margins for the region-after >and I would need margins in the region-after, You didn't mention this requirement in your earlier post. >but it seems >I cannot set 0 margin for the region-before, 15mm for the body and >and lets say 20mm for the region-after. Is that so? No .. regions cannot have margins ... looking at 6.4.15 I don't see the availability of margin specifications. Note that even though padding and border-width properties are listed indirectly through a common property set, these must be 0pt, which means this technique is not available to you. To get the effect you want, you will need to squeeze in the sides of the region-after by using extents on region-start and region-end ... then, to go beyond these sides in region-before, you need to change the precedence from the default of "false" to "true". The example below gives you what you need, based on the requirements you have described so far, when using Antenna House. If there are more requirements, then I can't say if this will suffice or not. I hope this helps. ....................... Ken T:\ftemp>type harald.fo <?xml version="1.0" encoding="utf-8"?> <root font-family="Times" font-size="20pt" xmlns="http://www.w3.org/1999/XSL/Format"> <layout-master-set> <simple-page-master master-name="frame" page-height="297mm" page-width="210mm"> <region-body region-name="frame-body" margin-top="15mm" margin-bottom="15mm" margin-left="15mm" margin-right="15mm"/> <region-before region-name="frame-before" extent="15mm" precedence="true"/> <region-after region-name="frame-after" extent="15mm"/> <region-start region-name="frame-start" extent="15mm"/> <region-end region-name="frame-end" extent="15mm"/> </simple-page-master> </layout-master-set> <page-sequence master-reference="frame"> <static-content flow-name="frame-before"> <block text-align="end"> <external-graphic src="smflags.bmp"/> </block> </static-content> <static-content flow-name="frame-after"> <block text-align="end"> <external-graphic src="smflags.bmp"/> </block> </static-content> <flow flow-name="frame-body"> <block border="solid 1px">This is a test <footnote> <inline/> <footnote-body> <block text-align="end" border="solid 1px"> End of body region </block> </footnote-body> </footnote> </block> </flow> </page-sequence> </root> T:\ftemp> -- Upcoming hands-on in-depth 3-days XSLT/XPath and/or 2-days XSL-FO: - North America: Sep 30-Oct 4,2002 - Japan: Oct 7-Oct 11,2002 G. Ken Holman mailto:gkholman@CraneSoftwrights.com Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995) ISBN 0-13-065196-6 Definitive XSLT and XPath ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath ISBN 1-894049-07-1 Practical Formatting Using XSLFO XSL/XML/DSSSL/SGML/OmniMark services, books (electronic, printed), articles, training (instructor-live,Internet-live,web/CD,licensed) Next public training: 2002-08-05,26,27,09-30,10-03,07,10
Received on Friday, 2 August 2002 08:25:07 UTC