dita2html5.dita 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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="dita2html5" xml:lang="en">
  5. <title>HTML5</title>
  6. <shortdesc>The <option>html5</option> transformation generates HTML5 output and a table of contents (TOC)
  7. file.</shortdesc>
  8. <prolog>
  9. <metadata>
  10. <keywords>
  11. <indexterm><xmlelement>nav</xmlelement></indexterm>
  12. <indexterm>languages
  13. <indexterm>right-to-left</indexterm></indexterm>
  14. <indexterm>HTML
  15. <index-see-also>HTML5</index-see-also></indexterm>
  16. <indexterm>HTML5
  17. <index-see-also>transformations</index-see-also></indexterm>
  18. <indexterm>transformations
  19. <indexterm>HTML5</indexterm></indexterm>
  20. <indexterm>plug-ins
  21. <indexterm>dita2html5</indexterm></indexterm>
  22. <indexterm>dita2html5</indexterm>
  23. <indexterm>CSS
  24. <indexterm>HTML5</indexterm></indexterm>
  25. <indexterm>HTML5
  26. <indexterm>CSS</indexterm></indexterm>
  27. <indexterm>table of contents
  28. <indexterm>HTML5</indexterm></indexterm>
  29. </keywords>
  30. </metadata>
  31. </prolog>
  32. <conbody>
  33. <p>The HTML5 output is always associated with the default DITA-OT CSS file (<filepath>commonltr.css</filepath> or
  34. <filepath>commonrtl.css</filepath> for right-to-left languages). You can use toolkit parameters to add a custom
  35. style sheet that overrides the default styles, or generate a <xmlelement>nav</xmlelement> element with a
  36. navigation TOC in topic pages.</p>
  37. <p>To run the HTML5 transformation, set the <parmname>transtype</parmname> parameter to <option>html5</option>, or
  38. pass the <parmname>--format</parmname>=<option>html5</option> option to the <cmdname>dita</cmdname> command
  39. line.</p>
  40. <codeblock><filepath conkeyref="conref-task/dita-cmd"/> <parmname>--input</parmname>=<varname>input-file</varname> <parmname>--format</parmname>=<option>html5</option></codeblock>
  41. <p>where:</p>
  42. <ul>
  43. <li conkeyref="conref-task/novice-variables-1"
  44. conrefend="../resources/conref-task.dita#ID/novice-variables-2"/>
  45. </ul>
  46. </conbody>
  47. </concept>