migrating-to-2.3.dita 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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.3">
  5. <title>Migrating to release 2.3</title>
  6. <titlealts>
  7. <navtitle>To 2.3</navtitle>
  8. </titlealts>
  9. <shortdesc>In DITA-OT 2.3, <option>HTML5</option> table processing has been refactored to use HTML5 best practices and
  10. improved CSS properties. In PDF output, table heads and key columns no longer include shading, and unused
  11. localization variables have been deprecated. The template for generated error messages has been updated to use a
  12. single <codeph>id</codeph> variable that contains the entire message ID.</shortdesc>
  13. <prolog>
  14. <metadata>
  15. <keywords>
  16. <indexterm>languages<indexterm>supported</indexterm></indexterm>
  17. <indexterm>Chinese</indexterm>
  18. <indexterm>English</indexterm>
  19. <indexterm>Indonesian</indexterm>
  20. <indexterm>Korean</indexterm>
  21. <indexterm>I18N<indexterm>PDF processing</indexterm></indexterm>
  22. <indexterm>metadata<indexterm>chunking, effect of</indexterm></indexterm>
  23. <indexterm>tables<indexterm>HTML5</indexterm></indexterm>
  24. <indexterm>tables<indexterm>PDF</indexterm></indexterm>
  25. </keywords>
  26. </metadata>
  27. </prolog>
  28. <refbody>
  29. <section>
  30. <note>This topic provides a summary of changes in DITA-OT 2.3 that may require modifications to custom stylesheets
  31. or plug-ins. For more information on changes in this release, see the <xref keyref="2.3-release-notes"/>.</note>
  32. </section>
  33. <section>
  34. <title>HTML5</title>
  35. <p>The <option>HTML5</option> table processing has been refactored to use valid HTML5 markup, HTML5 best
  36. practices, and better CSS properties for styling. <xref href="https://en.bem.info/methodology/" format="html"
  37. scope="external">BEM</xref>-style CSS classes are now generated with the name of the containing element, the
  38. name of the attribute, and the value of the attribute. </p>
  39. <p>Common CSS files are now generated using separate modules for each DITA domain, implemented as <xref
  40. keyref="sass-lang"/> partials to better support extensions with CSS frameworks, custom plug-ins and future
  41. toolkit versions.</p>
  42. </section>
  43. <section>
  44. <title>HTML-based formats</title>
  45. <div outputclass="div-index">
  46. <indexterm><xmlelement>div</xmlelement><indexterm><codeph>div.shortdesc</codeph></indexterm></indexterm>
  47. <indexterm><xmlelement>p</xmlelement></indexterm>
  48. <indexterm><xmlelement>abstract</xmlelement></indexterm>
  49. <indexterm><xmlelement>simpletable</xmlelement></indexterm>
  50. <indexterm><xmlelement>properties</xmlelement></indexterm>
  51. <indexterm><xmlelement>choicetable</xmlelement></indexterm>
  52. <indexterm>deprecated features<indexterm><codeph>tm-area</codeph> named template</indexterm></indexterm>
  53. </div>
  54. <p>The XSLT <codeph>tm-area</codeph> named template, which used to toggle rendering of trademark symbols in US
  55. English and Asian languages (Japanese, Korean, and both Chinese) but ignore them in all other languages, has
  56. been deprecated. Trademark symbols are now rendered uniformly for all languages and the template will be removed
  57. in an upcoming release.</p>
  58. <p id="2191">In previous releases, short descriptions in <xmlelement>abstract</xmlelement> elements were rendered
  59. as division elements (<xmlelement>div</xmlelement>), rather than paragraphs (<xmlelement>p</xmlelement>).
  60. Processing has been revised to ensure that short descriptions are consistently rendered as paragraphs,
  61. regardless of whether they appear in <xmlelement>abstract</xmlelement> elements. Users who have previously
  62. implemented custom CSS rules to style <codeph>div.shortdesc</codeph> like paragraphs should be able to remove
  63. these rules.</p>
  64. </section>
  65. <section>
  66. <title>PDF</title>
  67. <div outputclass="div-index">
  68. <indexterm>deprecated features<indexterm><codeph>tm-area</codeph> named template</indexterm></indexterm>
  69. <indexterm>deprecated features<indexterm>PDF localization variables</indexterm></indexterm>
  70. <indexterm>deprecated features<indexterm><parmname>conreffile</parmname></indexterm></indexterm>
  71. <indexterm>deprecated features<indexterm><parmname>conref-check</parmname> target</indexterm></indexterm>
  72. <indexterm>deprecated features<indexterm><parmname>coderef</parmname> target</indexterm></indexterm>
  73. </div>
  74. <p>The <codeph>antiquewhite</codeph> background color has been removed from table heads and key column contents in
  75. <xmlelement>simpletable</xmlelement> and <xmlelement>properties</xmlelement> tables to synchronize
  76. presentation with <xmlelement>choicetable</xmlelement> and provide a more uniform customization baseline between
  77. PDF output and HTML-based formats.</p>
  78. <p id="2179">PDF: The I18N Java and XSLT processing code has been merged into single task. This eliminated the
  79. need for a <filepath>stage3.fo</filepath> file in the temporary directory; instead,
  80. <filepath>topic.fo</filepath> is generated directly from <filepath>stage2.fo</filepath>. If custom plug-ins
  81. were implemented to handle <filepath>stage3.fo</filepath>, they would need to be updated. </p>
  82. <p>Localization variables that are no longer used in PDF processing have been deprecated and will be removed in an
  83. upcoming release. PDF customization plug-ins that make use of these variables should plan to refactor
  84. accordingly:
  85. <ul>
  86. <li>Back button title</li>
  87. <li>Contents button title</li>
  88. <li>Forward button title</li>
  89. <li>Index button title</li>
  90. <li>Index multiple entries separator</li>
  91. <li>Main page button title</li>
  92. <li>Next page button title</li>
  93. <li>Online help prefix</li>
  94. <li>Online Help Search Method And</li>
  95. <li>Online Help Search Method Field</li>
  96. <li>Online Help Search Method Or</li>
  97. <li>Previous page button title</li>
  98. <li>Search button title</li>
  99. <li>Search Case Sensitive Switch</li>
  100. <li>Search Excluded Stop Words Message</li>
  101. <li>Search Highlight Switch</li>
  102. <li>Search index button title</li>
  103. <li>Search index field title</li>
  104. <li>Search index next button title</li>
  105. <li>Search Search Give No Results Message</li>
  106. <li>Search Search in Progress Message</li>
  107. <li>Search Stopped Message</li>
  108. <li>Search text button title</li>
  109. <li>Search text field title</li>
  110. <li>Search title</li>
  111. <li>Search Whole Words Switch</li>
  112. <li>Untitled section</li>
  113. </ul>
  114. </p>
  115. <note>Most of these variables were never used by the PDF process, and most were not supported (or localized) for
  116. any language other than English.</note>
  117. </section>
  118. <section>
  119. <title>Deprecated properties and targets</title>
  120. <p>The following Ant properties have been deprecated:
  121. <ul>
  122. <li><parmname>conreffile</parmname></li>
  123. </ul>
  124. </p>
  125. <p>The following preprocessing targets have been deprecated:
  126. <ul>
  127. <li><parmname>conref-check</parmname></li>
  128. <li><parmname>coderef</parmname></li>
  129. </ul>
  130. </p>
  131. </section>
  132. <section>
  133. <title>Pre-processing</title>
  134. <p id="2207">The order of the <codeph>chunk</codeph> and <codeph>move-meta-entries</codeph> pre-processing stages
  135. has been switched so that <codeph>chunk</codeph> comes first. This ensures that metadata is properly pulled or
  136. pushed into the chunked version of DITA topics. </p>
  137. </section>
  138. <section>
  139. <title>Generating error messages</title>
  140. <p>Previously, the XSLT <codeph>output-message</codeph> named template for generating error messages combined a
  141. global variable and two parameters to determine the actual message ID. This function has been updated to use a
  142. single <codeph>id</codeph> variable that contains the entire message ID.</p>
  143. <p>Plug-ins that make use of the <codeph>output-message</codeph> function should be updated to use the single
  144. <codeph>id</codeph> variable, as
  145. in:<codeblock outputclass="language-xml normalize-space show-line-numbers show-whitespace">&lt;xsl:call-template name="output-message">
  146. &lt;xsl:with-param name="id" select="'FULLMESSAGENUMBER'"/>
  147. &lt;xsl:with-param name="msgparams">optional-message-parameters&lt;/xsl:with-param>
  148. &lt;/xsl:call-template></codeblock>
  149. </p>
  150. </section>
  151. </refbody>
  152. </reference>