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.

examples.xml 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <!-- $Id$ -->
  17. <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.3//EN" "http://forrest.apache.org/dtd/document-v13.dtd">
  18. <document>
  19. <header>
  20. <title>Apache™ FOP Examples</title>
  21. <version>$Revision$</version>
  22. </header>
  23. <body>
  24. <section>
  25. <title>Example Documents Using Apache™ FOP</title>
  26. <p>
  27. These examples have been rendered using Apache™ FOP:
  28. </p>
  29. <table>
  30. <caption>Generated examples</caption>
  31. <tr>
  32. <th>Description</th>
  33. <th>XSL-FO file</th>
  34. <th>PDF result</th>
  35. </tr>
  36. <tr>
  37. <td>default font characters</td>
  38. <td><link href="fo/fonts.fo">fonts.fo</link></td>
  39. <td><link href="fo/fonts.pdf">fonts.pdf</link></td>
  40. </tr>
  41. </table>
  42. <p>Other basic examples on the use of XSL-FO can be found in the FOP distribution in
  43. the subdirectory examples/fo. You can start transformation of all fo files into pdf
  44. files by running ant in this directory (only source distribution). The resulting test
  45. files can be found in examples/fo/tests
  46. </p>
  47. <p>At the moment the following files are part of the distribution:</p>
  48. <ul>
  49. <li>simple.fo - a very simple file which gives use a first impression of the structure of an XSL-FO file
  50. </li>
  51. <li>normal.fo - a simple file showing the use of a 2 level of headings, normal text and a header.
  52. </li>
  53. <li>table.fo - some table examples
  54. </li>
  55. <li>list.fo - a short tutorial how to use list fo's and properties
  56. </li>
  57. <li>images.fo - shows how to embed GIF and JPEG images into the XSL-FO file using external-graphic.
  58. </li>
  59. <li>border.fo - a not so simple example how to use borders in tables
  60. </li>
  61. <li>extensive.fo - a longer test file containing a lot of different flow objects and properties.
  62. A good candidate to test your bugfix or new FOP code.
  63. </li>
  64. <li>leader.fo - shows different uses of fo:leader, p.e. as rule or in a table of content
  65. </li>
  66. <li>normalex.fo - shows the use of computed property values
  67. </li>
  68. <li>inhprop.fo - shows the use of inherited property values
  69. </li>
  70. <li>instream.fo - shows the use of fo:instream-foreign-object together with SVG
  71. </li>
  72. <li>textdeko.fo - shows the use of the property text-decoration
  73. </li>
  74. <li>readme.fo - uses an old version of FOP documentation for a longer example
  75. </li>
  76. </ul>
  77. <p>Also, in the directory examples/fo/pagination you will find a suite of examples showing the use
  78. of XSL-FO pagination.
  79. </p>
  80. <p>
  81. Developers will find the first steps to a test suite for all implemented
  82. formatting objects and properties in test/xml in the source distribution.
  83. </p>
  84. </section>
  85. <section>
  86. <title>Images Examples</title>
  87. <p>
  88. Embedding images in FO:
  89. </p>
  90. <table>
  91. <caption>Images in FO</caption>
  92. <tr>
  93. <th>description</th>
  94. <th>fo file</th>
  95. <th>pdf result</th>
  96. </tr>
  97. <tr>
  98. <td>align in larger viewport</td>
  99. <td><link href="fo/align.fo">align.fo</link></td>
  100. <td><link href="fo/align.pdf">align.pdf</link></td>
  101. </tr>
  102. <tr>
  103. <td>align in smaller viewport</td>
  104. <td><link href="fo/align2.fo">align2.fo</link></td>
  105. <td><link href="fo/align2.pdf">align2.pdf</link></td>
  106. </tr>
  107. <tr>
  108. <td>scaling image</td>
  109. <td><link href="fo/size.fo">size.fo</link></td>
  110. <td><link href="fo/size.pdf">size.pdf</link></td>
  111. </tr>
  112. </table>
  113. <p>Look also into the directory examples/fo/svg. There you find some very extensive SVG examples.
  114. </p>
  115. </section>
  116. <section>
  117. <title>Instream Foreign Object Examples</title>
  118. <p>
  119. Instream Foreign Object images in FO, there are more on the
  120. <link href="dev/svg.html">SVG Page</link>:
  121. </p>
  122. <table>
  123. <caption>Embedding instream-foreign-object</caption>
  124. <tr>
  125. <th>description</th>
  126. <th>fo file</th>
  127. <th>pdf result</th>
  128. </tr>
  129. <tr>
  130. <td>embedding svg in viewport</td>
  131. <td><link href="fo/embed.fo">embed.fo</link></td>
  132. <td><link href="fo/embed.pdf">embed.pdf</link></td>
  133. </tr>
  134. </table>
  135. </section>
  136. </body>
  137. </document>