implementation-dependent-features.dita 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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="implementation-dependent-features">
  5. <title>Implementation-dependent features</title>
  6. <shortdesc>For certain features, the DITA specification allows conforming processors to choose between different
  7. implementation alternatives. In these cases, there may be differences in behavior when DITA content is handled by
  8. different processors. DITA-OT supports implementation-specific features by applying one or more of the permissible
  9. processing approaches.</shortdesc>
  10. <prolog>
  11. <metadata>
  12. <keywords> </keywords>
  13. </metadata>
  14. </prolog>
  15. <refbody>
  16. <section id="section_jla_oqn_qc">
  17. <title>Chunking</title>
  18. <div outputclass="div-index">
  19. <indexterm><xmlatt>chunk</xmlatt><indexterm>supported methods</indexterm></indexterm>
  20. <indexterm><xmlatt>chunk</xmlatt><indexterm>error recovery</indexterm></indexterm>
  21. </div>
  22. <p>DITA content can be divided or merged into new output documents in different ways, depending on the value of
  23. the <xmlatt>chunk</xmlatt> attribute.</p>
  24. <p>DITA-OT supports the following chunking methods:</p>
  25. <ul>
  26. <li>select-topic</li>
  27. <li>select-document</li>
  28. <li>select-branch</li>
  29. <li>by-topic</li>
  30. <li>by-document</li>
  31. <li>to-content</li>
  32. <li>to-navigation.</li>
  33. </ul>
  34. <p>When no chunk attribute values are given, no chunking is performed.</p>
  35. <note>For HTML-based transformation types, this is effectively equivalent to select-document and by-document
  36. defaults.</note>
  37. <p>Error recovery:</p>
  38. <ul>
  39. <li>When two tokens from the same category are used, no error or warning is thrown.<draft-comment>This violates
  40. DITA 1.2 spec.</draft-comment></li>
  41. <li>When an unrecognized chunking method is used, no error or warning is thrown.</li>
  42. </ul>
  43. </section>
  44. <section id="section_zaa_bgs_qc">
  45. <title>Filtering</title>
  46. <div outputclass="div-index">
  47. <indexterm><xmlelement>revprop</xmlelement></indexterm>
  48. <indexterm><xmlatt>val</xmlatt></indexterm>
  49. <indexterm>filters<indexterm>duplicate conditions</indexterm></indexterm>
  50. </div>
  51. <p>Error recovery:</p>
  52. <ul>
  53. <li>When there are multiple <xmlelement>revprop</xmlelement> elements with the same <xmlatt>val</xmlatt>
  54. attribute, no error or warning is thrown</li>
  55. <li>When multiple prop elements define a duplicate attribute and value combination, attribute default, or
  56. fall-back behavior, the <msgnum>DOTJ007W</msgnum> warning is thrown.</li>
  57. </ul>
  58. </section>
  59. <section id="section_kjq_egs_qc">
  60. <title>Debugging attributes</title>
  61. <div outputclass="div-index">
  62. <indexterm>debugging<indexterm>attributes</indexterm><indexterm>xtrf</indexterm><indexterm>xtrc</indexterm></indexterm>
  63. <indexterm>xtrf</indexterm>
  64. <indexterm>xtrc</indexterm>
  65. </div>
  66. <p>The debug attributes are populated as follows:</p>
  67. <dl>
  68. <dlentry>
  69. <dt>xtrf</dt>
  70. <dd>The XML trace filename is used to store the absolute system path of the original source document.</dd>
  71. </dlentry>
  72. <dlentry>
  73. <dt>xtrc</dt>
  74. <dd>The XML trace counter stores an element counter with the following format:
  75. <codeblock>element-name ":" integer-counter ";" line-number ":" column-number</codeblock></dd>
  76. </dlentry>
  77. </dl>
  78. </section>
  79. <section id="section_dco_qgs_qc">
  80. <title>Image scaling</title>
  81. <indexterm>images<indexterm>scaling</indexterm></indexterm>
  82. <p>If both height and width attributes are given, the image is scaled non-uniformly.</p>
  83. <p>If the scale attribute is not an unsigned integer, no error or warning is thrown during preprocessing.</p>
  84. </section>
  85. <section>
  86. <title>Map processing</title>
  87. <div outputclass="div-index">
  88. <indexterm><xmlelement>topicref</xmlelement></indexterm>
  89. <indexterm>map processing</indexterm>
  90. </div>
  91. <p>When a <xmlelement>topicref</xmlelement> element that references a map contains child
  92. <xmlelement>topicref</xmlelement> elements, the <msgnum>DOTX068W</msgnum> error is thrown and the child
  93. <xmlelement>topicref</xmlelement> elements are ignored. </p>
  94. </section>
  95. <section id="section_h3h_jsx_1h">
  96. <title>Link processing</title>
  97. <div outputclass="div-index">
  98. <indexterm><xmlatt>href</xmlatt></indexterm>
  99. <indexterm>link processing</indexterm>
  100. </div>
  101. <p>When the value of a hyperlink reference in the <xmlatt>href</xmlatt> attribute is not a valid URI reference,
  102. the <msgnum>DOTJ054E</msgnum> error is thrown. Depending on the
  103. <xref href="../parameters/parameters-base.dita#base/processing-mode">processing-mode</xref> setting, error
  104. recovery may be attempted.</p>
  105. </section>
  106. <section>
  107. <title>Copy-to processing</title>
  108. <div outputclass="div-index">
  109. <indexterm><xmlelement>shortdesc</xmlelement></indexterm>
  110. <indexterm><xmlatt>copy-to</xmlatt></indexterm>
  111. </div>
  112. <p>When the <xmlatt>copy-to</xmlatt> attribute is specified on a <xmlelement>topicref</xmlelement>, the content of
  113. the <xmlelement>shortdesc</xmlelement> element is not used to override the short description of the topic.</p>
  114. </section>
  115. <section>
  116. <title>Coderef processing</title>
  117. <div outputclass="div-index">
  118. <indexterm><xmlelement>coderef</xmlelement></indexterm>
  119. <indexterm>encoding</indexterm>
  120. </div>
  121. <p>When <xmlelement>coderef</xmlelement> elements are used within code blocks to reference external files with
  122. literal code samples, the system default character set is used as the target file encoding unless a different
  123. character set is explicitly defined via the mechanisms described under
  124. <xref href="extended-functionality.dita#code-reference/coderef-charset"/>.</p>
  125. </section>
  126. </refbody>
  127. </reference>