Table of Contents

Previous

Next


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 Pro\Adapters\xml\scripts\dita

To specify your own class mappings with an override file

  1. In Windows Explorer, open your Stationery design project folder. For more information about override files and locations, see “Understanding Stationery, Projects, and Overrides” on page 327.

  2. If you want to override the class mappings for 'all output formats, create the Formats\Adapters\xml\scripts\dita folder in your project folder.

  3. If you want to override the class mappings for 'one output format, 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.

  4. If you want to override the class mappings for a 'target, 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.

  5. Copy the default.wwconfig file from the following folder to the override folder you created within your project folder:

Program Files\WebWorks\ePublisher Pro\Adapters\xml\scripts\dita

  1. Open the default.wwconfig file you copied to your project override folder.

  2. Remove any mappings you do not want to override.

  3. 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.

  4. 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.

ePublisher/2008.3/Help/Designing_Templates_and_Stationery/Designing_Input_Format_Standards.2.36 (last edited 2008-10-11 06:32:33 by BenAllums)