1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
2 | <!-- This file is part of the DITA Open Toolkit project hosted on
|
---|
3 | Sourceforge.net. See the accompanying license.txt file for
|
---|
4 | applicable licenses.-->
|
---|
5 | <!-- (c) Copyright IBM Corp. 2005, 2006 All Rights Reserved. -->
|
---|
6 | <!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN"
|
---|
7 | "..\dtd\task.dtd">
|
---|
8 | <task id="ascript" xml:lang="en-us">
|
---|
9 | <title>Transforming DITA to Word with Ant script</title>
|
---|
10 | <taskbody>
|
---|
11 | <steps>
|
---|
12 | <step><cmd>Specify a directory where you want to put the output files. For
|
---|
13 | example, <userinput>e:/output/dita2word</userinput>.</cmd></step>
|
---|
14 | <step><cmd>Open an ant script file from the default model template. You can
|
---|
15 | find the file "template_wordrtf.xml" under the "ant" directory.</cmd>
|
---|
16 | </step>
|
---|
17 | <step><cmd>Modify the transformation type to <userinput>Word</userinput>.</cmd>
|
---|
18 | <info>The default file name is "ant.xml". If you want to save the template
|
---|
19 | file, make sure to save it as another file name. For example, <userinput>antfile.xml</userinput>.</info>
|
---|
20 | </step>
|
---|
21 | <step><cmd>On the command line, enter <userinput>ant -f <ant.xml></userinput>.</cmd>
|
---|
22 | </step>
|
---|
23 | <step><cmd>After processing and generating, a single output file in ".rft"
|
---|
24 | format occurs in the specified directory, such as in e:/output/diat2word.</cmd>
|
---|
25 | </step>
|
---|
26 | <step><cmd>You can use <tm tmclass="special" tmowner="Microsoft Corporation"
|
---|
27 | tmtype="reg" trademark="Microsoft">Microsoft</tm> Word to open the output
|
---|
28 | file.</cmd></step>
|
---|
29 | <step><cmd>You can also further edit the output file by using tools in <tm
|
---|
30 | tmclass="special" tmowner="Microsoft Corporation" tmtype="reg" trademark="Microsoft">Microsoft</tm> Word.</cmd>
|
---|
31 | </step>
|
---|
32 | </steps>
|
---|
33 | </taskbody>
|
---|
34 | </task>
|
---|