migrating-to-2.1.dita 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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.1">
  5. <title>Migrating to release 2.1</title>
  6. <titlealts>
  7. <navtitle>To 2.1</navtitle>
  8. </titlealts>
  9. <shortdesc>In DITA-OT 2.1, the <codeph>insertVariable</codeph> template was deprecated for PDF transformations and
  10. should be replaced with the <codeph>getVariable</codeph> template. Various <codeph>dita.<b>out.</b>map.*</codeph>
  11. targets have been deprecated in favor of updated <codeph>dita.map.*</codeph> equivalents.</shortdesc>
  12. <prolog>
  13. <metadata>
  14. <keywords>
  15. <indexterm><xmlelement>ph</xmlelement></indexterm>
  16. <indexterm><xmlelement>keyword</xmlelement></indexterm>
  17. <indexterm><xmlelement>cite</xmlelement></indexterm>
  18. <indexterm><xmlelement>dt</xmlelement></indexterm>
  19. <indexterm><xmlelement>term</xmlelement></indexterm>
  20. <indexterm><xmlelement>indexterm</xmlelement></indexterm>
  21. <indexterm><xmlatt>href</xmlatt></indexterm>
  22. <indexterm>deprecated features
  23. <indexterm><codeph>help</codeph> build target</indexterm></indexterm>
  24. <indexterm>deprecated features
  25. <indexterm><parmname>imagefile</parmname></indexterm></indexterm>
  26. <indexterm>deprecated features
  27. <indexterm><codeph>image.list</codeph></indexterm></indexterm>
  28. <indexterm>deprecated features
  29. <indexterm><parmname>htmlfile</parmname></indexterm></indexterm>
  30. <indexterm>deprecated features
  31. <indexterm><codeph>html.list</codeph></indexterm></indexterm>
  32. <indexterm>deprecated features
  33. <indexterm><codeph>copy-subsidiary</codeph> target</indexterm></indexterm>
  34. <indexterm>deprecated features
  35. <indexterm><codeph>copy-subsidiary-check</codeph> target</indexterm></indexterm>
  36. <indexterm>deprecated features
  37. <indexterm><parmname>depend.preprocess.copy-subsidiary.pre</parmname> extension points</indexterm></indexterm>
  38. <indexterm>deprecated features
  39. <indexterm>PDF, <codeph>insertVariable</codeph> template</indexterm></indexterm>
  40. <indexterm>deprecated features
  41. <indexterm><varname>keydefs</varname> variable</indexterm></indexterm>
  42. <indexterm>deprecated features
  43. <indexterm><parmname>KEYREF-FILE</parmname></indexterm></indexterm>
  44. <indexterm>deprecated features
  45. <indexterm><parmname>displaytext</parmname></indexterm></indexterm>
  46. <indexterm>deprecated features
  47. <indexterm><parmname>keys</parmname></indexterm></indexterm>
  48. <indexterm>deprecated features
  49. <indexterm><parmname>target</parmname></indexterm></indexterm>
  50. <indexterm>deprecated features
  51. <indexterm><codeph>pull-in-title</codeph> template</indexterm></indexterm>
  52. <indexterm>deprecated features
  53. <indexterm><codeph>common-processing-phrase-within-link</codeph> template</indexterm></indexterm>
  54. <indexterm>deprecated features
  55. <indexterm><codeph>dita.out.map.xhtml.toc</codeph> target</indexterm></indexterm>
  56. <indexterm>deprecated features
  57. <indexterm><codeph>dita.out.map.htmlhelp.*</codeph> targets</indexterm></indexterm>
  58. <indexterm>deprecated features
  59. <indexterm><codeph>dita.out.map.javahelp.*</codeph> targets</indexterm></indexterm>
  60. <indexterm>deprecated features
  61. <indexterm><parmname>args.odt.img.embed</parmname></indexterm></indexterm>
  62. </keywords>
  63. </metadata>
  64. </prolog>
  65. <refbody>
  66. <section>
  67. <note>This topic provides a summary of changes in DITA-OT 2.1 that may require modifications to custom stylesheets
  68. or plug-ins. For more information on changes in this release, see the
  69. <xref keyref="2.1-release-notes"/>.</note>
  70. </section>
  71. <section>
  72. <p>The custom<systemoutput>FileUtils</systemoutput> code used to handle input and output in earlier versions of
  73. DITA-OT has been replaced with the
  74. <xref href="http://commons.apache.org/proper/commons-io/" format="html" scope="external">Apache Commons
  75. IO</xref> utilities library. </p>
  76. </section>
  77. <section>
  78. <title>Deprecated targets</title>
  79. <p>The following build targets have been deprecated and will be removed in an upcoming release:</p>
  80. <ul>
  81. <li>The <codeph>help</codeph> target that includes a reference to the current DITA-OT version during the build
  82. process.</li>
  83. </ul>
  84. </section>
  85. <section>
  86. <title>Preprocessing</title>
  87. <p>The following Ant properties and generated list files have been deprecated:</p>
  88. <ul>
  89. <li><parmname>imagefile</parmname> property and <codeph>image.list</codeph> file</li>
  90. <li><parmname>htmlfile</parmname> property and <codeph>html.list</codeph> file</li>
  91. </ul>
  92. <p>The following pre-processing targets and extension points have been deprecated:</p>
  93. <ul>
  94. <li>The <codeph>copy-subsidiary</codeph> target used to copy subsidiary files</li>
  95. <li>The <codeph>copy-subsidiary-check</codeph> target used to check for subsidiary files</li>
  96. <li>The <parmname>depend.preprocess.copy-subsidiary.pre</parmname> extension point used to insert an Ant target
  97. before the <codeph>copy-subsidiary</codeph> step in the pre-processing stage.</li>
  98. </ul>
  99. <p>A new<systemoutput>dita.parser</systemoutput> extension point has been added to allow plug-ins to contribute a
  100. custom parser for DITA files. If a custom DITA parser is defined, the preprocessing routines will use it during
  101. the gen-list and debug-filter stages to output DITA XML.</p>
  102. </section>
  103. <section>
  104. <title>PDF</title>
  105. <p>The following template has been deprecated:</p>
  106. <ul>
  107. <li><codeph>insertVariable</codeph>, use <codeph>getVariable</codeph> instead</li>
  108. </ul>
  109. <p>Calls to that template will result in warnings in the build log.</p>
  110. <p>To update your plug-in, make the following changes:</p>
  111. <codeblock outputclass="language-xml normalize-space show-line-numbers show-whitespace">&lt;xsl:call-template name="<line-through>insertVariable</line-through><b>getVariable</b>">
  112. &lt;xsl:with-param name="<line-through>theVariableID</line-through><b>id</b>" select="<varname>var-id</varname>"/>
  113. &lt;xsl:with-param name="<line-through>theParameters</line-through><b>params</b>">
  114. <varname>params</varname>
  115. &lt;/xsl:with-param>
  116. &lt;/xsl:call-template></codeblock>
  117. </section>
  118. <section>
  119. <title>HTML-based output formats</title>
  120. <draft-comment author="Roger" time="2016-04-03 18:30">
  121. <p>Further information required on recommended replacements for deprecated items.</p>
  122. </draft-comment>
  123. <p>The <varname>keydefs</varname> variable and the following XSL parameters have been deprecated:
  124. <ul>
  125. <li><parmname>KEYREF-FILE</parmname></li>
  126. <li><parmname>displaytext</parmname></li>
  127. <li><parmname>keys</parmname></li>
  128. <li><parmname>target</parmname></li>
  129. </ul>
  130. </p>
  131. <p>The following template modes have been deprecated:
  132. <ul>
  133. <li><codeph>pull-in-title</codeph></li>
  134. <li><codeph>common-processing-phrase-within-link</codeph></li>
  135. </ul>
  136. </p>
  137. </section>
  138. <section>
  139. <title>XHTML</title>
  140. <indexterm>keydef</indexterm>
  141. <p>The <codeph>dita.<b>out.</b>map.xhtml.toc</codeph> target has been deprecated and should be replaced with the
  142. updated <codeph>dita.map.xhtml.toc</codeph> equivalent.</p>
  143. <p>Keydef processing has been removed from the XHTML rendering code. Keys are now resolved in one preprocessing
  144. step, whereas in earlier versions of DITA-OT, the XHTML code returned to the <filepath>keydef.xml</filepath>
  145. file to look up targets for phrase elements and pull in text when needed.</p>
  146. <p>This change affects non-linking elements that can’t take <xmlatt>href</xmlatt> attributes, such as
  147. <xmlelement>ph</xmlelement>, <xmlelement>keyword</xmlelement>, <xmlelement>cite</xmlelement>,
  148. <xmlelement>dt</xmlelement>, <xmlelement>term</xmlelement>, and <xmlelement>indexterm</xmlelement> (when
  149. <codeph>$INDEXSHOW</codeph> is active).</p>
  150. </section>
  151. <section>
  152. <title>HTMLHelp</title>
  153. <p>The <codeph>dita.<b>out.</b>map.htmlhelp.*</codeph> targets have been deprecated and should be replaced with
  154. the updated <codeph>dita.map.htmlhelp.*</codeph> equivalents:</p>
  155. <ul>
  156. <li><codeph>dita.out.map.htmlhelp.hhp</codeph>, use <codeph>dita.map.htmlhelp.hhp</codeph> instead</li>
  157. <li><codeph>dita.out.map.htmlhelp.hhc</codeph>, use <codeph>dita.map.htmlhelp.hhc</codeph> instead</li>
  158. <li><codeph>dita.out.map.htmlhelp.hhk</codeph>, use <codeph>dita.map.htmlhelp.hhk</codeph> instead</li>
  159. </ul>
  160. </section>
  161. <section>
  162. <title>JavaHelp</title>
  163. <indexterm>JavaHelp</indexterm>
  164. <p>The <codeph>dita.<b>out.</b>map.javahelp.*</codeph> targets have been deprecated and should be replaced with
  165. the updated <codeph>dita.map.javahelp.*</codeph> equivalents:</p>
  166. <ul>
  167. <li><codeph>dita.out.map.javahelp.toc</codeph>, use <codeph>dita.map.javahelp.toc</codeph> instead</li>
  168. <li><codeph>dita.out.map.javahelp.map</codeph>, use <codeph>dita.map.javahelp.map</codeph> instead</li>
  169. <li><codeph>dita.out.map.javahelp.set</codeph>, use <codeph>dita.map.javahelp.set</codeph> instead</li>
  170. <li><codeph>dita.out.map.javahelp.index</codeph>, use <codeph>dita.map.javahelp.index</codeph> instead</li>
  171. </ul>
  172. </section>
  173. <section>
  174. <title>OpenDocument Text</title>
  175. <p>Support for the <parmname>args.odt.img.embed</parmname> parameter has been removed from OpenDocument Text
  176. transformations. The previous default behavior was to embed images as Base64-encoded text, but editors do not
  177. use this as a default. Instead, office packages such as LibreOffice will convert embedded images into linked
  178. images on opening and saving an ODT file.</p>
  179. </section>
  180. </refbody>
  181. </reference>