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

All > XSL FO > Unsorted yet > blrp-heightoflines2.fo


Title: blrp-heightoflines2.fo
Origin: NIST XSL test suite

Rendered image | PDF output | FO file
ElementsAttributes
fo:blockfont-size | line-height |
fo:external-graphicborder-left-width | border-style | content-height | content-width | margin-left | padding-left | src |
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 font-size="14px" line-height="20px">This paragraph should have a font size of 14px and a line height of 20px. This means that the lines of text within it should be separated by six pixels. Any images within the paragraph should increase the height of the line-box so that they fit, including their left padding (5px), left border (10px) and left margins (5px) within the line box, such as
                    <fo:external-graphic content-width="100px" content-height="100px" padding-left="5px" border-style="solid" border-left-width="10px" margin-left="15px" src="oransqr.jpg"/>. This is additional text to make sure that there is enough room left below the image so that this line does not hit the image that is text-top aligned. It is the outer edge of the margin that should be text-bottom and text-top aligned in this paragraph, so for the first image the bottom border of the image should begin 15px above the bottom of the text.(NOTE: vertical-align not used here, so may affect result)
               </fo:block>
          </fo:flow>
     </fo:page-sequence>
</fo:root>



Sponsored links: Domain Names, VoIP Internettelefonie, DSL, SDSL, ADSL, UNLIMITED Web Hosting by HostDepartment, conference call service, answering service