1<?xml version="1.0" encoding="utf-8"?> 2 3 4<!-- example for a simple fo file. At the beginning the page layout is set. 5Below fo:root there is always 6- a single fo:layout-master-set which defines one or more page layouts 7- an optional fo:declarations, 8- and a sequence of one or more fo:page-sequences containing the text and formatting instructions --> 9 10<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> 11 12 <fo:layout-master-set> 13 14 <!-- layout for the first page --> 15 <fo:simple-page-master master-name="first" 16 page-height="21cm" 17 page-width="29.7cm" 18 margin-top="1cm" 19 margin-bottom="2cm" 20 margin-left="2.5cm" 21 margin-right="2.5cm"> 22 <fo:region-body margin-top="3cm"/> 23 <fo:region-before extent="3cm"/> 24 <fo:region-after extent="1.5cm"/> 25 </fo:simple-page-master> 26 27 <!-- layout for the other pages --> 28 <fo:simple-page-master master-name="rest" 29 page-height="29.7cm" 30 page-width="21cm" 31 margin-top="1cm" 32 margin-bottom="2cm" 33 margin-left="2.5cm" 34 margin-right="2.5cm"> 35 <fo:region-body margin-top="2.5cm"/> 36 <fo:region-before extent="2.5cm"/> 37 <fo:region-after extent="1.5cm"/> 38 </fo:simple-page-master> 39 40<fo:page-sequence-master master-name="basicPSM" > 41 <fo:repeatable-page-master-alternatives> 42 <fo:conditional-page-master-reference master-reference="first" 43 page-position="first" /> 44 <fo:conditional-page-master-reference master-reference="rest" 45 page-position="rest" /> 46 <!-- recommended fallback procedure --> 47 <fo:conditional-page-master-reference master-reference="rest" /> 48 </fo:repeatable-page-master-alternatives> 49</fo:page-sequence-master> 50 51 </fo:layout-master-set> 52 <!-- end: defines page layout --> 53 54 <!-- actual layout --> 55 <fo:page-sequence master-reference="basicPSM"> 56 57 <!-- header --> 58 <fo:static-content flow-name="xsl-region-before"> 59 <fo:block text-align="end" 60 font-size="10pt" 61 font-family="serif" 62 line-height="14pt" > 63 XML Recommendation - p. <fo:page-number/> 64 </fo:block> 65 </fo:static-content> 66 67 <fo:flow flow-name="xsl-region-body"> 68 69 <!-- defines text title level 1--> 70 <fo:block font-size="18pt" 71 font-family="sans-serif" 72 line-height="24pt" 73 space-after.optimum="15pt" 74 background-color="blue" 75 color="white" 76 text-align="center" 77 padding-top="3pt" 78 font-variant="small-caps"> 79 Extensible Markup Language (XML) 1.0 80 </fo:block> 81 82 <!-- defines text title level 2--> 83 <fo:block font-size="16pt" 84 font-family="sans-serif" 85 line-height="20pt" 86 space-before.optimum="10pt" 87 space-after.optimum="10pt" 88 text-align="start" 89 padding-top="3pt"> 90 Abstract 91 </fo:block> 92 93 <!-- Normal text --> 94 <fo:block font-size="12pt" 95 font-family="sans-serif" 96 line-height="15pt" 97 space-after.optimum="3pt" 98 text-align="start"> 99 The <fo:inline font-variant="small-caps">Extensible Markup Language (XML)</fo:inline> is a subset of SGML that is completely described in this document. Its goal is to 100 enable generic SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML 101 has been designed for ease of implementation and for interoperability with both SGML and HTML. 102 </fo:block> 103 104 <!-- defines text title level 2--> 105 <fo:block font-size="16pt" 106 font-family="sans-serif" 107 line-height="20pt" 108 space-before.optimum="10pt" 109 space-after.optimum="10pt" 110 text-align="start" 111 padding-top="3pt"> 112 Status of this document 113 </fo:block> 114 115 <!-- Normal text --> 116 <fo:block font-size="12pt" 117 font-family="sans-serif" 118 line-height="15pt" 119 space-after.optimum="3pt" 120 text-align="start"> 121 This document has been reviewed by W3C Members and other interested parties and has been endorsed by the Director as a 122 W3C Recommendation. It is a stable document and may be used as reference material or cited as a normative reference from 123 another document. W3C's role in making the Recommendation is to draw attention to the specification and to promote its 124 widespread deployment. This enhances the functionality and interoperability of the Web. 125 </fo:block> 126 127 <!-- Normal text --> 128 <fo:block font-size="12pt" 129 font-family="sans-serif" 130 line-height="15pt" 131 space-after.optimum="3pt" 132 text-align="start"> 133 This document specifies a syntax created by subsetting an existing, widely used international text processing standard 134 (Standard Generalized Markup Language, ISO 8879:1986(E) as amended and corrected) for use on the World Wide Web. It 135 is a product of the W3C XML Activity, details of which can be found at http://www.w3.org/XML. A list of current W3C 136 Recommendations and other technical documents can be found at http://www.w3.org/TR. 137 </fo:block> 138 </fo:flow> 139 </fo:page-sequence> 140</fo:root> 141