implementation-dependent-features.dita 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. <refbody>
  11. <section id="section_jla_oqn_qc">
  12. <title>Chunking</title>
  13. <p>DITA content can be divided or merged into new output documents in different ways, depending on the value of
  14. the <xmlatt>chunk</xmlatt> attribute.</p>
  15. <p>DITA-OT supports the following chunking methods:</p>
  16. <ul>
  17. <li>select-topic</li>
  18. <li>select-document</li>
  19. <li>select-branch</li>
  20. <li>by-topic</li>
  21. <li>by-document</li>
  22. <li>to-content</li>
  23. <li>to-navigation.</li>
  24. </ul>
  25. <p>When no chunk attribute values are given, no chunking is performed.</p>
  26. <note>For HTML-based transformation types, this is effectively equivalent to select-document and by-document
  27. defaults.</note>
  28. <p>Error recovery:</p>
  29. <ul>
  30. <li>When two tokens from the same category are used, no error or warning is thrown.<draft-comment>This violates
  31. DITA 1.2 spec.</draft-comment></li>
  32. <li>When an unrecognized chunking method is used, no error or warning is thrown.</li>
  33. </ul>
  34. </section>
  35. <section id="section_zaa_bgs_qc">
  36. <title>Filtering</title>
  37. <p>Error recovery:</p>
  38. <ul>
  39. <li>When there are multiple <xmlelement>revprop</xmlelement> elements with the same <xmlatt>val</xmlatt>
  40. attribute, no error or warning is thrown</li>
  41. <li>When multiple prop elements define a duplicate attribute and value combination, attribute default, or
  42. fall-back behavior, the <msgnum>DOTJ007E</msgnum> error is thrown.</li>
  43. </ul>
  44. </section>
  45. <section id="section_kjq_egs_qc">
  46. <title>Debugging attributes</title>
  47. <p>The debug attributes are populated as follows:</p>
  48. <dl>
  49. <dlentry>
  50. <dt>xtrf</dt>
  51. <dd>The XML trace filename is used to store the absolute system path of the original source document.</dd>
  52. </dlentry>
  53. <dlentry>
  54. <dt>xtrc</dt>
  55. <dd>The XML trace counter stores an element counter with the following format:
  56. <codeblock>element-name ":" integer-counter ";" line-number ":" column-number</codeblock></dd>
  57. </dlentry>
  58. </dl>
  59. </section>
  60. <section id="section_dco_qgs_qc">
  61. <title>Image scaling</title>
  62. <p>If both height and width attributes are given, the image is scaled non-uniformly.</p>
  63. <p>If the scale attribute is not an unsigned integer, no error or warning is thrown during preprocessing.</p>
  64. </section>
  65. <section>
  66. <title>Map processing</title>
  67. <p>When a <xmlelement>topicref</xmlelement> element that references a map contains child
  68. <xmlelement>topicref</xmlelement> elements, the <msgnum>DOTX068W</msgnum> error is thrown and the child
  69. <xmlelement>topicref</xmlelement> elements are ignored. </p>
  70. </section>
  71. <section id="section_h3h_jsx_1h">
  72. <title>Link processing</title>
  73. <p>When the value of a hyperlink reference in the <xmlatt>href</xmlatt> attribute is not a valid URI reference,
  74. the <msgnum>DOTJ054E</msgnum> error is thrown. Depending on the <xref
  75. href="../parameters/parameters-base.dita#base/processing-mode">processing-mode</xref> setting, error recovery
  76. may be attempted.</p>
  77. </section>
  78. <section>
  79. <title>Copy-to processing</title>
  80. <p>When the <xmlatt>copy-to</xmlatt> attribute is specified on a <xmlelement>topicref</xmlelement>, the content of
  81. the <xmlelement>shortdesc</xmlelement> element is not used to override the short description of the topic.</p>
  82. </section>
  83. <section>
  84. <title>Coderef processing</title>
  85. <p>When <xmlelement>coderef</xmlelement> elements are used within code blocks to reference external files with
  86. literal code samples, the system default character set is used as the target file encoding unless a different
  87. character set is explicitly defined via the mechanisms described under <xref
  88. href="extended-functionality.dita#code-reference/coderef-charset"/>.</p>
  89. </section>
  90. </refbody>
  91. </reference>