AH Formatter / XSL Formatter
Q&A



XSLT/XSL-FO/MathML Technics

Margin / Indent

Top
Basic, General
About AH Formatter
About XSL Formatter
Operation
Programming
XSLT/XSL-FO/SVG/MathML Conformance
XSLT/XSL-FO/MathML Technics
Index
Q.  I want to specify fo:block margin-top, but I don't want to set the top margin of a box right after breaking pages. How can I do this? [No.2002030804]
A. 
<fo:block margin-top="10pt" xsl:use-attribute-sets="MIDASHI">

margin-top is equivalent to space-before in the W3C Recommendation for XSL-FO, but only the difference is that margin-top is considered to be space-before.conditionality="retain", and as the result, top margin is set right after braking pages. In order to avoid this, use space-before instead of margin-top.

<fo:block space-before="10pt" xsl:use-attribute-sets="MIDASHI"> 

Copyright © 1999-2011 Antenna House, Inc. All rights reserved.
Antenna House is a trademark of Antenna House, Inc.