dita2xhtml.dita 2.1 KB

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