migrating-to-2.3.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <!DOCTYPE html
  2. SYSTEM "about:legacy-compat">
  3. <html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="UTF-8"><meta name="copyright" content="(C) Copyright 2019"><meta name="DC.rights.owner" content="(C) Copyright 2019"><meta name="DC.type" content="reference"><meta name="description" content="In DITA-OT 2.3, HTML5 table processing has been refactored to use HTML5 best practices and improved CSS properties. In PDF output, table heads and key columns no longer include shading, and unused localization variables have been deprecated. The template for generated error messages has been updated to use a single id variable that contains the entire message ID."><meta name="DC.subject" content="languages, supported, Chinese, English, Indonesian, Korean, I18N, PDF processing, metadata, chunking, effect of, tables, HTML5, PDF"><meta name="keywords" content="languages, supported, Chinese, English, Indonesian, Korean, I18N, PDF processing, metadata, chunking, effect of, tables, HTML5, PDF"><meta name="DC.relation" scheme="URI" content="../topics/migration.html"><meta name="DC.format" content="HTML5"><meta name="DC.identifier" content="migrating-to-2.3"><link rel="stylesheet" type="text/css" href="../css/commonltr.css"><link rel="stylesheet" type="text/css" href="../css/dita-ot-doc.css"><title>Migrating to release 2.3</title></head><body id="migrating-to-2.3"><header role="banner"><div class="header">
  4. <p>DITA Open Toolkit</p>
  5. <hr>
  6. </div></header><nav role="toc"><ul><li><a href="../index.html">DITA Open Toolkit 3.3</a></li><li><a href="../release-notes/index.html">Release Notes</a></li><li><a href="../topics/installing-client.html">Installing DITA-OT</a></li><li><a href="../topics/alternative-input-formats.html">Authoring formats</a></li><li><a href="../topics/building-output.html">Building output</a></li><li><a href="../parameters/index.html">Setting parameters</a></li><li><a href="../topics/customizing.html">Customizing DITA-OT</a><ul><li><a href="../topics/html-customization.html">Customizing HTML</a></li><li><a href="../topics/pdf-customization.html">Customizing PDF</a></li><li><a href="../topics/custom-plugins.html">Working with plug-ins</a></li><li><a href="../extension-points/plugin-extension-points.html">Extension points</a></li><li><a href="../topics/migration.html">Migrating customizations</a><ul><li><a href="../topics/migrating-to-3.3.html">To 3.3</a></li><li><a href="../topics/migrating-to-3.2.html">To 3.2</a></li><li><a href="../topics/migrating-to-3.1.html">To 3.1</a></li><li><a href="../topics/migrating-to-3.0.html">To 3.0</a></li><li><a href="../topics/migrating-to-2.5.html">To 2.5</a></li><li><a href="../topics/migrating-to-2.4.html">To 2.4</a></li><li class="active"><a href="../topics/migrating-to-2.3.html">To 2.3</a></li><li><a href="../topics/migrating-to-2.2.html">To 2.2</a></li><li><a href="../topics/migrating-to-2.1.html">To 2.1</a></li><li><a href="../topics/migrating-to-2.0.html">To 2.0</a></li><li><a href="../topics/migrating-to-1.8.html">To 1.8</a></li><li><a href="../topics/migrating-to-1.7.html">To 1.7</a></li><li><a href="../topics/migrating-to-1.6.html">To 1.6</a></li><li><a href="../topics/migrating-to-1.5.4.html">To 1.5.4</a></li></ul></li><li><a href="../topics/globalization.html">Globalizing DITA content</a></li><li><a href="../topics/rebuilding-docs.html">Rebuilding documentation</a></li></ul></li><li><a href="../topics/troubleshooting-overview.html">Troubleshooting</a></li><li><a href="../reference/index.html">Reference</a></li><li><a href="../topics/dita-and-dita-ot-resources.html">Resources</a></li></ul></nav><main role="main"><article role="article" aria-labelledby="ariaid-title1">
  7. <h1 class="title topictitle1" id="ariaid-title1">Migrating to release 2.3</h1>
  8. <div class="body refbody"><p class="shortdesc">In DITA-OT 2.3, <span class="keyword option">HTML5</span> table processing has been refactored to use HTML5 best practices and
  9. improved CSS properties. In PDF output, table heads and key columns no longer include shading, and unused
  10. localization variables have been deprecated. The template for generated error messages has been updated to use a
  11. single <code class="ph codeph">id</code> variable that contains the entire message ID.</p>
  12. <section class="section">
  13. <div class="note note note_note"><span class="note__title">Note:</span> This topic provides a summary of changes in DITA-OT 2.3 that may require modifications to custom stylesheets
  14. or plug-ins. For more information on changes in this release, see the <a class="xref" href="https://www.dita-ot.org/2.3/release-notes/" target="_blank">DITA-OT 2.3 Release Notes</a>.</div>
  15. </section>
  16. <section class="section"><h2 class="title sectiontitle">HTML5</h2>
  17. <p class="p">The <span class="keyword option">HTML5</span> table processing has been refactored to use valid HTML5 markup, HTML5 best
  18. practices, and better CSS properties for styling. <a class="xref" href="https://en.bem.info/methodology/" target="_blank">BEM</a>-style CSS classes are now generated with the name of the containing element, the
  19. name of the attribute, and the value of the attribute. </p>
  20. <p class="p">Common CSS files are now generated using separate modules for each DITA domain, implemented as <a class="xref" href="http://sass-lang.com" target="_blank">Sass</a> partials to better support extensions with CSS frameworks, custom plug-ins and future
  21. toolkit versions.</p>
  22. </section>
  23. <section class="section"><h2 class="title sectiontitle">HTML-based formats</h2>
  24. <div class="div div-index">
  25. </div>
  26. <p class="p">The XSLT <code class="ph codeph">tm-area</code> named template, which used to toggle rendering of trademark symbols in US
  27. English and Asian languages (Japanese, Korean, and both Chinese) but ignore them in all other languages, has
  28. been deprecated. Trademark symbols are now rendered uniformly for all languages and the template will be removed
  29. in an upcoming release.</p>
  30. <p class="p" id="migrating-to-2.3__2191">In previous releases, short descriptions in <code class="keyword markupname xmlelement">&lt;abstract&gt;</code> elements were rendered
  31. as division elements (<code class="keyword markupname xmlelement">&lt;div&gt;</code>), rather than paragraphs (<code class="keyword markupname xmlelement">&lt;p&gt;</code>).
  32. Processing has been revised to ensure that short descriptions are consistently rendered as paragraphs,
  33. regardless of whether they appear in <code class="keyword markupname xmlelement">&lt;abstract&gt;</code> elements. Users who have previously
  34. implemented custom CSS rules to style <code class="ph codeph">div.shortdesc</code> like paragraphs should be able to remove
  35. these rules.</p>
  36. </section>
  37. <section class="section"><h2 class="title sectiontitle">PDF</h2>
  38. <div class="div div-index">
  39. </div>
  40. <p class="p">The <code class="ph codeph">antiquewhite</code> background color has been removed from table heads and key column contents in
  41. <code class="keyword markupname xmlelement">&lt;simpletable&gt;</code> and <code class="keyword markupname xmlelement">&lt;properties&gt;</code> tables to synchronize
  42. presentation with <code class="keyword markupname xmlelement">&lt;choicetable&gt;</code> and provide a more uniform customization baseline between
  43. PDF output and HTML-based formats.</p>
  44. <p class="p" id="migrating-to-2.3__2179">PDF: The I18N Java and XSLT processing code has been merged into single task. This eliminated the
  45. need for a <span class="ph filepath">stage3.fo</span> file in the temporary directory; instead,
  46. <span class="ph filepath">topic.fo</span> is generated directly from <span class="ph filepath">stage2.fo</span>. If custom plug-ins
  47. were implemented to handle <span class="ph filepath">stage3.fo</span>, they would need to be updated. </p>
  48. <div class="p">Localization variables that are no longer used in PDF processing have been deprecated and will be removed in an
  49. upcoming release. PDF customization plug-ins that make use of these variables should plan to refactor
  50. accordingly:
  51. <ul class="ul">
  52. <li class="li">Back button title</li>
  53. <li class="li">Contents button title</li>
  54. <li class="li">Forward button title</li>
  55. <li class="li">Index button title</li>
  56. <li class="li">Index multiple entries separator</li>
  57. <li class="li">Main page button title</li>
  58. <li class="li">Next page button title</li>
  59. <li class="li">Online help prefix</li>
  60. <li class="li">Online Help Search Method And</li>
  61. <li class="li">Online Help Search Method Field</li>
  62. <li class="li">Online Help Search Method Or</li>
  63. <li class="li">Previous page button title</li>
  64. <li class="li">Search button title</li>
  65. <li class="li">Search Case Sensitive Switch</li>
  66. <li class="li">Search Excluded Stop Words Message</li>
  67. <li class="li">Search Highlight Switch</li>
  68. <li class="li">Search index button title</li>
  69. <li class="li">Search index field title</li>
  70. <li class="li">Search index next button title</li>
  71. <li class="li">Search Search Give No Results Message</li>
  72. <li class="li">Search Search in Progress Message</li>
  73. <li class="li">Search Stopped Message</li>
  74. <li class="li">Search text button title</li>
  75. <li class="li">Search text field title</li>
  76. <li class="li">Search title</li>
  77. <li class="li">Search Whole Words Switch</li>
  78. <li class="li">Untitled section</li>
  79. </ul>
  80. </div>
  81. <div class="note note note_note"><span class="note__title">Note:</span> Most of these variables were never used by the PDF process, and most were not supported (or localized) for
  82. any language other than English.</div>
  83. </section>
  84. <section class="section"><h2 class="title sectiontitle">Deprecated properties and targets</h2>
  85. <div class="p">The following Ant properties have been deprecated:
  86. <ul class="ul">
  87. <li class="li"><span class="keyword parmname">conreffile</span></li>
  88. </ul>
  89. </div>
  90. <div class="p">The following preprocessing targets have been deprecated:
  91. <ul class="ul">
  92. <li class="li"><span class="keyword parmname">conref-check</span></li>
  93. <li class="li"><span class="keyword parmname">coderef</span></li>
  94. </ul>
  95. </div>
  96. </section>
  97. <section class="section"><h2 class="title sectiontitle">Pre-processing</h2>
  98. <p class="p" id="migrating-to-2.3__2207">The order of the <code class="ph codeph">chunk</code> and <code class="ph codeph">move-meta-entries</code> pre-processing stages
  99. has been switched so that <code class="ph codeph">chunk</code> comes first. This ensures that metadata is properly pulled or
  100. pushed into the chunked version of DITA topics. </p>
  101. </section>
  102. <section class="section"><h2 class="title sectiontitle">Generating error messages</h2>
  103. <p class="p">Previously, the XSLT <code class="ph codeph">output-message</code> named template for generating error messages combined a
  104. global variable and two parameters to determine the actual message ID. This function has been updated to use a
  105. single <code class="ph codeph">id</code> variable that contains the entire message ID.</p>
  106. <div class="p">Plug-ins that make use of the <code class="ph codeph">output-message</code> function should be updated to use the single
  107. <code class="ph codeph">id</code> variable, as
  108. in:<pre class="pre codeblock language-xml normalize-space show-line-numbers show-whitespace"><code>&lt;xsl:call-template name="output-message"&gt;
  109. &lt;xsl:with-param name="id" select="'FULLMESSAGENUMBER'"/&gt;
  110. &lt;xsl:with-param name="msgparams"&gt;optional-message-parameters&lt;/xsl:with-param&gt;
  111. &lt;/xsl:call-template&gt;</code></pre>
  112. </div>
  113. </section>
  114. </div>
  115. <nav role="navigation" class="related-links"><div class="familylinks"><div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="../topics/migration.html" title="If you have XSL transformation overrides, plug-ins or other customizations written prior to DITA-OT 3.3, you may need to make changes to ensure your overrides work properly with the latest toolkit versions.">Migrating customizations</a></div></div></nav></article></main></body></html>