1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN"
|
---|
3 | "task.dtd">
|
---|
4 | <task id="eclipseconprov" xml:lang="en-us">
|
---|
5 | <title>Eclipse Content Provider</title>
|
---|
6 | <shortdesc>The Eclipse Content Provider was introduced in the DITA-OT Release 1.1. With the
|
---|
7 | Eclipse Content Provider, you do not need to transform DITA files completely to HTML before
|
---|
8 | loading them in Eclipse. This new function will preprocess DITA files and dynamically transform
|
---|
9 | them into HTML at runtime.</shortdesc>
|
---|
10 | <taskbody>
|
---|
11 | <context>
|
---|
12 | <p>During the building process, the Eclipse Content Provider generates the file
|
---|
13 | <filepath>plugin.xml</filepath>. The file <filepath>plugin.xml</filepath> provides the
|
---|
14 | definition of one or more tables of contents and locates the contents to display.</p>
|
---|
15 | <p>Here is an example of creating an output for the Eclipse Content Provider and view the
|
---|
16 | output in specially designed Eclipse on Windows XP. This assumes that your environment is
|
---|
17 | already set up to run DITA-OT transformations.</p>
|
---|
18 | </context>
|
---|
19 | <steps>
|
---|
20 | <step>
|
---|
21 | <cmd>Start the Windows command line interface.</cmd>
|
---|
22 | </step>
|
---|
23 | <step>
|
---|
24 | <cmd>Switch to the directory <filepath>c:\DITA-OT\</filepath> (or to your own install
|
---|
25 | directory for the toolkit).</cmd>
|
---|
26 | </step>
|
---|
27 | <step>
|
---|
28 | <cmd>Enter the following command to build:</cmd>
|
---|
29 | <info><codeblock>java -jar lib\dost.jar /i:samples/sequence.ditamap /outdir:out /transtype:eclipsecontent </codeblock></info>
|
---|
30 | </step>
|
---|
31 | <step>
|
---|
32 | <cmd>Then view all the files under <filepath>c:\DITA-OT\out\</filepath> and copy these files
|
---|
33 | to the corresponding directory under the plugin directory for Eclipse.</cmd>
|
---|
34 | </step>
|
---|
35 | <step>
|
---|
36 | <cmd>Call the specially designed Eclipse to view the output.</cmd>
|
---|
37 | </step>
|
---|
38 | </steps>
|
---|
39 | </taskbody>
|
---|
40 | </task>
|
---|