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

All > XSL FO > Lists > misc-list2.fo


Title: misc-list2.fo
Origin: NIST XSL test suite

Rendered image | PDF output | FO file
ElementsAttributes
fo:block
fo:external-graphicsrc |
fo:flowflow-name |
fo:layout-master-set
fo:list-block
fo:list-item
fo:list-item-body
fo:list-item-label
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:list-block>
                    <fo:list-item>
                         <fo:list-item-label>
                              <fo:block>
                                   <fo:external-graphic src="oransqr.jpg"/>
                              </fo:block>
                         </fo:list-item-label>
                         <fo:list-item-body>
                              <fo:block>This is the first list item, with a lot of text to see if the text wraps around to the correct left indentation when the end of line is reached. The correct indentation should be aligned with the line above, not with the image used as the list item marker. This marker should be an orange square.</fo:block>
                         </fo:list-item-body>
                    </fo:list-item>
                    <fo:list-item>
                         <fo:list-item-label>
                              <fo:block>
                                   <fo:external-graphic src="oransqr.jpg"/>
                              </fo:block>
                         </fo:list-item-label>
                         <fo:list-item-body>
                              <fo:block>This is the second list item, with a lot of text to see if the text wraps around to the correct left indentation when the end of line is reached. The correct indentation should be aligned with the line above, not with the image used as the list item marker. This marker should be an orange square.</fo:block>
                         </fo:list-item-body>
                    </fo:list-item>
               </fo:list-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