migrating-to-2.1.dita 7.1 KB

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