Table of Contents
More Resources
cfg Folder
cfg Folder
The general format of the cfg folder, which contains all of the plugin's customization files.
catalog.xml
The catalog.xml file tells the DITA-OT where to look for the customizations.
fo Folder
A description of the fo/ folder within the DITA OT Customization plugin.
cfg Folder

The general format of the cfg folder, which contains all of the plugin’s customization files.
The cfg/ folder is located within the plugin folder and it contains all the customization files. Generally it contains a common/ folder, a fo/ folder, and a catalog.xml file.
For example:
The common/ folder stores images or variables.
The fo Folder stores the customized xsl and xml files.
The catalog.xml file tells the DITA-OT where to look for the customizations.
catalog.xml

The catalog.xml file tells the DITA-OT where to look for the customizations.
If you have multiple languages for your PDF outputs, you can include them using the I18N configuration overrides or with the Index configuration overrides. If you only have one language, neither of these are necessary and you can comment out those 4 lines.
Additionally, if you have no font-mapping customizations, you can comment out the font-mappings.xml file, and the DITA-OT will use the defaults.
< catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system"> 

	< !-- Custom attributes entry --> 
	< uri name="cfg:fo/attrs/custom.xsl" uri="fo/attrs/custom-attrs.xsl"/> 
  
	< !-- Custom XSL code entry.--> 
	< uri name="cfg:fo/xsl/custom.xsl" uri="fo/xsl/custom-xsl.xsl"/> 

	< !-- FontMapper configuration override entry.--> 
	< uri name="cfg:fo/font-mappings.xml" uri="fo/font-mappings.xml"/> 

	< !-- I18N configuration override entries.--> 
	< uri name="cfg:fo/i18n/en_US.xml" uri="fo/i18n/en.xml"/> 
	< uri name="cfg:fo/i18n/en.xml" uri="fo/i18n/en.xml"/> 

	< !-- Index configuration override entries.--> 
	< uri name="cfg:common/index/en_US.xml" uri="common/index/en.xml"/> 
	< uri name="cfg:common/index/en.xml" uri="common/index/en.xml"/> 

< /catalog> 
Note:The custom-attrs.xsl and custom-xsl.xsl files are where the specific customizations go.
fo Folder

A description of the fo/ folder within the DITA OT Customization plugin.
The fo/ folder is where all the actual customization happens. You may format this folder however you want, just be sure to specify the correct file paths in the catalog.xml file. It usually contains 2 or 3 sub folders: attrs/, xsl/, and an optional i18n/ folder (for translations). For example:
The two files you’ll use for customization are: xsl/custom-xsl.xsl and attrs/custom-attrs.xsl. When you begin adding easyDITA PDF Customizations, you’ll modify these files.
Create a custom-xsl.xsl file in cfg/fo/xsl and a custom-attrs.xsl file in cfg/fo/attrs with just this code in them:
< xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:fo="http://www.w3.org/1999/XSL/Format" version="2.0"> 

< /xsl:stylesheet>