1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE html
|
---|
3 | PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
---|
4 | <html xml:lang="en-us" lang="en-us">
|
---|
5 | <head>
|
---|
6 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
---|
7 | <meta name="copyright" content="(C) Copyright 2005"/>
|
---|
8 | <meta name="DC.rights.owner" content="(C) Copyright 2005"/>
|
---|
9 | <meta name="DC.Type" content="task"/>
|
---|
10 | <meta name="DC.Title" content="Building output using the command-line tool"/>
|
---|
11 | <meta name="abstract" content="If you are unfamiliar with Ant, you can invoke the DITA Open Toolkit (DITA-OT) and build output from the command-line tool."/>
|
---|
12 | <meta name="description" content="If you are unfamiliar with Ant, you can invoke the DITA Open Toolkit (DITA-OT) and build output from the command-line tool."/>
|
---|
13 | <meta name="DC.Relation" scheme="URI" content="../readme/DITA-javacmd.html"/>
|
---|
14 | <meta name="DC.Relation" scheme="URI" content="../readme/command-line-tool.html"/>
|
---|
15 | <meta name="DC.Relation" scheme="URI" content="../readme/dita-ot_java_properties.html"/>
|
---|
16 | <meta name="DC.Format" content="XHTML"/>
|
---|
17 | <meta name="DC.Identifier" content="building-output-using-cl-tool"/>
|
---|
18 | <link rel="stylesheet" type="text/css" href="../commonltr.css"/>
|
---|
19 | <link rel="stylesheet" type="text/css" href="../dita-ot-doc.css"/>
|
---|
20 | <title>Building output using the command-line tool</title>
|
---|
21 | </head>
|
---|
22 | <body id="building-output-using-cl-tool">
|
---|
23 |
|
---|
24 |
|
---|
25 | <h1 class="title topictitle1">Building output using the command-line tool</h1>
|
---|
26 |
|
---|
27 |
|
---|
28 | <div class="body taskbody"><p class="shortdesc">If you are unfamiliar with Ant, you can invoke the DITA Open Toolkit (DITA-OT) and
|
---|
29 | build output from the command-line tool.</p>
|
---|
30 |
|
---|
31 | <div class="tasklabel"><h2 class="sectiontitle tasklabel">Procedure</h2></div><ol class="ol steps"><li class="li step stepexpand">
|
---|
32 | <span class="ph cmd">Run the <span class="ph filepath">startcmd</span> file that is applicable for your
|
---|
33 | operating system.</span>
|
---|
34 | <div class="itemgroup info">The <span class="ph filepath">startcmd.bat</span> and <span class="ph filepath">startcmd.sh</span>
|
---|
35 | files are in the directory where you installed the DITA-OT.</div>
|
---|
36 | </li>
|
---|
37 | <li class="li step stepexpand">
|
---|
38 | <span class="ph cmd">From the command prompt, issue the following command:</span>
|
---|
39 | <div class="itemgroup info"><pre class="pre codeblock"> java -jar lib/dost.jar /i:<var class="keyword varname">input-file</var> /transtype:<var class="keyword varname">transformation-type</var> /<var class="keyword varname">parameter-name</var>:<var class="keyword varname">value</var></pre>
|
---|
40 | where:<ul class="ul">
|
---|
41 | <li class="li"><var class="keyword varname">input-file</var> is the DITA map or DITA file that you want
|
---|
42 | to process.</li>
|
---|
43 |
|
---|
44 | <li class="li"><var class="keyword varname">transformation-type</var> is the transformation type.</li>
|
---|
45 |
|
---|
46 | <li class="li"><var class="keyword varname">parameter-name</var> is the name of an optional
|
---|
47 | parameter.</li>
|
---|
48 |
|
---|
49 | <li class="li"><var class="keyword varname">value</var> is an applicable value for the optional
|
---|
50 | parameter.</li>
|
---|
51 |
|
---|
52 | </ul>
|
---|
53 | </div>
|
---|
54 | <div class="itemgroup stepresult">If you do not specify an output directory,
|
---|
55 | by default, the DITA-OT writes the output to the
|
---|
56 | <span class="ph filepath"><var class="keyword varname">installation-directory</var>\out</span>
|
---|
57 | directory.</div>
|
---|
58 | </li>
|
---|
59 | </ol>
|
---|
60 |
|
---|
61 | <div class="example"><div class="tasklabel"><h2 class="sectiontitle tasklabel">Example</h2></div>
|
---|
62 | <div class="p">The following command generates XHTML output for the
|
---|
63 | <span class="ph filepath">sequence.ditamap</span> file and specifies the output is written
|
---|
64 | to the <span class="ph filepath">test</span>
|
---|
65 | directory<pre class="pre codeblock">java -jar lib/dost.jar /i:samples/sequence.ditamap /outdir:test /transtype:xhtml</pre>
|
---|
66 | </div>
|
---|
67 |
|
---|
68 | </div>
|
---|
69 |
|
---|
70 | </div>
|
---|
71 |
|
---|
72 | <div class="related-links">
|
---|
73 | <div class="familylinks">
|
---|
74 | <div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="../readme/DITA-javacmd.html" title="The DITA Open Toolkit (DITA-OT) includes a command-line tool designed for users who are unfamiliar with Ant. You can invoke the DITA-OT from the command-line tool and generate output. This method is less robust than Ant.">Publishing DITA content from the command-line tool</a></div>
|
---|
75 | </div>
|
---|
76 | <div class="relinfo relconcepts"><strong>Related concepts</strong><br/>
|
---|
77 | <div><a class="link" href="../readme/command-line-tool.html" title="The DITA Open Toolkit (DITA-OT) provides a command-line tool for users with little knowledge of Ant. The command-line tool supports a subset of the parameters that are available to the Ant builds.">Command-line tool</a></div>
|
---|
78 | </div>
|
---|
79 | <div class="relinfo relref"><strong>Related reference</strong><br/>
|
---|
80 | <div><a class="link" href="../readme/dita-ot_java_properties.html" title="Certain parameters apply to all DITA-OT transformations. Other parameters are common to the HTML-based transformations. Finally, some parameters apply only to the specific transformation types.">Command-line tool parameters</a></div>
|
---|
81 | </div>
|
---|
82 | </div>
|
---|
83 |
|
---|
84 | </body>
|
---|
85 | </html>
|
---|