This chapter is not a tutorial. It will merely give you some recipes. If you want to understand what you are doing, please refer to Writing a configuration file for XXE.
Let's suppose you want to customize one of the DITA[3], DocBook 5, DocBook 4 or XHTML configurations, here's what to do.
Create in
[4] a subdirectory which will contain all the files comprising your customization.XXE_user_preferences_dir
/addon/
The name of this directory is not important. Let's suppose you have created XXE_user_preferences_dir
/addon/custom/.
Copy one of the following template files depending on which configuration you want to customize:
Configuration Name | Procedure |
---|---|
DITA | Copy 0topic.xxe to |
DITA Map | Copy 0map.xxe to |
DITA BookMap | Copy 0bookmap.xxe to |
DocBook Assembly 5.2 | Copy 0assembly52.xxe to |
DocBook 5.2 | Copy 0docbook52.xxe to |
DocBook Assembly 5.1 | Copy 0assembly51.xxe to |
DocBook 5.1 | Copy 0docbook51.xxe to |
DocBook 5.0 | Copy 0docbook5.xxe to |
DocBook 4 | Copy 0docbook.xxe to |
XHTML Strict | Copy 0xhtml_strict.xxe to |
XHTML Transitional | Copy 0xhtml_loose.xxe to |
XHTML 1.1 | Copy 0xhtml11.xxe to |
XHTML 5 | Copy 0xhtml5.xxe to |
For example, 0docbook5.xxe
[5] looks like this:
<configuration name="DocBook 5.0" xmlns="http://www.xmlmind.com/xmleditor/schema/configuration" xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration" xmlns:db="http://docbook.org/ns/docbook" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:html="http://www.w3.org/1999/xhtml"> <include location="docbook5-config:docbook5.xxe" /> </configuration>
This step involves adding one or more configuration elements after the include
element. This is done using any XML or text editor. Each of the following sections describes a common customization step.
Restart XXE.
[3] The configuration associated to DITA topics is called DITA
. The configuration associated to DITA maps is called DITA Map
. The configuration associated to DITA bookmaps is called DITA BookMap
.
[4] XXE_user_preferences_dir
is documented in Where is XXE user preferences directory?.
[5] The “funny” name, starting with a "0
", has its utility if you happen to create your customization in
rather than in XXE_install_dir
/addon/
.XXE_user_preferences_dir
/addon/