dita2html5.dita 2.2 KB

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