Integrate and test

Once you have obtained the latest tocjs plugin, you need to install and integrate it into the DITA Open Toolkit. Note that if you are using DITA-OT 1.5 or later, you can skip directly to step #3, because the tocjs plugin is already part of your install.

Obtain the latest version of the tocjs plugin. Unzip the plugin in your demo directory. This should give you a tocjs directory. From your base DITA directory, type:ant -f integrator.xml. You should see output similar to the following message: Buildfile: integrator.xml BUILD SUCCESSFUL Total time: 1 seconds The tocjs transtype should be registered with the Open Toolkit. Type: ant -f demo/tocjs/buildsample.xml sample2tocjs. The end of the message output should say: dita2tocjs: BUILD SUCCESSFUL Total time: 6 seconds Open demo/tocjs/out/sample/frameset.html in a browser. This documentation should be displayed in a frameset that includes a JavaScript TOC in the left pane.