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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <?xml version="1.0" 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.1//EN"
  18. "http://svn.apache.org/viewvc/forrest/trunk/main/webapp/resources/schema/dtd/document-v12.dtd?view=co">
  19. <document>
  20. <header>
  21. <title>Examples</title>
  22. <version>$Revision$</version>
  23. </header>
  24. <body>
  25. <section>
  26. <title>Example Documents Using FOP</title>
  27. <p>
  28. These examples have been rendered using FOP:
  29. </p>
  30. <table>
  31. <caption>Generated examples</caption>
  32. <tr>
  33. <th>Description</th>
  34. <th>XSL-FO file</th>
  35. <th>PDF result</th>
  36. </tr>
  37. <tr>
  38. <td>default font characters</td>
  39. <td><link href="fo/fonts.fo">fonts.fo</link></td>
  40. <td><link href="fo/fonts.fo.pdf">fonts.fo.pdf</link></td>
  41. </tr>
  42. </table>
  43. <p>Other basic examples on the use of XSL-FO can be found in the FOP distribution in
  44. the subdirectory examples/fo. You can start transformation of all fo files into pdf
  45. files by running ant in this directory (only source distribution). The resulting test
  46. files can be found in examples/fo/tests
  47. </p>
  48. <p>At the moment the following files are part of the distribution:</p>
  49. <ul>
  50. <li>simple.fo - a very simple file which gives use a first impression of the structure of an XSL-FO file
  51. </li>
  52. <li>normal.fo - a simple file showing the use of a 2 level of headings, normal text and a header.
  53. </li>
  54. <li>table.fo - some table examples
  55. </li>
  56. <li>list.fo - a short tutorial how to use list fo's and properties
  57. </li>
  58. <li>images.fo - shows how to embed GIF and JPEG images into the XSL-FO file using external-graphic.
  59. </li>
  60. <li>border.fo - a not so simple example how to use borders in tables
  61. </li>
  62. <li>extensive.fo - a longer test file containing a lot of different flow objects and properties.
  63. A good candidate to test your bugfix or new FOP code.
  64. </li>
  65. <li>leader.fo - shows different uses of fo:leader, p.e. as rule or in a table of content
  66. </li>
  67. <li>normalex.fo - shows the use of computed property values
  68. </li>
  69. <li>inhprop.fo - shows the use of inherited property values
  70. </li>
  71. <li>instream.fo - shows the use of fo:instream-foreign-object together with SVG
  72. </li>
  73. <li>textdeko.fo - shows the use of the property text-decoration
  74. </li>
  75. <li>readme.fo - uses an old version of FOP documentation for a longer example
  76. </li>
  77. </ul>
  78. <p>Also, in the directory examples/fo/pagination you will find a suite of examples showing the use
  79. of XSL-FO pagination.
  80. </p>
  81. <p>
  82. Developers will find the first steps to a test suite for all implemented
  83. formatting objects and properties in xml-fop/test/xml/.
  84. </p>
  85. </section>
  86. <section>
  87. <title>Images Examples</title>
  88. <p>
  89. Embedding images in FO:
  90. </p>
  91. <table>
  92. <caption>Images in FO</caption>
  93. <tr>
  94. <th>description</th>
  95. <th>fo file</th>
  96. <th>pdf result</th>
  97. </tr>
  98. <tr>
  99. <td>align in larger viewport</td>
  100. <td><link href="fo/align.fo">align.fo</link></td>
  101. <td><link href="fo/align.fo.pdf">align.fo.pdf</link></td>
  102. </tr>
  103. <tr>
  104. <td>align in smaller viewport</td>
  105. <td><link href="fo/align2.fo">align2.fo</link></td>
  106. <td><link href="fo/align2.fo.pdf">align2.fo.pdf</link></td>
  107. </tr>
  108. <tr>
  109. <td>scaling image</td>
  110. <td><link href="fo/size.fo">size.fo</link></td>
  111. <td><link href="fo/size.fo.pdf">size.fo.pdf</link></td>
  112. </tr>
  113. </table>
  114. <p>Look also into the directory examples/fo/svg. There you find some very extensive SVG examples.
  115. </p>
  116. </section>
  117. <section>
  118. <title>Instream Foreign Object Examples</title>
  119. <p>
  120. Instream Foreign Object images in FO, there are more on the
  121. <link href="dev/svg.html">SVG Page</link>:
  122. </p>
  123. <table>
  124. <caption>Embedding instream-foreign-object</caption>
  125. <tr>
  126. <th>description</th>
  127. <th>fo file</th>
  128. <th>pdf result</th>
  129. </tr>
  130. <tr>
  131. <td>embedding svg in viewport</td>
  132. <td><link href="fo/embed.fo">embed.fo</link></td>
  133. <td><link href="fo/embed.fo.pdf">embed.fo.pdf</link></td>
  134. </tr>
  135. </table>
  136. </section>
  137. </body>
  138. </document>