Use a catalog to add a style-to-tag map configuration file to your Word to DITA pipeline
configuration.
You must have created an Alfresco pipeline configuration based on the Word-to-DITA pipeline definition.
The provided Word-to-DITA pipeline definition uses default styles to tags mapping, which is called a
style-to-tag map configuration file. You can create your own style-to-tag map configuration file to better match
the WordML (docx) documents you need to process, then add it to you pipeline configuration.
-
Import your custom style-to-tag map configuration file into a dedicated customization space in
Alfresco.
Your custom configuration file could be named as follows: Customization/word2dita/style2tagmap-custom.xml
-
Open your
Customization/catalog.xml
customization catalog or create a new one.
-
Add an URI reference to
style2tagmap-custom.xml
into your customization catalog, where
style2tagmap-custom.xml
is the name of your custom style-to-tag map configuration
file.
<group xml:base="word2dita/">
<uri name="cpnz:dita:dita4publishers:word2dita:custom:xml:style2tagmap.xml" uri="style2tagmap-custom.xml" />
</group>
-
Add the catalog aspect to the
catalog.xml
file.
-
Open your Word to DITA pipeline configuration in Alfresco.
-
Add your customization catalog file to the list of catalogs.
Your custom style-to-tag map configuration file is added to the Word to DITA pipeline configuration. Changes
will be applied every time you launch the Word to DITA output processing on a WordML (docx) document.