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.

list.fo 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  3. <!-- defines the layout master -->
  4. <fo:layout-master-set>
  5. <fo:simple-page-master page-master-name="first"
  6. height="29.7cm" width="21cm"
  7. margin-top="1cm"
  8. margin-bottom="2cm"
  9. margin-left="2.5cm"
  10. margin-right="2.5cm">
  11. <fo:region-before extent="3cm"/>
  12. <fo:region-body margin-top="3cm"/>
  13. <fo:region-after extent="1.5cm"/>
  14. </fo:simple-page-master>
  15. </fo:layout-master-set>
  16. <!-- starts actual layout -->
  17. <fo:page-sequence>
  18. <!-- applies layout master -->
  19. <fo:sequence-specification>
  20. <fo:sequence-specifier-single page-master-name="first"/>
  21. </fo:sequence-specification>
  22. <!-- Inserts a header with the page number -->
  23. <fo:static-content flow-name="xsl-before">
  24. <fo:block text-align="end" font-size="10pt" font-family="serif" line-height="14pt">
  25. XSL-FO Example: simple list - p. <fo:page-number/>
  26. </fo:block>
  27. </fo:static-content>
  28. <fo:flow flow-name="xsl-body">
  29. <!-- title -->
  30. <fo:block font-size="14pt"
  31. font-family="sans-serif"
  32. line-height="18pt"
  33. space-before.optimum="3pt"
  34. space-after.optimum="3pt"
  35. font-weight="bold"
  36. start-indent="15pt">
  37. Validity Constraint: Standalone Document Declaration
  38. </fo:block>
  39. <!-- normal text -->
  40. <fo:block font-size="12pt"
  41. font-family="sans-serif"
  42. line-height="15pt"
  43. space-after.optimum="3pt" >
  44. The standalone document declaration must have the value "no" if
  45. any external markup declarations contain declarations of:
  46. </fo:block>
  47. <!-- list -->
  48. <fo:list-block>
  49. <!-- list item -->
  50. <fo:list-item>
  51. <!-- insert a bullet -->
  52. <fo:list-item-label>
  53. <fo:block>&#x2022;</fo:block>
  54. </fo:list-item-label>
  55. <!-- list text -->
  56. <fo:list-item-body>
  57. <fo:block>
  58. attributes with default values, if elements to which these attributes apply appear in the document without specifications of values for these attributes, or
  59. </fo:block>
  60. </fo:list-item-body>
  61. </fo:list-item>
  62. <!-- list item -->
  63. <fo:list-item>
  64. <!-- insert a bullet -->
  65. <fo:list-item-label>
  66. <fo:block>&#x2022;</fo:block>
  67. </fo:list-item-label>
  68. <!-- list text -->
  69. <fo:list-item-body>
  70. <fo:block>
  71. entities (other than amp, lt, gt, apos, quot), if references to those entities appear in the document, or
  72. </fo:block>
  73. </fo:list-item-body>
  74. </fo:list-item>
  75. <!-- list entry -->
  76. <fo:list-item>
  77. <!-- insert a bullet -->
  78. <fo:list-item-label>
  79. <fo:block>&#x2022;</fo:block>
  80. </fo:list-item-label>
  81. <!-- list text -->
  82. <fo:list-item-body>
  83. <fo:block>
  84. attributes with values subject to normalization, where the attribute appears in the document with a value which will
  85. </fo:block>
  86. </fo:list-item-body>
  87. </fo:list-item>
  88. <!-- list entry -->
  89. <fo:list-item>
  90. <!-- insert a bullet -->
  91. <fo:list-item-label>
  92. <fo:block>&#x2022;</fo:block>
  93. </fo:list-item-label>
  94. <!-- list text -->
  95. <fo:list-item-body>
  96. <fo:block>
  97. change as a result of normalization, or
  98. </fo:block>
  99. </fo:list-item-body>
  100. </fo:list-item>
  101. <!-- list entry -->
  102. <fo:list-item>
  103. <!-- insert a bullet -->
  104. <fo:list-item-label>
  105. <fo:block>&#x2022;</fo:block>
  106. </fo:list-item-label>
  107. <!-- list text -->
  108. <fo:list-item-body>
  109. <fo:block>
  110. element types with element content, if white space occurs directly within any instance of those types.
  111. </fo:block>
  112. </fo:list-item-body>
  113. </fo:list-item>
  114. </fo:list-block>
  115. <!-- end list -->
  116. </fo:flow>
  117. </fo:page-sequence>
  118. </fo:root>