dita2xhtml.dita 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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="dita2xhtml" xml:lang="en-US">
  5. <title>XHTML</title>
  6. <shortdesc>The <option>xhtml</option> transformation generates XHTML output and a table of contents (TOC) file. This
  7. was the first transformation created for DITA Open Toolkit, and originally served as the basis for all HTML-based
  8. transformations.</shortdesc>
  9. <prolog>
  10. <metadata>
  11. <keywords>
  12. <indexterm>languages<indexterm>right-to-left</indexterm></indexterm>
  13. <indexterm>transformations<indexterm>XHTML</indexterm></indexterm>
  14. <indexterm>XHTML<index-see-also>transformations</index-see-also></indexterm>
  15. <indexterm>HTML</indexterm>
  16. <indexterm>plug-ins<indexterm>dita2xhtml</indexterm></indexterm>
  17. <indexterm>dita2xhtml</indexterm>
  18. <indexterm>CSS<indexterm>XHTML</indexterm></indexterm>
  19. <indexterm>table of contents<indexterm>XHTML</indexterm></indexterm>
  20. </keywords>
  21. </metadata>
  22. </prolog>
  23. <conbody>
  24. <p>The XHTML output is always associated with the default DITA-OT CSS file (<filepath>commonltr.css</filepath> or
  25. <filepath>commonrtl.css</filepath> for right-to-left languages). You can use toolkit parameters to add a custom
  26. style sheet to override the default styles.</p>
  27. <p>To run the XHTML transformation, set the <parmname>transtype</parmname> parameter to <option>xhtml</option>, or
  28. pass the <parmname>--format</parmname>=<option>xhtml</option> option to the <cmdname>dita</cmdname> command
  29. line.</p>
  30. <codeblock><filepath conref="../resources/conref-task.dita#ID/dita-cmd"/> <parmname>--input</parmname>=<varname>input-file</varname> <parmname>--format</parmname>=<option>xhtml</option></codeblock>
  31. <p>where:</p>
  32. <ul>
  33. <li conref="../resources/conref-task.dita#ID/novice-variables-1"
  34. conrefend="../resources/conref-task.dita#ID/novice-variables-2"/>
  35. </ul>
  36. </conbody>
  37. </concept>