dita2tocjs.dita 1.8 KB

12345678910111213141516171819202122232425262728293031323334
  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="dita2tocjs" xml:lang="en-US">
  5. <title>TocJS</title>
  6. <shortdesc>The <option>tocjs</option> transformation generates XHTML output, a frameset, and a JavaScript-based table
  7. of contents with expandable and collapsible entries. The transformation was originally created by Shawn McKenzie as
  8. a plug-in and was added to the default distribution in DITA-OT release 1.5.4.</shortdesc>
  9. <prolog>
  10. <metadata>
  11. <keywords>
  12. <indexterm>transformations<indexterm>TocJS</indexterm></indexterm>
  13. <indexterm>TocJS<index-see-also>transformations</index-see-also></indexterm>
  14. <indexterm>XHTML</indexterm>
  15. <indexterm>plug-ins<indexterm>dita2tocjs</indexterm></indexterm>
  16. <indexterm>dita2tocjs</indexterm>
  17. </keywords>
  18. </metadata>
  19. </prolog>
  20. <conbody>
  21. <p>The <option>tocjs</option> transformation was updated so that it produces XHTML output and uses a default
  22. frameset.</p>
  23. <p>To run the TocJS transformation, set the <parmname>transtype</parmname> parameter to <option>tocjs</option>, or
  24. pass the <parmname>--format</parmname>=<option>tocjs</option> option to the <cmdname>dita</cmdname> command
  25. line.</p>
  26. <codeblock><filepath conref="../resources/conref-task.dita#ID/dita-cmd"/> <parmname>--input</parmname>=<varname>input-file</varname> <parmname>--format</parmname>=<option>tocjs</option></codeblock>
  27. <p>where:</p>
  28. <ul>
  29. <li conref="../resources/conref-task.dita#ID/novice-variables-1"
  30. conrefend="../resources/conref-task.dita#ID/novice-variables-2"/>
  31. </ul>
  32. </conbody>
  33. </concept>