Designing Input Format Standards : Designing DITA Usage Standards : Mapping DITA Classes to ePublisher Styles
 
Mapping DITA Classes to ePublisher Styles
The default.wwconfig file maps classes to styles in ePublisher, defining both the style type and the style name. You can override the default.wwconfig file to specify your own style names and types. The override file does not need to be comprehensive. Your override file can build on the default file. When the same match is defined in both the customized override file and the default file, the match in the customized file overrides the match in default file.
You can override the default.wwconfig file for all output formats, a specific output format, or a specific target. The default.wwconfig file can also emit WIF information, such as ww content for bulleted and numbered list items. For more information, see the default default.wwconfig file in the following folder:
Program Files\WebWorks\ePublisher Designer\Adapters\xml\scripts\dita
For more information about override files and locations, see “Understanding Stationery, Projects, and Overrides”.
To specify your own class mappings with an override file
1. If you want to override the class mappings for all output formats, complete the following steps:
a. In your Stationery design project, on the View menu, click Format Override Directory.
b. Create the Formats\Adapters\xml\scripts\dita folder in your project folder.
2. If you want to override the class mappings for one output format, complete the following steps:
a. In your Stationery design project, on the View menu, click Format Override Directory.
b. Create the Formats\Adapters\formattype\xml\scripts\dita folder in your project folder, where formattype is the name of the output format you want to override, such as WebWorks Help 5.0.
3. If you want to override the class mappings for a target, complete the following steps:
a. In your Stationery design project, on the View menu, click Target Override Directory.
b. Create the Targets\targetname\Adapters\xml\scripts\dita folder in your project folder, where targetname is the name of the target you want to override.
4. Copy the default.wwconfig file from the following folder to the override folder you created within your project folder:
Program Files\WebWorks\ePublisher Designer\Adapters\xml\scripts\dita
5. Open the default.wwconfig file you copied to your project override folder.
6. Remove any mappings you do not want to override.
7. Add the mappings you want to override, including a match statement that defines the style name and a match statement that defines the style type.
8. Save and close the default.wwconfig file you copied to your project override folder.
The default.wwconfig file provides two sections:
<Styles> section
Provides the style match statements that map DITA classes to style names in ePublisher. Each style match statement, such as <Style match=..., defines the classes and parent classes to use for a match. When a class matches the style match statement, the XSL specifies the ePublisher style name to associate with that class.
<Types> section
Provides the type match statements that map DITA classes to style types in ePublisher. Each type match statement, such as <Type match=..., defines the classes to use for a match. When a class matches the type match statement, the value attribute specifies the ePublisher style type for the style associated with that class.