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.

upgrading.xml 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?xml version="1.0" encoding="UTF-8"?>
  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 V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">
  18. <document>
  19. <header>
  20. <title>Upgrading from an Earlier Version of Apache™ FOP</title>
  21. <version>$Revision$</version>
  22. </header>
  23. <body>
  24. <section id="important">
  25. <title>Important!</title>
  26. <p>
  27. If you're planning to upgrade to the latest Apache™ FOP version there are a few very important things
  28. to consider:
  29. </p>
  30. <ul>
  31. <li>
  32. The API of FOP has changed considerably and is not
  33. backwards-compatible with versions 0.20.5 and
  34. 0.91beta. Version 0.92 introduced the <strong>new stable
  35. API</strong>.
  36. </li>
  37. <li>
  38. Since version 0.92 some deprecated methods which were part
  39. of the old API have been removed. If you upgrade from 0.91
  40. beta, you will need to adjust your Java code. Similarly if
  41. you upgrade from 0.92 and use deprecated methods.
  42. </li>
  43. <li>
  44. If you are using a configuration file for version 0.20.5, you have to rebuild it in the new format. The format
  45. of the configuration files has changed since version 0.20.5. See conf/fop.xconf for
  46. an example configuration file. A XML Schema file can be found under
  47. src/foschema/fop-configuration.xsd.
  48. </li>
  49. <li>
  50. Beginning with version 0.94 you can skip the generation of
  51. font metric files and remove the "font-metrics" attribute
  52. in the font configuration. In the unlikely case that due to
  53. a bug you still need to use font metrics files you will need
  54. to regenerate the font metrics file if yours are from a FOP
  55. version before 0.93.
  56. </li>
  57. <li>
  58. <p>
  59. The new code is much more strict about the interpretation of the XSL-FO 1.1 specification.
  60. Things that worked fine in version 0.20.5 might start to produce warnings or even errors
  61. now. FOP 0.20.5 contains many bugs which have been corrected in the new code.
  62. </p>
  63. <note label="An example">
  64. While FOP 0.20.5 allowed you to have empty <code>fo:table-cell</code> elements, the new code
  65. will complain about that (unless relaxed validation is enabled) because the specification
  66. demands at least one block-level element (<code>(%block;)+</code>, see
  67. <a href="http://www.w3.org/TR/xsl/#fo_table-cell">XSL-FO 1.1, 6.7.10</a>)
  68. inside an <code>fo:table-cell</code> element.
  69. </note>
  70. </li>
  71. <li>
  72. Extensions and Renderers written for version 0.20.5 will not work with the new code! The new FOP
  73. extension for <a href="http://barcode4j.sourceforge.net">Barcode4J</a> is available since
  74. January 2007.
  75. </li>
  76. <li>
  77. The SVG Renderer and the MIF Handler have not been resurrected, yet! They are currently non-functional
  78. and hope for someone to step up and reimplement them.
  79. </li>
  80. </ul>
  81. </section>
  82. <section id="issues">
  83. <title>What you need to know when you upgrade!</title>
  84. <p>
  85. When you use your existing FO files or XML/XSL files which work fine with FOP version
  86. 0.20.5 against this FOP version some things may not work as expected. The following
  87. list will hopefully help you to identify and correct those problems.
  88. </p>
  89. <ul>
  90. <li>
  91. Check the <a href="../compliance.html">Compliance page</a> for the feature causing
  92. trouble. It may contain the necessary information to understand and resolve the problem.
  93. </li>
  94. <li>
  95. Not all 0.20.5 output formats are supported. PDF and Postscript should be fully supported.
  96. See <a href="output.html">Output Targets</a> for a more complete description.
  97. </li>
  98. <li>
  99. As stated above empty table cells <code>&lt;fo:table-cell&gt;&lt;/fo:table-cell&gt;</code>
  100. are not allowed by the specification. The same applies to empty <code>static-content</code>
  101. and <code>block-container</code> elements, for example.
  102. </li>
  103. <li>
  104. 0.20.5 is not XSL-FO compliant with respect to sizing images (<code>external-graphic</code>)
  105. or <code>instream-foreign-object</code>
  106. objects. If images or SVGs are sized differently in your outputs with the new FOP version
  107. check <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=37136">Bug 37136</a>
  108. as it contains some hints on what to do. The file
  109. <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/fo/basic/images.fo?view=markup">
  110. <code>"examples/fo/basic/images.fo"</code></a> has
  111. a number of good examples that show the new, more correct behaviour.
  112. </li>
  113. <li>
  114. The <code>fox:outline</code> extension is not implemented in this version anymore.
  115. It has been superseded by the new bookmark elements from XSL-FO 1.1.
  116. </li>
  117. </ul>
  118. </section>
  119. </body>
  120. </document>