migrating-to-2.1.dita 10 KB

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