You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

normalex.fo 5.4KB

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