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

All > XSL FO > Unsorted yet > inl-inline-elem1.fo


Title: inl-inline-elem1.fo
Origin: NIST XSL test suite

Rendered image | PDF output | FO file
ElementsAttributes
fo:blockline-height |
fo:flowflow-name |
fo:inlineborder-left-width | border-style | margin-left | padding-left |
fo:layout-master-set
fo:page-sequencemaster-name |
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:simple-page-master>
     </fo:layout-master-set>
     <fo:page-sequence master-name="test-page-master">
          <fo:flow flow-name="xsl-region-body">
               <fo:block line-height="200%">This is a paragraph that has a
                    <fo:inline border-left-width="10px" border-style="solid" padding-left="2pt" margin-left="30pt">very long span in it, and the span has a 10px left border separated from the span by 2pt, and a left margin of 30pt. The left padding and border should be present on all sides of the span (although vertical lines should appear only at the beginning and the end of the whole span, not on each line). The padding, border, and margin should all be noticeable at the beginnning and end of the span. However, the line height should not be changed by any of them, so the margin should be unnoticeable and the border should overlap text on other lines.</fo:inline> The line spacing in the whole paragraph should be 200% of the font size.
               </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