migrating-to-3.3.dita 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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-3.3">
  5. <title>Migrating to release 3.3</title>
  6. <titlealts>
  7. <navtitle>To 3.3</navtitle>
  8. </titlealts>
  9. <shortdesc>DITA-OT 3.3 includes <ph id="summary">new attribute sets for HTML5 customization, support for custom
  10. integration processing, rotated table cells in PDF output, and hazard statements in HTML output</ph>.</shortdesc>
  11. <prolog>
  12. <metadata>
  13. <keywords>
  14. <indexterm>security</indexterm>
  15. <indexterm>TLS</indexterm>
  16. <indexterm>registry</indexterm>
  17. <indexterm>tables
  18. <indexterm>PDF</indexterm></indexterm>
  19. </keywords>
  20. </metadata>
  21. </prolog>
  22. <refbody>
  23. <section>
  24. <note>This topic provides a summary of changes in DITA-OT 3.3 that may require modifications to custom stylesheets
  25. or plug-ins. For more information on changes in this release, see the
  26. <xref keyref="3.3-release-notes"/>.</note>
  27. </section>
  28. <section>
  29. <title>Secure connections to the plug-in registry</title>
  30. <note type="attention">To ensure data integrity during the plug-in installation process, Transport Layer Security
  31. (TLS) will soon be required to access the plug-in registry. If you are using DITA-OT 3.3, 3.2, or 3.2.1 and are
  32. unable to upgrade to the latest version, modify the <codeph>registry</codeph> key in the
  33. <filepath>config/configuration.properties</filepath> file to switch the URI schema to
  34. <codeph>http<b>s</b>://</codeph>, so the entry reads <codeph>https://plugins.dita-ot.org/</codeph>.</note>
  35. <p>For more information, see
  36. <xref keyref="plugins-registry"/>.</p>
  37. </section>
  38. <section>
  39. <title>Base plug-in files moved to <filepath>plugins</filepath> directory</title>
  40. <indexterm><xmlelement>xsl:include</xmlelement></indexterm>
  41. <indexterm><xmlelement>xsl:import</xmlelement></indexterm>
  42. <p>Various XSLT files and other resources have been moved from the root of the DITA-OT installation directory to
  43. the base plug-in directory <filepath>plugins/org.dita.base</filepath>.</p>
  44. <note type="attention">There is no longer an <filepath>xsl/</filepath> directory in the installation root.</note>
  45. <p>If your plug-ins use the <codeph>plugin</codeph> URI scheme as recommended in the
  46. <xref keyref="plugin-coding-conventions"/>, this change should not require any modifications to custom plug-in
  47. code:</p>
  48. <lq>
  49. <p>In XSLT, use the <codeph>plugin</codeph> URI scheme in <xmlelement>xsl:import</xmlelement> and
  50. <xmlelement>xsl:include</xmlelement> to reference files in other plug-ins.</p>
  51. <p>Instead of:</p>
  52. <p><codeblock outputclass="language-xml">&lt;xsl:import href="../../org.dita.base/xsl/common/output-message.xsl"/></codeblock></p>
  53. <p>use:</p>
  54. <p><codeblock outputclass="language-xml">&lt;xsl:import href="plugin:org.dita.base:xsl/common/output-message.xsl"/></codeblock></p>
  55. <p>As with the plug-in directory property in Ant, this allows plug-ins to resolve to the correct directory even
  56. when a plug-in moves to a new location. The plug-in is referenced using the syntax
  57. <codeph>plugin:<varname>plugin-id</varname>:<varname>path/within/plugin/file.xsl</varname></codeph>.</p>
  58. </lq>
  59. </section>
  60. <section>
  61. <title>Relocated catalog</title>
  62. <indexterm><xmlelement>nextCatalog</xmlelement></indexterm>
  63. <indexterm>catalog
  64. <indexterm>location</indexterm></indexterm>
  65. <p>
  66. <ph id="catalog">Along with the other base plug-in files, the <filepath>catalog-dita.xml</filepath> file has
  67. been moved from the root of the DITA-OT installation directory to <filepath>plugins/org.dita.base</filepath>.
  68. External systems that rely on this catalog should be updated with the new location. Ant scripts and DITA-OT
  69. plug-ins should use the plug-in directory property to refer to the file as
  70. <codeph>${dita.plugin.org.dita.base.dir}/catalog-dita.xml</codeph>. A placeholder with a
  71. <xmlelement>nextCatalog</xmlelement> entry is provided in the original location for backwards compatibility,
  72. but this file may be removed in an upcoming release.</ph></p>
  73. <fig>
  74. <title>Legacy catalog placeholder content</title>
  75. <codeblock outputclass="language-xml">&lt;nextCatalog catalog="plugins/org.dita.base/catalog-dita.xml"/></codeblock>
  76. </fig>
  77. </section>
  78. <section>
  79. <title>Deprecated properties</title>
  80. <indexterm><xmlelement>template</xmlelement></indexterm>
  81. <indexterm>deprecated features
  82. <indexterm><filepath>plugin.xml</filepath>, <codeph>templates</codeph> key</indexterm></indexterm>
  83. <p><ph id="templates">The <codeph>templates</codeph> key in configuration properties has been deprecated in favor
  84. of the <xmlelement>template</xmlelement> element in <filepath>plugin.xml</filepath>.</ph></p>
  85. </section>
  86. <section>
  87. <title>New attribute sets for HTML5 customization</title>
  88. <indexterm>Bootstrap</indexterm>
  89. <indexterm>CSS
  90. <indexterm>HTML5</indexterm></indexterm>
  91. <indexterm>HTML5
  92. <indexterm>CSS</indexterm></indexterm>
  93. <p id="html5-att-sets">A series of new attribute sets has been added to the default HTML5 transformation to
  94. facilitate customization with additional ARIA roles, attributes, or CSS classes. Attribute sets are provided
  95. for:
  96. <ul>
  97. <li><codeph>article</codeph></li>
  98. <li><codeph>banner</codeph></li>
  99. <li><codeph>footer</codeph></li>
  100. <li><codeph>main</codeph></li>
  101. <li><codeph>navigation</codeph></li>
  102. <li><codeph>toc</codeph></li>
  103. </ul>If you have previously copied XSL templates (or template modes) to custom plug-ins only to add classes
  104. required by web frameworks such as Bootstrap or Foundation (or your company CSS), you may be able to simplify
  105. your customizations by using the new attribute sets instead of overriding the default templates.</p>
  106. </section>
  107. </refbody>
  108. </reference>