ZVON > References > Zvon Example Repository
Example repository: index | categories | search

All > XSL FO > Margins > cmpb-margin-bottom7.fo


Title: cmpb-margin-bottom7.fo
Origin: NIST XSL test suite

FO file
ElementsAttributes
fo:blockbackground-color | space-after.conditionality | space-after.maximum | space-after.minimum | space-after.optimum | space-after.precedence |
fo:flowflow-name |
fo:layout-master-set
fo:page-sequencemaster-name |
fo:region-beforeextent |
fo:region-bodymargin-top |
fo:root
fo:simple-page-mastermaster-name | page-height | page-width |

Warning! These examples are related to XSL FO Working Draft, you need to use attribute "page-sequence/@master-reference" instead of "page-sequence/@master-name".


Source

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" >
     <fo:layout-master-set>
          <fo:simple-page-master master-name="test-page-master" page-width="8.5in" page-height="11in">
               <fo:region-body margin-top="0.4in"/>
               <fo:region-before extent="0.3in"/>
          </fo:simple-page-master>
     </fo:layout-master-set>
     <fo:page-sequence master-name="test-page-master">
          <fo:flow flow-name="xsl-region-body">
               <fo:block> This is a reference line for property set below. </fo:block>
               <fo:block space-after.optimum="-10px" space-after.minimum="-11px" space-after.maximum="-9px" space-after.precedence="force" space-after.conditionality="retain" background-color="silver">This element has a space-after of -10px, which should cause elements after it to be shifted "upward" on the page, and no top margin. No other styles have been applied to it besides a light blue background. In all other respects, the element should be normal.</fo:block>
          </fo:flow>
     </fo:page-sequence>
</fo:root>



Sponsored links: Web Design Chicago, VoIP Internettelefonie, DSL, SDSL, ADSL