lwdita-input.dita 5.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
  3. <!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
  4. <topic id="lwdita-input">
  5. <title>Preview support for Lightweight DITA</title>
  6. <titlealts>
  7. <navtitle>Lightweight DITA</navtitle>
  8. </titlealts>
  9. <shortdesc>DITA-OT provides preview support for the authoring formats proposed for
  10. <xref keyref="lwdita"/>, or “<term>LwDITA</term>”. The XDITA, MDITA and HDITA formats are alternative
  11. representations of DITA content in XML, Markdown and HTML5.</shortdesc>
  12. <prolog>
  13. <metadata>
  14. <keywords>
  15. <indexterm><xmlelement>topicref</xmlelement></indexterm>
  16. <indexterm><xmlatt>format</xmlatt></indexterm>
  17. <indexterm>authoring formats<indexterm>Lightweight DITA</indexterm></indexterm>
  18. <indexterm>metadata<indexterm>Lightweight DITA</indexterm></indexterm>
  19. <indexterm>DITA 1.3<indexterm>Lightweight DITA</indexterm></indexterm>
  20. </keywords>
  21. </metadata>
  22. </prolog>
  23. <body>
  24. <note type="attention">Since
  25. <xref keyref="lwdita"/> has not yet been released as a formal specification, the implementation for XDITA, MDITA
  26. and HDITA authoring formats is subject to change. Future versions of DITA Open Toolkit will be updated as LwDITA
  27. evolves.</note>
  28. <section>
  29. <title>XDITA</title>
  30. <p>XDITA is the LwDITA authoring format that uses XML to structure information. XDITA is a subset of DITA, with
  31. new multimedia element types added to support interoperability with HTML5. XDITA is designed for users who want
  32. to write DITA content but who do not want (or need) the full power of DITA.</p>
  33. <p>The XDITA parser included in the <codeph>org.lwdita</codeph> plug-in provides preliminary support for XDITA
  34. maps and XDITA topics.</p>
  35. <p>To apply XDITA-specific processing to topics in an XDITA map or a full DITA 1.3 map, set the
  36. <xmlatt>format</xmlatt> attribute on a <xmlelement>topicref</xmlelement> to <codeph>xdita</codeph>:</p>
  37. <p>
  38. <codeblock outputclass="language-xml normalize-space show-line-numbers show-whitespace">&lt;map>
  39. &lt;topicref href="xdita-topic.xml" <b>format="xdita"</b>/>
  40. &lt;/map></codeblock>
  41. </p>
  42. <note type="tip">For examples of cross-format content sharing between topics in XDITA, HDITA, extended-profile
  43. MDITA, and DITA 1.3, see the LwDITA sample files in the DITA-OT installation directory under
  44. <filepath>plugins/org.oasis-open.xdita.v0_2_2/samples</filepath>.</note>
  45. </section>
  46. <section>
  47. <title>MDITA</title>
  48. <p>MDITA is the LwDITA authoring format based on Markdown. It is designed for users who want to write structured
  49. content with the minimum of overhead, but who also want to take advantage of the reuse mechanisms associated
  50. with the DITA standard and the multi-channel publishing afforded by standard DITA tooling.</p>
  51. <p>Recent proposals for LwDITA include two profiles for authoring MDITA topics:</p>
  52. <ul>
  53. <li>The “<term>Core profile</term>” is based on
  54. <xref keyref="gfm-spec"/> and includes elements that are common to many other Markdown implementations.</li>
  55. <li>The “<term>Extended profile</term>” borrows additional features from other flavors of Markdown to represent
  56. a broader range of DITA content with existing plain-text syntax conventions.</li>
  57. </ul>
  58. <p>The Markdown DITA parser included in the <codeph>org.lwdita</codeph> plug-in provides preliminary support for
  59. these profiles and additional Markdown constructs as described in the syntax reference.</p>
  60. <p>To apply LwDITA-specific processing to Markdown topics, set the <xmlatt>format</xmlatt> attribute to
  61. <codeph>mdita</codeph>:</p>
  62. <p>
  63. <codeblock outputclass="language-xml normalize-space show-line-numbers show-whitespace">&lt;map>
  64. &lt;topicref href="mdita-topic.md" <b>format="mdita"</b>/>
  65. &lt;/map></codeblock>
  66. </p>
  67. <p>In this case, the first paragraph in the topic will be treated as a short description, for example, and
  68. additional metadata can be specified for the topic via a YAML front matter block.</p>
  69. <note>Setting the <xmlatt>format</xmlatt> attribute to <codeph>mdita</codeph> triggers stricter parsing than the
  70. more lenient document parsing approach that is applied to <codeph>markdown</codeph> documents.</note>
  71. <note type="attention">The MDITA map format is not yet supported. To include Markdown content in publications, use
  72. an XDITA map or a DITA 1.3 map.</note>
  73. </section>
  74. <section>
  75. <title>HDITA</title>
  76. <p>HDITA is the LwDITA authoring format based on HTML5, which is intended to support structured content authoring
  77. with tools designed for HTML authoring. HDITA also uses custom data attributes to provide interoperability with
  78. DITA.</p>
  79. <p>The HDITA parser included in the <codeph>org.lwdita</codeph> plug-in provides preliminary support for these
  80. constructs.</p>
  81. <p>To apply LwDITA-specific processing to HTML topics, set the <xmlatt>format</xmlatt> attribute to
  82. <codeph>hdita</codeph>:</p>
  83. <p>
  84. <codeblock outputclass="language-xml normalize-space show-line-numbers show-whitespace">&lt;map>
  85. &lt;topicref href="hdita-topic.html" <b>format="hdita"</b>/>
  86. &lt;/map></codeblock>
  87. </p>
  88. <note type="attention">The HDITA map format is not yet supported. To include HDITA content, use an XDITA map or a
  89. DITA 1.3 map.</note>
  90. </section>
  91. </body>
  92. </topic>