migrating-to-2.2.dita 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
  3. <!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
  4. <reference id="migrating-to-2.2">
  5. <title>Migrating to release 2.2</title>
  6. <titlealts>
  7. <navtitle>To 2.2</navtitle>
  8. </titlealts>
  9. <shortdesc>In DITA-OT 2.2, the <option>HTML5</option> transformation was refactored as its own plug-in and separate
  10. plug-ins were created for each of the rendering engine-specific PDF transformations.<draft-comment author="staylor">
  11. There are likely other changes that should be noted here. </draft-comment>
  12. </shortdesc>
  13. <refbody>
  14. <section>
  15. <note>This topic provides a summary of changes in DITA-OT 2.2 that may require modifications to custom stylesheets
  16. or plug-ins. For more information on changes in this release, see the <xref keyref="2.2-release-notes"/>.</note>
  17. </section>
  18. <section>
  19. <title>HTML5</title>
  20. <p>The <option>HTML5</option> transformation introduced in release 2.0 as part of the <option>XHTML</option>
  21. plug-in has been moved to a separate <option>HTML5</option> plug-in. Customizations that extended the previous
  22. HTML5 output under the <option>XHTML</option> plug-in will probably need to be refactored on the new HTML5
  23. plug-in.</p>
  24. <p>Note title processing has been revised to use a common <codeph>note__title</codeph> class for note elements of
  25. all types. The legacy <codeph><varname>{$type}</varname>title</codeph> classes (such as
  26. <codeph>.notetitle</codeph>, <codeph>.cautiontitle</codeph>, <codeph>.tiptitle</codeph>, etc.) are included
  27. for backwards compatibility, but are deprecated and will be removed in an upcoming release. Stylesheets that
  28. apply formatting overrides to note titles should be revised to replace the deprecated class selectors with the
  29. equivalent descendant selectors, for example <codeph>.note_note .note__title</codeph>, <codeph>.note_caution
  30. .note__title</codeph>, <codeph>.note_tip .note__title</codeph>, etc.</p>
  31. </section>
  32. <section>
  33. <title>PDF</title>
  34. <p>Processing specific to Apache FOP, Antenna House Formatter, and RenderX XEP has been separated into separate
  35. plug-ins for each of those rendering engines. Customizations that extended this processing might need to extend
  36. the new <codeph>org.dita.pdf2.fop</codeph>, <codeph>org.dita.pdf2.axf</codeph>, or
  37. <codeph>org.dita.pdf2.xep</codeph> plug-ins.</p>
  38. <p>PDF customizations that are not specific to a rendering engine can continue to extend the
  39. <codeph>org.dita.pdf2</codeph> plug-in as before.</p>
  40. <p>The default format for page numbers in the table of contents (<xmlelement>toc</xmlelement>) was switched to
  41. roman to align with <xmlelement>preface</xmlelement> and ensure consistent numbering styles for all
  42. <xmlelement>frontmatter</xmlelement> components in <xmlelement>bookmap</xmlelement>. This prevents numbering
  43. from switching back and forth between styles in bookmaps where the Preface follows the table of contents.
  44. Earlier versions of DITA-OT produced numbering sequences like <codeph>1,2,3,4,v,vi,7,8</codeph> in this use
  45. case.</p>
  46. </section>
  47. <section>
  48. <title>Deprecated properties</title>
  49. <p>The following Ant properties have been deprecated:
  50. <ul>
  51. <li><parmname>user.input.file</parmname>, use <parmname>user.input.file.uri</parmname> instead to specify the
  52. input file system path</li>
  53. <li><parmname>user.input.dir</parmname>, use <parmname>user.input.dir.uri</parmname> instead to specify the
  54. input directory system path</li>
  55. <li><parmname>InputMapDir</parmname>, use <parmname>InputMapDir.uri</parmname> instead to specify the input
  56. map directory system path</li>
  57. </ul></p>
  58. </section>
  59. </refbody>
  60. </reference>