docs-dita-features.dita 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
  3. <!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
  4. <concept id="ID">
  5. <title>DITA features in the documentation</title>
  6. <titlealts>
  7. <navtitle>DITA features in docs</navtitle>
  8. </titlealts>
  9. <shortdesc>DITA Open Toolkit uses various recent DITA features in the project documentation.</shortdesc>
  10. <prolog>
  11. <metadata>
  12. <keywords>
  13. <indexterm><xmlatt>audience</xmlatt></indexterm>
  14. <indexterm><xmlatt>orient</xmlatt></indexterm>
  15. <indexterm>profiling</indexterm>
  16. <indexterm>branch filters</indexterm>
  17. <indexterm>Antenna House
  18. <indexterm>DITA XML mention domain</indexterm></indexterm>
  19. <indexterm>DITA 1.3
  20. <indexterm>XML mention domain</indexterm></indexterm>
  21. </keywords>
  22. </metadata>
  23. </prolog>
  24. <conbody>
  25. <p>The
  26. <xref href="https://github.com/dita-ot/docs" format="html" scope="external">source files</xref> for the DITA-OT
  27. documentation include examples of the following DITA features (among others):</p>
  28. <ul>
  29. <li>subjectScheme classification for controlling available attributes</li>
  30. <li>profiling and branch filtering (novice/expert content)</li>
  31. <li>extending topics with conref push</li>
  32. <li>keys and key references</li>
  33. <li>XML mention domain</li>
  34. </ul>
  35. <section>
  36. <title>Subject schemes </title>
  37. <p>Various topics, sections and elements in the docs are profiled by audience:</p>
  38. <p><codeblock outputclass="language-xml normalize-space show-line-numbers show-whitespace"><coderef href="../resources/conref-task.dita#token=excerpt-variables,end-excerpt"/></codeblock></p>
  39. <p>An “audience” subject scheme controls the values that are available for the <xmlatt>audience</xmlatt>
  40. attribute:</p>
  41. <p><codeblock outputclass="language-xml normalize-space show-line-numbers show-whitespace"><coderef href="../resources/subjectscheme.ditamap#token=excerpt-audience,end-excerpt"/></codeblock></p>
  42. </section>
  43. <section>
  44. <title>Branch filtering: re-using profiled content</title>
  45. </section>
  46. <section>
  47. <p><cite>Installing DITA-OT</cite> pulls a subset of the build description from <cite>using the
  48. <cmdname>dita</cmdname> command</cite>, filtered to display only content deemed suitable for novice users
  49. under
  50. <xref keyref="first-build-using-dita-command"/>:</p>
  51. <p><codeblock outputclass="language-xml normalize-space show-line-numbers show-whitespace"><coderef href="../topics/installing.ditamap#token=branch-filter,end-filtering"/></codeblock></p>
  52. <p>The same content appears later in
  53. <xref keyref="build-using-dita-command"/> with additional information on arguments, options and examples.</p>
  54. <p><codeblock outputclass="language-xml normalize-space show-line-numbers show-whitespace"><coderef href="../topics/publishing.ditamap#token=branch-filter,end-filtering"/></codeblock></p>
  55. </section>
  56. <section>
  57. <title>Conref push</title>
  58. </section>
  59. <section>
  60. <p>The docs build uses the conref push mechanism (with the <codeph>pushreplace</codeph>, <codeph>mark</codeph>,
  61. and <codeph>pushafter</codeph>
  62. <xref keyref="dita13-spec-conaction">conactions</xref>) to extend the parameter descriptions embedded in the
  63. default plug-ins:</p>
  64. <p><codeblock outputclass="language-xml normalize-space show-line-numbers show-whitespace"><coderef href="../parameters/ant-parameters-details.dita#token=excerpt-csspath,end-excerpt"/></codeblock></p>
  65. <p>The pushed content appears in the output after the default description. (See
  66. <xref keyref="parameters-base-html"/>.)</p>
  67. <note type="tip">You could also use the same mechanism to extend the documentation with custom information that
  68. applies only to your company’s toolkit distribution.</note>
  69. </section>
  70. <section>
  71. <title>Keys and key references</title>
  72. </section>
  73. <section>
  74. <p>The <codeph>key-definitions.ditamap</codeph> defines keys for version references, re-usable links, etc.</p>
  75. <p>This key definition defines the maintenance release version:</p>
  76. <p><codeblock outputclass="language-xml normalize-space"><coderef href="../resources/key-definitions.ditamap#token=excerpt-version,end-excerpt"/></codeblock></p>
  77. <p>In topics, the keyword is used in place of hard-coded version references:</p>
  78. <codeblock outputclass="language-xml">&lt;title&gt;DITA Open Toolkit &lt;keyword keyref="maintenance-version"/&gt; Release Notes&lt;/title&gt;</codeblock>
  79. </section>
  80. <section>
  81. <title>XML mention domain</title>
  82. </section>
  83. <section>
  84. <p>The docs use the
  85. <xref format="html"
  86. href="http://docs.oasis-open.org/dita/dita/v1.3/os/part3-all-inclusive/langRef/containers/xml-mention-domain.html#xml-mention-domain"
  87. scope="external">XML mention domain</xref> to mark up XML elements and attributes:</p>
  88. <codeblock outputclass="language-xml">&lt;li id="1777"&gt;
  89. DITA 1.3: Initial support has been added for the &lt;xmlatt&gt;orient&lt;/xmlatt&gt;
  90. attribute on &lt;xmlelement&gt;table&lt;/xmlelement&gt; elements. These changes allow
  91. Antenna House Formatter to render tables in landscape mode when the
  92. &lt;xmlatt&gt;orient&lt;/xmlatt&gt; attribute is set to &lt;option&gt;land&lt;/option&gt;. […]
  93. &lt;/li&gt;</codeblock>
  94. <p>When the toolkit generates output for the sample above:</p>
  95. <ul>
  96. <li>the XML element name is wrapped in angle brackets as <xmlelement>table</xmlelement>
  97. </li>
  98. <li>the attribute name is prefixed with an “at” sign as <xmlatt>orient</xmlatt></li>
  99. </ul>
  100. </section>
  101. </conbody>
  102. </concept>