background image

Using the Open Toolkit plug-in for FrameMaker

2

The Open Toolkit plug-in for FrameMaker

Generating output from the current file

After installation, you can run the DITA Open Toolkit processes from within FrameMaker. There 
are two ways to do this, corresponding to the two options, Current File and Selected Target in the 
DITA Generate Output dialog box:

The DITA Generate Output dialog box offers two forms of DITA Open Toolkit processing.

Current File

 uses a pre-configured Ant script: This Ant script is the ditafm-ant.xml file that you 

copied to your DITA-open toolkit folder on installation. This script generates output from a topic 
that is currently open or from the map file to a sub folder of the folder containing the topic. On a 
configured system, you can generate output without having to modify the Ant script. However, 
you can edit the ditafm-ant.xml file to customize the processing of output. You must specify the 
path where you installed the DITA Open Toolkit. 

Selected Target

 lets you specify an Ant script you’ve created. You must set up your own Ant script 

and reference the script in the ditafm.ini file. The list of selected targets does not appear until you 
define them in the Ant script and reference them in the ditafm.ini file.

• Most users may require only the Current File method starting the DITA open toolkit. Most 

FrameMaker users may use the Current File method for running the DITA Open Toolkit pro-
cesses. 

You can use Current File to process the map file or DITA topics that are open. 

In the Selected Target method, the Ant scripts referenced in your DITA initialization file are run. 
This method indicates the following:

• Files to process

• Applications and processes to run

• Destination folders and filenames

Содержание FRAMEMAKER

Страница 1: ...ms to the DITA structure you can use the DITA Open Toolkit to generate a wide variety of outputs The DITA Open Toolkit an Open Source tool chain for multichannel publishing DITA Open Toolkit is availa...

Страница 2: ...enerate output without having to modify the Ant script However you can edit the ditafm ant xml file to customize the processing of output You must specify the path where you installed the DITA Open To...

Страница 3: ...ile which is located in the output folder Compiled Help chm output You can generate compiled Help CHM easily This process is similar to generating HTML output Open the ditamap file and choose DITA Gen...

Страница 4: ...used for automating soft ware build processes For example the following types of publishing processes can be automated 1 Transform specified XML files such as DITA map files or associated topic files...

Страница 5: ...gs for project dita 6 Set the property value for dita extname to the extension of your referenced topic files in this case xml Property name and value settings for dita extname 7 Save and close Test x...

Страница 6: ...g html txt 3 Save and close ditafm ini Now you can run the selected targets Note that Test xml is a single script that contains multiple tar gets such as CHM and HTML To run the selected targets you h...

Страница 7: ...rget to an existing script as shown in the following figure Customizing the Text xml Ant script To add this target as an option in FrameMaker you can modify the DITA initialization file to refer ence...

Страница 8: ...specific systems CSS style sheets that are used in HTML output Ant scripts Any other tools used in new targets This customization must be separated from the core toolkit processing For example you can...

Страница 9: ...t the core of the DITA Open Toolkit is the Java Development Kit JDK which provides the base Java functionality on which most other toolkit programs depend To install the JDK 1 Go to http java sun com...

Страница 10: ...create compiled Help chm files To install Microsoft HTML Help 1 Go to http msdn microsoft com library default asp url library en us htmlhelp html hwMicrosoftHTMLHelpDownloads asp make sure this is a s...

Страница 11: ...the System Variables 3 Edit existing System Variables by selecting them from the list and clicking Edit Note Do not overwrite path values instead add additional paths to variables by delimiting paths...

Страница 12: ...example C dita ot1 4 2 1 dost jar Set the Classpath variable to include the SAXON jar file Select the Classpath variable in the list of system variables and click Edit add a semicolon no spaces before...

Страница 13: ...ts The various sets of files you need are contained in the openToolkit zip archive Follow the directions for expanding and extracting each set of files to their proper locations Installation overview...

Страница 14: ...xml and PROJECT xml 2 Navigate to your DITA OT folder for example C dita ot1 4 2 1 and paste the two files Next steps Now that you ve seen the power of publishing with the Open Toolkit plug in for Fra...

Отзывы: