Chapter 4. XSLT stylesheets parameters

Parameters common to all stylesheets

Note
Note
  • Parameters marked using this icon systemParam.png are system parameters. They are automatically specified by the application executing the XSLT stylesheets. Such system parameters must not be specified by the end-user. Such system parameters are documented here only because the end-user may see them referenced in some configuration files.
  • Parameters marked using this icon pseudoParam.png are pseudo-parameters. They may or may not be passed to the XSLT stylesheets, but the important thing to remember is that they are also interpreted by ditac itself. By consequence, you cannot specify them in an XSLT stylesheet which customizes the stock ones (as explained in Part II, Chapter 9, Section 2).
Parameter Value Description
appendix-number-format
Allowed values are: 'I', 'i', 'A', 'a', '1'.
Default value: 'A'.
The number format of topics referenced in a bookmap as appendix. By default, such topics are numbered as follows: Appendix A. Title of first appendix, Appendix B. Title of second appendix, etc.
cause-number-format
Allowed values are: 'I', 'i', 'A', 'a', '1'.
Default value: 'A'.
In a <troubleshooting> topic, multiple <remedy> elements having no title are given numbers formatted using this format.
center
List of element names separated by whitespace.
Example: 'fig equation-figure simpletable table'.
Default value: ''.
Specifies which elements are to be centered horizontally on the page.
systemParam.pngditacListsURI
URL(1).
Default value: output_dir/ditac_lists.ditac_lists.
The URL of file ditac_lists.ditac_lists.
equation-number-after
String.
Default value: ')'.
Text added after the contents of a <equation-number> element.
equation-number-before
String.
Default value: '('.
Text added before the contents of a <equation-number> element.
extended-toc
Allowed values are: 'frontmatter', 'backmatter', 'both', 'none'.
Default value: 'none'.
Allows to add <frontmatter> and <backmatter> <topicref>s to the Table of Contents (TOC) of a document.
Note that the @toc, @navtitle, @locktitle, etc, attributes are applied normally to <frontmatter> and <backmatter> <topicref>s when an extended TOC is generated.
external-resource-base
Allowed values are: '', an URL ending with "/" or '#REMOVE'.
Default value: '#REMOVE' for EPUB 2 and EPUB 3, '' for all the other output formats.
Specifies how to resolve <xref> or <link> elements having an external @scope attribute and a relative @href attribute. Example of such <xref> elements: <xref scope="external" format="java" href="src/Test.java">Test.java</xref>.
''
Do not resolve the @href attribute. In this case, the external resource files are expected to be copied “by hand” to the output directory.
An URL ending with "/"
This URL is prepended to the value of the @href attribute.
'#REMOVE'
The <xref> or <link> element is processed as if it did not have an @href attribute.
highlight-source
Allowed values are: 'yes' and 'no'.
Default value: 'yes'.
Allows to turn off syntax highlighting in elements specializing <pre>.
By default, syntax highlighting is turned on for all elements specializing <pre> and having an @outputclass attribute equals to language-c, language-cpp, language-csharp, language-delphi, language-ini, language-java, language-javascript, language-m2, language-perl, language-php, language-python, language-ruby, language-tcl.
index-range-separator
String.
Default value: '&#x2013;' (EN DASH).
The string used to separate the first page number from the last page number in a page range of an indexed term. Example: index-range-separator='<-->':
C
Cat 54, 87<-->90
List of values separated by whitespace. Allowed values are: 'number' and 'text'.
Default value: 'number text'.
This parameter specifies which text to generate for a <link> element, when this <link> element has no <linktext> child element or when this <linktext> child element is empty.
Similar to above parameter xref-auto-text but for <link> elements.
note-icon-list
List of type attribute values separated by whitespace.
Default value: 'attention caution danger fastpath important note notes remember restriction tip'.
Specifies the type (attribute @type) of the <note> elements for which icons should be used rather than text in order to represent note labels.
Ignored unless use-note-icon='yes'.
number
List of values separated by whitespace. Allowed values are: 'topic', 'chapter-only', 'table', 'fig', 'example', 'equation-figure', 'all'.
Default value: '' (number nothing).
Specifies which elements are to be numbered.
'all' is a short form for 'topic table fig equation-figure'.
'chapter-only' means: number topics, but only those referenced in a bookmap as <part>, <chapter> and <appendix>.
Note
Note
Please note that 'all' does not include 'example'. If you want to number all formal elements including examples, then you must specify 'all example'.
number-separator1
String.
Default value: '.'.
The string used to separate the hierarchical number of topics acting as sections.
number-separator2
String.
Default value: '-'.
The string used to separate the hierarchical number of figures, tables, examples and equations.
When possible, the number of figure, table, example or equation is made relative to the number of the ancestor chapter or appendix. This gives for example (for descendants of chapter 5): Figure 5-1. Title of first figure of chapter 5, Figure 5-2. Title of second figure of chapter 5, etc.
mark-important-steps
Allowed values are: 'yes' and 'no'.
Default value: 'no'.
Generates a "Required" (respectively "Optional") label for <step> and <substep> elements having an @importance attribute set to "required" (resp. "optional").
part-number-format
Allowed values are: 'I', 'i', 'A', 'a', '1'.
Default value: 'I'.
The number format of topics referenced in a bookmap as part. By default, such topics are numbered as follows: Part I. Title of first part, Part II. Title of second part, etc.
prepend-chapter-to-section-number
Allowed values are: 'yes' and 'no'.
Default value: 'no'.
Normally topics which are descendants of chapters (that is, topics referenced in a bookmap as <chapter>) are numbered as follows: 1. Title of first section, 1.1. Title of first subsection, etc.
Specifying prepend-chapter-to-section-number='yes' prepends the number of the chapter ancestor to the section number. This gives for example (for descendants of chapter 5): 5.1. Title of first section, 5.1.1. Title of first subsection, etc.
remedy-number-format
Allowed values are: 'I', 'i', 'A', 'a', '1'.
Default value: 'A'.
In a <troubleshooting> topic, multiple <remedy> elements having no title are given numbers formatted using this format.
show-draft-comments
Allowed values are: 'yes' and 'no'.
Default value: 'no'.
Specifies whether <draft-comments> elements should be rendered.
troubleSolution-number-format
Allowed values are: 'I', 'i', 'A', 'a', '1'.
Default value: '1'.
In a <troubleshooting> topic, multiple <troubleSolution> elements having no title are given numbers formatted using this format.
text-file-encoding
An encoding name such as UTF-8 or ISO-8859-1.
Default value: ''.
Encoding of the text file referenced by coderef/@href. An empty string means: to be determined automatically.
title-after
List of element names separated by whitespace.
Example: 'fig equation-figure table'.
Default value: ''.
Specifies which elements should have their titles displayed after their bodies.
title-page
Allowed values are: 'auto', 'none' or the URI of a custom title page.
Default value: 'auto'.
Specifies the kind of ``title page'' (contains the title of the document, its author, etc) to be generated before the actual contents of the document.
'auto'
Automatically generate a title page based on the title and metadata of the map.
'none'
Do not generate a title page.
URI of a custom title page
Specifies the URI of a custom title page. If the URI is relative, it is relative to the current working directory of the user.
This custom title page is an XHTML file for XHTML-based formats (XHTML, HTML Help, etc). This custom title page is an XSL-FO file for FO-based formats (PDF, RTF, etc). Such custom title pages are generally hand-written.
  • The child nodes of the body element of the custom XHTML title page are wrapped in a div contained in the XHTML/HTML file being generated by the XSLT stylesheet.
    Do not add a <!DOCTYPE> to such custom XHTML title page because otherwise, the XSLT stylesheet may fail loading it.
  • The child nodes of the first fo:flow[@flow-name='xsl-region-body'] element of the custom XSL-FO title page are wrapped in a fo:block contained the XSL-FO file being generated by the XSLT stylesheet.
title-prefix-separator1
String.
Default value: '. '.
The string used to separate the number of an formal object from its title.
use-note-icon
Allowed values are: 'yes' and 'no'.
Default value: 'no'.
Specifies whether icons should be used rather than text in order to represent the label of a <note> element.
watermark-image
URI. If the URI is relative, it is relative to the current working directory of the user.
No default value.
Specifies an image file which is to be used as a watermark in all the pages comprising the output document. See also parameter watermark.
If you need this feature when generating RTF, WordprocessingML, Office Open XML (.docx), OpenDocument (.odt), please make sure to use XMLmind XSL-FO Converter Opens in new window v5.3+.
xref-auto-text
List of values separated by whitespace. Allowed values are: 'number' and 'text'.
Default value: 'number'.
This parameter specifies which text to generate for an <xref> element, when this <xref> element contains no text at all(2).
Let's suppose that an <xref> element containing no text at all points to a topic titled "Installation".
Because the <xref> element points to an element having a <title> child element, ditac may use this title as a starting point for the generated text.
Now let's suppose that topics are numbered and that the number of the "Installation" topic is "Chapter 5".
The text generated for this <xref> element is thus:
If xref-auto-text='number'
Chapter 5
If xref-auto-text='text'
Installation
If xref-auto-text='number text'
Chapter 5. Installation
Note that this specification is just a hint because ditac needs anyway to generate some text. For example, if topics are not numbered and xref-auto-text='number', the generated text will be "Installation".
pseudoParam.pngxsl-resources-directory
URL. A relative URL is relative to the output directory.
Default value: 'resources/' resolved against the directory which contains the XSLT stylesheets.
Most XSLT stylesheets generate files which reference resources such as icons or CSS stylesheets. This parameter specifies the target directory which is to contain such resources.
If this directory does not exist, it is automatically created.
If this directory does not already contain the resources needed by the XSLT stylesheets, such resources are automatically copied to this directory.
The default value of this parameter is something like file:/opt/ditac/xsl/xhtml/resources/ for the stylesheets generating XHTML. URL file:/opt/ditac/xsl/xhtml/resources/ specifies an existing directory containing basic.css, note.png, important.png, etc. This means that by default, no directory is created and no resource is copied.
If the value of this parameter is an absolute URI, then ditac assumes that no resource directory is to be created and no resource is to be copied because this has already been done by the user.
Important
Important
  • Explicitly specifying something like xsl-resources-directory='res' is almost always required when generating files having an XHTML/HTML based format (XHTML, HTML Help, etc).
  • Explicitly specifying something like xsl-resources-directory='res' is almost never required when generating files converted from XSL-FO (PDF, RTF, etc).

Parameters common to the stylesheets that basically generate XHTML or HTML

This applies to the stylesheets that generate XHTML, HTML, Web Help, Java™ Help, HTML Help, Eclipse Help, EPUB.
Parameter Value Description
chain-pages
Allowed values are: 'none', 'top', 'bottom' or 'both'.
Default value: 'none'.
Specifies whether a header and/or a footer containing navigation icons should be generated in order to link together all the HTML pages.
Note
Note
There is no need to specify a value other than 'none' when generating Web Help, HTML Help, Eclipse Help, EPUB and Java™ Help.
chain-topics
Allowed values are: 'yes' and 'no'.
Default value: 'no'.
Specifies whether navigation icons should be generated in order to link together all the topics.
See also related parameter: ignore-navigation-links.
Note
Note
There is no need to specify a value other than 'no' when generating Web Help, HTML Help, Eclipse Help, EPUB and Java™ Help.
css
URL.
Default value: ''.
Specifies which CSS stylesheet to use. Has priority over the CSS stylesheet specified by the css-name parameter.
An end-user wishing to use a custom CSS must typically:
  1. Import the basic.css stock stylesheet in its own custom.css as follows:
    @import url(basic.css);
  2. Invoke ditac with the following parameters: xsl-resources-directory='res', css='res/custom.css'.
  3. Copy by hand custom.css to output_dir/res/ after ditac has finished its job.
Restriction
Restriction
Not supported by the stylesheets that generate EPUB.
css-name
URL basename relative to the directory specified by parameter xsl-resources-directory.
Default value: 'basic.css'; 'javahelp.css' when the output format is Java™ Help.
Specifies which CSS stylesheet to use. This CSS stylesheet is expected to be found in the resources directory.
Restriction
Restriction
Not supported by the stylesheets that generate EPUB.
default-table-width
A percentage, typically something like '100%' or '90%'.
Default value: '' (as narrow as possible).
The default width of <table> and <simpletable> elements.
Length. A length may have a unit. Default is px.
Default value: '10'.
The height of the “opens in new window” icon.
Basename.
Default value: 'new_window.png'.
The basename of the “opens in new window” icon. This icon is found in the resources directory.
Length. A length may have a unit. Default is px.
Default value: '11'.
The width of the “opens in new window”' icon.
format-to-type
Zero or more DITA format/MIME type pairs. Example: "txt text/plain xml application/xml html text/html".
Default value: '', which means that DITA xref/@format is not converted to XHTML a/@type.
Allows to map DITA xref/@format to XHTML a/@type.
Using default empty value, <xref scope="external" format="txt" href="http://acme.com/info.xyz"> is converted to <a href="http://acme.com/info.xyz" target="_blank">. The fact that file extension ".xyz" is unknown may cause problems when attempting to navigate or download file "info.xyz" using a Web browser.
If -p format-to-type "txt text/plain" is passed to ditac then <xref scope="external" format="txt" href="http://acme.com/info.xyz"> is converted to <a type="text/plain" href="http://acme.com/info.xyz" target="_blank">, which is better.
generator-info
String
Default value: 'XMLmind DITA Converter VERSION'.
The name of the software which has been used to create the HTML pages.
Specify an empty string if you don't want to have a <meta name="generator" content="XXX"/> element added to your HTML pages.
Allowed values are: 'yes', 'no' and 'auto'.
Default value: 'auto' for XHTML and its variants; 'yes' for Web Help, Java Help, HTML Help, Eclipse Help and EPUB
If 'yes', do not generate the navigation links corresponding to topicref attribute @collection-type.
If 'no', generate the navigation links corresponding to topicref attribute @collection-type.
If 'auto', generate the navigation links corresponding to topicref attribute @collection-type, unless chain-topics=yes.
javascripts
String. List of URLs separated by whitespace.
Default value: ''.
The URLs specified in this parameter must point to JavaScript files. These URLs are converted to <script> XHTML elements added to the <html>/<head> elements of the XHTML files generated by ditac.
Note that an URL may end with ';async', ';defer' or a combination of both flags. These flags are translated to the corresponding attributes of the <script> element. Example:
https://cdn.mathjax.org/mathjax/latest/¬
MathJax.js?config=MML_CHTML;async
is translated to:
<script type="text/javascript" async="async"
src="https://cdn.mathjax.org/mathjax/latest/¬
MathJax.js?config=MML_CHTML">
</script>
mathjax
Allowed values are: 'yes', 'no' and 'auto'.
Default value: 'no'.
Very few web browsers (Firefox) can natively render MathML. Fortunately, there is MathJax Opens in new window. MathJax is a JavaScript display engine for mathematics that works in all browsers.
'yes'
Add a <script> XHTML element loading MathJax to the <html>/<head> elements of all XHTML files generated by ditac.
'auto'
Same as 'yes', but add <script> only to generated XHTML files containing MathML.
Ignored by all XHTML-based formats but XHTML and Web Help.
mathjax-url
String.
Default value: the URL pointing to the MathJax CDN, as recommended in the MathJax documentation.
The URL allowing to load the MathJax Opens in new window engine configured for rendering MathML.
Ignored unless parameter mathjax is set to 'yes'or 'auto'.
Allowed values are: 'yes' and 'no'.
Default value: 'no'.
Specifies whether an external link should be marked using a “opens in new window” icon.
navigation-icon-height
Length. A length may have a unit. Default is px.
Default value: '16'.
The height of a navigation icon.
navigation-icon-suffix
String.
Default value: '.png'.
The suffix of a navigation icon.
The root names of navigation icons are fixed:
  • first, first_disabled,
  • last, last_disabled,
  • next, next_disabled,
  • previous, previous_disabled,
  • parent, parent_disabled,
  • child, child_disabled.
For example, if note-icon-suffix='.svg', the default resources directory is expected to contain first.svg, first_disabled.svg, last.svg, etc.
In principle, there is no need for an end-user to specify any of the navigation-icon-suffix, navigation-icon-width or navigation-icon-height parameters.
navigation-icon-width
Length. A length may have a unit. Default is px.
Default value: '16'.
The width of a navigation icon.
screen-resolution
Positive integer.
Default value: '96'.
The resolution of the screen in dot per inch (DPI). This resolution is used to convert image dimensions such as 3cm to pixels.
xhtml-mime-type
A MIME type without a parameter such as 'text/html', 'application/xhtml+xml', 'application/xml' or the empty string ('').
Default value: 'text/html'.
Applies to all the XHTM-based formats (XHTML, EPUB), not to the HTML-based formats (Web Help, Java™ Help, HTML Help, Eclipse Help).
By default ('text/html'), serve XHTML as HTML.
Specify 'application/xhtml+xml' if you prefer to serve XHTML as XML.
Specify an empty string if you prefer not to generate <meta http-equiv="Content-Type"...>.
Tip
Tip
Web browsers such as Firefox or Opera will not render the MathML embedded in XHTML, if this XHTML is served as HTML. Therefore when your DITA document contains MathML equations, you'll have to generate ".xhtml" files (".html" files won't work) and also, preferably, to specify xhtml-mime-type="application/xhtml+xml" or xhtml-mime-type="".

Parameters common to the stylesheets that generate Web Help, Java™ Help, HTML Help, Eclipse Help and EPUB

Parameter Value Description
add-toc-root
Allowed values are: 'yes' and 'no'.
Default value: 'yes'.
If 'yes', add a pseudo TOC entry, bearing the title of the document, containing all the actual TOC entries.
Restriction
Restriction
  • Value 'no' is not supported by the stylesheets that generate Eclipse Help.
  • Ignored by the stylesheets that generate Web Help and EPUB.
number-toc-entries
Allowed values are: 'yes' and 'no'.
Default value: 'yes' for Web Help, 'no' for the other formats.
If 'yes', number the TOC entries. No effect unless the number parameter is used to specify that topics should be numbered.

Parameters specific to the stylesheets that generate Web Help

Parameter Value Description
pseudoParam.pngwh-collapse-toc
Allowed values are: 'yes' and 'no'.
Default value: 'no'.
Specifies whether the TOC should be initially collapsed.
pseudoParam.pngwh-index-numbers
Allowed values are: 'yes' and 'no'.
Default value: 'no'.
Specifies whether words looking like numbers are to be indexed.
Examples of such number-like words: 3.14, 3,14, 3times4equals12, +1, -1.0, 3px, 1,2cm, 100%, 1.0E+6, 1,000.00$.
pseudoParam.pngwh-jquery
Relative or absolute URI. A relative URI is relative to the URI of a page of the Web Help.
Default value: absolute URI of the corresponding file found on the Google CDN.
Specifies the location of the JavaScript file containing jQuery Opens in new window . Example:
http://ajax.aspnetcdn.com/ajax/¬
jQuery/jquery-3.2.1.min.js
Specifying an "https:" URL is recommended when the generated Web Help is stored on an HTTPS server.
pseudoParam.pngwh-jquery-css
Relative or absolute URI. A relative URI is relative to the URI of a page of the Web Help.
Default value: absolute URI of the corresponding file found on the Google CDN.
Specifies the location of the CSS stylesheet of jQuery UI Opens in new window . Example:
http://ajax.aspnetcdn.com/ajax/¬
jquery.ui/1.12.1/themes/redmond/¬
jquery-ui.css
Specifying an "https:" URL is recommended when the generated Web Help is stored on an HTTPS server.
pseudoParam.pngwh-jquery-custom-theme
Filename or absolute URI of a .zip file created using JQueryUI ThemeRoller Opens in new window.
No default.
Specifies a .zip file created using JQueryUI ThemeRoller Opens in new window containing a custom JQueryUI theme. Example: jquery-ui-1.12.1.custom.zip.
The files comprising the custom theme are copied to _wh/jquery/, where _wh/ is the directory containing the other Web Help files.
Ignored if parameter wh-jquery-css has been used to specify the CSS stylesheet of jQuery UI.
pseudoParam.pngwh-jquery-theme
The name of a theme. Examples: 'redmond', 'cupertino'.
Default value: 'smoothness'.
Specifies the name of the jQuery UI Opens in new window theme used by the compiler.
Ignored if parameter wh-jquery-css or jquery-custom-theme have been used to specify the CSS stylesheet of jQuery UI.
pseudoParam.pngwh-jquery-ui
Relative or absolute URI. A relative URI is relative to the URI of a page of the Web Help.
Default value: absolute URI of the corresponding file found on the Google CDN.
Specifies the location of the JavaScript file containing jQuery UI Opens in new window . Example:
http://ajax.aspnetcdn.com/ajax/¬
jquery.ui/1.12.1/jquery-ui.min.js'
Specifying an "https:" URL is recommended when the generated Web Help is stored on an HTTPS server.
pseudoParam.pngwh-local-jquery
yes or no.
Default value: no.
Specifies whether to copy all jQuery files to _wh/jquery/, where _wh/ is the directory containing the other Web Help files.
By default, the jQuery files are accessed from the Web (typically from a CDN).
Note that this parameter is applied after applied after JQuery and JQueryUI have been possibly customized using parameters jquery, jquery-ui, jquery-css, jquery-theme and jquery-custom-theme. For example, "-p jquery-theme cupertino -p local-jquery yes" copies the Cupertino CSS files to _wh/jquery/.
pseudoParam.pngwh-use-stemming
yes or no.
Default value: yes.
Specifies whether stemming should be used to implement the search by contents facility. By default, stemming is used whenever possible, that is,
  • when the main language of the document can be determined;
  • when this main language is one of: Danish, Dutch, English, Finnish, French, German, Hungarian, Italian, Norwegian, Portuguese, Russian, Spanish, Swedish, Romanian, Turkish.
The main language of the document is specified by the @xml:lang attribute found on the root element of DITA map being converted; otherwise using the -lang command-line option; otherwise, it is assumed to be "en".
pseudoParam.pngwh-user-css
Relative or absolute URI of a CSS file. A relative URI is relative to the current working directory.
Specifies the user's CSS stylesheet which is to be added to each page of the Web Help.
This file is copied to output_directory/_wh/user/.
Sample user's CSS wh_resources/header_footer.css Opens in new window as used in the following example:
-p wh-user-header ¬
wh_resources/header.html
-p wh-user-footer ¬
wh_resources/footer.html
-p wh-user-css ¬
wh_resources/header_footer.css
-p wh-user-resources ¬
wh_resources/header_footer_files
Relative or absolute URI of an XHTML file. A relative URI is relative to the current working directory.
Specifies the user's footer which is to be added to each page of the Web Help.
The content of the <body> element of wh-user-footer is inserted as is in the <div id="wh-footer"> found in a page of the Web Help.
Same remark as for parameter wh-user-header about the resources referenced by a user's footer.
Sample user's footer wh_resources/footer.html Opens in new window as used in the following example:
-p wh-user-header ¬
wh_resources/header.html
-p wh-user-footer ¬
wh_resources/footer.html
-p wh-user-css ¬
wh_resources/header_footer.css
-p wh-user-resources ¬
wh_resources/header_footer_files
pseudoParam.pngwh-user-header
Relative or absolute URI of an XHTML file. A relative URI is relative to the current working directory.
Specifies the user's header which is to be added to each page of the Web Help.
The content of the <body> element of wh-user-header is inserted as is in the <div id="wh-header"> found in a page of the Web Help.
If a user's header references resources (e.g. image files), then these resources must either be referenced using absolute URLs or these resources must be found in a user's resource directory and parameter wh-user-resources must be specified.
Example:
  • The user's resource directory is called header_footer_files/ and contains header_footer_files/logo100x50.png.
  • ditac is passed parameters: -p user-resources PATH_TO/header_footer_files and -p user-header PATH_TO/header.html.
  • header.html looks like this:
    <html>
    ...
    <body>
    ...
    <img src="_wh/user/header_footer_files/¬
    logo100x50.png" />
    ...
    </body>
    </html>
    Notice the path used to reference logo100x50.png.
Sample user's header wh_resources/header.html Opens in new window as used in the following example:
-p wh-user-header ¬
wh_resources/header.html
-p wh-user-footer ¬
wh_resources/footer.html
-p wh-user-css ¬
wh_resources/header_footer.css
-p wh-user-resources ¬
wh_resources/header_footer_files
pseudoParam.pngwh-user-resources
Filename or absolute "file:" URI of a directory. URI schemes other than "file" (e.g. "http") are not supported for this parameter. A relative filename is relative to the current working directory.
Specifies a user's resource directory which is to be recursively copied to output_directory/_wh/user/.
This directory typically contains image files referenced by the user's header, footer or CSS stylesheet.
Sample user's resource directory wh_resources/header_footer_files/ Opens in new window as used in the following example:
-p wh-user-header ¬
wh_resources/header.html
-p wh-user-footer ¬
wh_resources/footer.html
-p wh-user-css ¬
wh_resources/header_footer.css
-p wh-user-resources ¬
wh_resources/header_footer_files
whc-index-basename
URL basename.
Default value: 'whc_index.xml'.
Basename of the Index XML input file of XMLmind Web Help Compiler.
In principle, there is no need for an end-user to specify this parameter.
whc-toc-basename
URL basename.
Default value: 'whc_toc.xml'.
Basename of the TOC XML input file of XMLmind Web Help Compiler.
In principle, there is no need for an end-user to specify this parameter.

Parameters specific to the stylesheets that generate Java™ Help

In principle, there is no need for an end-user to specify any of the following parameters.
Parameter Value Description
helpset-basename
URL basename.
Default value: 'jhelpset.hs'.
Basename of the Java™ Help HelpSet file.
index-basename
URL basename.
Default value: 'jhelpidx.xml'.
Basename of the Java™ Help Index file.
indexer-directory-basename
URL basename.
Default value: 'JavaHelpSearch'.
Basename of the directory which will contain the data generated by running jhindexer. A properly quoted relative URL, not a filename.
map-basename
URL basename.
Default value: 'jhelpmap.jhm'.
Basename of the Java™ Help Map file.
toc-basename
URL basename.
Default value: 'jhelptoc.xml'.
Basename of the Java™ Help Contents file.

Parameters specific to the stylesheets that generate HTML Help

In principle, there is no need for an end-user to specify any of the following parameters.
Parameter Value Description
systemParam.pngchmBasename
URL basename.
Default value: 'help.chm'.
Basename of the compiled HTML Help file.
hhc-basename
URL basename.
Default value: 'toc.hhc'.
Basename of the HTML Help contents file.
hhp-template
URL basename.
Default value: 'template.hhp' resolved against the directory which contains the XSLT stylesheets.
URL of the file containing the template of the HTML Help project file. This plain text file encoded in UTF-8 contains variables such as %compiledFile%, %contentsFile%, %defaultTopic%, etc, which are substituted with their values.
systemParam.pnghhpBasename
URL basename.
Default value: 'project.hhp'.
Basename of the HTML Help project file.
hhx-basename
URL basename.
Default value: 'index.hhx'.
Basename of the HTML Help index file.

Parameters specific to the stylesheets that generate Eclipse Help

Parameter Value Description
plugin-id
String
No default value.
An ID uniquely identifying the plug-in, typically a Java-like fully qualified name. Example: 'com.acme.widget.userguide'.
Important
Important
The subdirectory of plugins/ containing the plug-in must have the same basename as the value of parameter plugin-id.
plugin-index-basename
URL basename.
Default value: 'index.xml'.
Basename of the index file.
plugin-name
String
No default value.
The name of the plug-in, typically the title of the document. Example: 'ACME Widget User&apos;s Guide'.
plugin-provider
String
No default value.
The author, company or organization which has contributed the plug-in. Example: 'ACME Corp.'.
plugin-toc-basename
URL basename.
Default value: 'toc.xml'.
Basename of the table of contents file.
plugin-version
String
Default value: '1.0.0'.
The version of the plug-in.

Parameters specific to the stylesheets that generate EPUB

Parameter Value Description
cover-image
URI. If the URI is relative, it is relative to the current working directory of the user.
No default value.
Specifies an image file which is to be used as the cover page of the EPUB file. This image must be a PNG or JPEG image. Its size must not exceed 1000x1000 pixels.
In theory, EPUB 3 also accepts SVG 1.1 cover images.
epub-identifier
String
Default value: dynamically generated UUID URN.
A globally unique identifier for the generated EPUB document (typically the permanent URL of the EPUB document).
epub2-compatible
Allowed values are: 'yes' and 'no'.
Default value: 'yes'.
Only applies to EPUB 3.
By default, the EPUB 3 files generated by ditac are made compatible with EPUB 2 readers. Specify 'no' if you don't need this compatibility.
generate-epub-trigger
Allowed values are: 'yes' and 'no'.
Default value: 'yes'.
Only applies to EPUB 3.
Specify 'no' if your EPUB 3 reader does not support epub:trigger Opens in new window yet. When generate-epub-trigger=no, ditac generates an @onclick attribute containing simple JavaScript code and declares the containing XHTML 5 page as being scripted.

Parameters specific to the stylesheets that generate XSL-FO

The XSL-FO file generated by the XSLT stylesheets is converted to PDF, PostScript®, RTF, WordprocessingML, Office Open XML (.docx), OpenOffice/LibreOffice (.odt) by the means of XSL-FO processors such as Apache FOP Opens in new window, RenderX XEP Opens in new window, Antenna House XSL Formatter Opens in new window or XMLmind XSL-FO Converter Opens in new window.
Parameter Value Description
base-font-size
Default value: '10pt'.
The size of the ``main font'' of the document. All the other font sizes are computed relatively to this font size
body-bottom-margin
Length.
Default value: '0.5in'.
See Figure 4-1 below.
body-font-family
A string containing one or more font families separated by commas.
Default value: 'serif'.
Specifies the family of the font used for the text of all elements except topic titles.
body-start-indent
Length.
Default value: '2pc'.
Applies only to alternate XSLT stylesheet ditac_install_dir/xsl/fo/fo_indent.xsl.
This stylesheet:
  • Indents all blocks but topic and section titles by the value of XSLT stylesheet parameter body-start-indent. By default body-start-indent is 2pc.
  • Adds more vertical space after topic and section titles.
  • Only part, appendices, chapter and appendix titles are underlined.
This stylesheet is invoked by passing option -t ditac-xsl:fo/fo_indent.xsl to ditac. Example of its output: manual-fop.pdf Opens in new window.
body-top-margin
Length.
Default value: '0.5in'.
See Figure 4-1 below.
choice-bullets
A string containing one or more single characters separated by whitespace.
Default value: '&#x2022;' (BULLET).
Specify which bullet character to use for a <choice> element. Additional characters are used for nested <choice> elements.
Changing the value of this parameter may imply changing the font-family attribute of the attribute-set choice-label.
equation-block-equation-width
Length.
Default value: '90%'.
In a numbered <equation-block> element, this parameter specifies the width of the column containing the equation.
equation-block-number-width
Length.
Default value: '10%'.
In a numbered <equation-block> element, this parameter specifies the width of the column containing the <equation-number> element.
external-href-after
String.
Default value: ']'.
Appended after the external URL referenced by an <xref> or <link> element. Ignored unless show-external-links='yes'.
external-href-before
String.
Default value: ' ['.
Separates the text of an <xref> or <link> element from its referenced external URL. Ignored unless show-external-links='yes'.
systemParam.pngfoProcessor
String. Examples: 'FOP', 'XEP', 'AHF', 'XFC'.
Default value: ''.
The name of the XSL-FO processor used to convert the XSL-FO file generated by the XSLT stylesheets to the target output format.
String.
Specifies the contents of the central part of a page footer. See Specifying a header or a footer.
Default value:
two-sides even:: {{chapter-title}};;
two-sides part||chapter||appendices||appendix odd::¬
{{section1-title}};;
one-side even||odd:: {{chapter-title}}
String representing an integer larger than or equal to 1.
Default value: '6'.
Specifies the proportional width of the central part of a page footer. See Specifying a header or a footer.
Length.
Default value: '0.4in'.
See Figure 4-1 below.
String.
Specifies the contents of the left part of a page footer. See Specifying a header or a footer.
Default value:
two-sides even:: {{page-number}}
String representing an integer larger than or equal to 1.
Default value: '2'.
Specifies the proportional width of the left part of a page footer. See Specifying a header or a footer.
String.
Specifies the contents of the right part of a page footer. See Specifying a header or a footer.
Default value:
two-sides first||odd:: {{page-number}};;
one-side:: {{page-number}}
String representing an integer larger than or equal to 1.
Default value: '2'.
Specifies the proportional width of the right part of a page footer. See Specifying a header or a footer.
Allowed values are: 'yes' and 'no'.
Default value: 'yes'.
Specifies whether an horizontal rule should be drawn above the page footer.
header-center
String.
Default value: '{{document-title}}'.
Specifies the contents of the central part of a page header. See Specifying a header or a footer.
header-center-width
String representing an integer larger than or equal to 1.
Default value: '6'.
Specifies the proportional width of the central part of a page header. See Specifying a header or a footer.
header-height
Length.
Default value: '0.4in'.
See Figure 4-1 below.
header-left
String.
Default value: ''.
Specifies the contents of the left part of a page header. See Specifying a header or a footer.
header-left-width
String representing an integer larger than or equal to 1.
Default value: '2'.
Specifies the proportional width of the left part of a page header. See Specifying a header or a footer.
header-right
String.
Default value: ''.
Specifies the contents of the right part of a page header. See Specifying a header or a footer.
header-right-width
String representing an integer larger than or equal to 1.
Default value: '2'.
Specifies the proportional width of the right part of a page header. See Specifying a header or a footer.
hyphenate
Allowed values are: 'yes' and 'no'.
Default value: 'no'.
Specifies whether words may be hyphenated.
index-column-count
Positive integer.
Default value: '2'.
The number of columns of index pages.
index-column-gap
Length.
Default value: '2em'.
The distance which separates columns in index pages.
justified
Allowed values are: 'yes' and 'no'.
Default value: 'no'.
Specifies whether text (e.g. in paragraphs) should be justified (that is, flush left and right) or just left aligned (that is, flush left and ragged right).
A string containing a single character.
Default value: '&#x2022;' (BULLET).
Specify which character is inserted before the text of a <link> element.
Changing the value of this parameter may imply changing the font-family attribute of the attribute-set link-bullet.
menucascade-separator
A string containing a single character.
Default value: '&#x2192;' (RIGHTWARDS ARROW).
Specify which character is used to separate the child elements of a <menucascade> element.
Changing the value of this parameter may imply changing the font-family attribute of the attribute-set menucascade-separator.
note-icon-height
Length. A length may have a unit. Default is px.
Default value: '32'. '7mm' for the XSLT stylesheets that generate XSL-FO.
The height of a note icon.
note-icon-suffix
Default value: '.png'.
The suffix of a note icon.
The root name of a note icon should be identical to the value of the @type attribute it represents. For example, if note-icon-suffix='.svg', the default resources directory is expected to contain note.svg, important.svg, caution.svg, etc.
In principle, there is no need for an end-user to specify any of the note-icon-suffix, note-icon-width or note-icon-height parameters.
note-icon-width
Length. A length may have a unit. Default is px.
Default value: '32'. '7mm' for the XSLT stylesheets that generate XSL-FO.
The width of a note icon.
page-bottom-margin
Length.
Default value: '0.5in'.
See Figure 4-1 below.
page-height
Length. Example: '297mm'.
Default value: depends on paper-type.
The height of the printed page.
page-inner-margin
Length.
Default value: if parameter two-sided is specified as 'yes' then '1.25in' otherwise '1in'.
See Figure 4-1 below.
page-orientation
Allowed values are: 'portrait' and 'landscape'.
Default value: 'portrait'.
The orientation of the printed page.
page-outer-margin
Length.
Default value: if parameter two-sided is specified as 'yes' then '0.75in' otherwise '1in'.
See Figure 4-1 below.
page-ref-after
String.
Default value: ''.
Appended after the page number pointed to by an <xref> or <link> element. Ignored unless show-xref-page='yes' or show-link-page='yes'.
When both page-ref-after and page-ref-before are specified as the empty string, in fact, this specifies that the generated string must be the localized equivalent of "on page".
page-ref-before
String.
Default value: ''.
Separates the text of an <xref> or <link> element from the page number it points to. Ignored unless show-xref-page='yes' or show-link-page='yes'.
page-top-margin
Length.
Default value: '0.5in'.
See Figure 4-1 below.
page-width
Length. Example: '8.5in'.
Default value: depends on paper-type.
The width of the printed page.
paper-type
Allowed values are: 'Letter', 'Legal', 'Ledger', 'Tabloid', 'A0', 'A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8', 'A9', 'A10', 'B0', 'B1', 'B2', 'B3', 'B4', 'B5', 'B6', 'B7', 'B8', 'B9', 'B10', 'C0', 'C1', 'C2', 'C3', 'C4', 'C5', 'C6', 'C7', 'C8', 'C9', 'C10' (case-insensitive).
Default value: 'A4'.
A convenient way to specify the size of the printed page.
It is also possible to specify a custom paper type by ignoring the paper-type parameter and directly specifying the page-width and page-height parameters.
pdf-outline
Allowed values are: 'yes' and 'no'.
Default value: 'no'.
Specifies whether PDF bookmarks should be generated.
Supported by the 'XEP' , 'FOP' and 'AHF' XSL-FO processors. Not relevant, and thus ignored by 'XFC'.
Allowed values are: 'yes' and 'no'.
Default value: 'no'.
Specifies whether the external URL referenced by an <xref> or <link> element should be displayed right after the text contained by this element.
Example: show-external-links='yes'causes <xref href="http://www.oasis-open.org/">Oasis</xref> to be rendered as follows: Oasis [http://www.oasis-open.org/].
Allowed values are: 'yes' and 'no'.
Default value: 'yes'.
Specifies whether a numbered list should be generated for an <imagemap> element, with one list item per <area> element.
A list item contains the link specified by the <area> element. No list items are generated for “dead areas” (<area> elements specifying no link at all).
Allowed values are: 'yes' and 'no'.
Default value: 'no'.
Same as show-xref-page but for <link> elements.
show-xref-page
Allowed values are: 'yes' and 'no'.
Default value: 'no'.
Specifies whether the page number corresponding to the internal link target referenced by an <xref> element should be displayed right after the text contained by this element.
Example: show-xref-page='yes'causes <xref href="introduction.dita">Introduction</xref> to be rendered as follows: Oasis [3].
title-color
A string representing a color.
Default value: 'black'.
Specifies the color used for the text of topic (of any kind) titles.
title-font-family
A string containing one or more font families separated by commas.
Default value: 'sans-serif'.
Specifies the family of the font used for the text of topic (of any kind) titles.
two-sided
Allowed values are: 'yes' and 'no'.
Default value: 'no'.
Specifies whether the document should be printed double sided.
ul-li-bullets
A string containing one or more single characters separated by whitespace.
Default value: '&#x2022; &#x2013;' (BULLET, EN DASH).
Specify which bullet character to use for an <ul>/<li> element. Additional characters are used for nested <li> elements.
For example, if ul-li-bullets="* - +", "*" will be used for <ul>/<li> elements, "-" will be used for <ul>/<li> elements contained in a <ul>/<li> element and "+" will be used for <ul>/<li> elements nested in two <ul>/<li> elements.
Changing the value of this parameter may imply changing the font-family attribute of the attribute-set ul-li-label.
unordered-step-bullets
A string containing one or more single characters separated by whitespace.
Default value: '&#x2022;' (BULLET, EN DASH).
Specify which bullet character to use for a <steps-unordered>/<step> element. Additional characters are used for nested <steps-unordered>/<step> elements.
Changing the value of this parameter may imply changing the font-family attribute of the attribute-set unordered-step-label.
use-multimedia-extensions
'yes', 'no' or a list of MIME types separated by whitespace.
Default value: 'no'.
Currently ignored unless RenderX XEP is used to generate PDF.
Specifies whether vendor-specific XSL-FO extensions should be used to embed rich media content in the output file.
If specified value is 'yes', then XSL-FO extensions are used whatever the MIME types of the media.
If specified value is a list of MIME types, then XSL-FO extensions are used only for media having these types. For now, it seems that only 'application/x-shockwave-flash' gives useful results.
Note
Note
This feature requires generating PDF version 1.5+. By default, XEP generates PDF version 1.4. It seems that there is no way to change this by passing a command-line option to xep.bat or to the xep shell script. However, this can be changed once for all, for example by inserting <option name="PDF_VERSION" value="1.5"/> into the <generator-options format="PDF"> element found in the XEP_install_dir/xep.xml configuration file.
watermark
Allowed values are one or more of 'blank', 'title', 'toc', 'booklist', 'frontmatter', 'body', 'backmatter', 'index', 'all' separated by whitespace.
Default value: 'all'.
Specifies which pages in the output document are to be given a watermark.
By default, all pages are given a watermark. If for example, parameter watermark is set to 'frontmatter body backmatter', then only the pages which are part of the front matter, body and back matter of the output document are given a watermark. The title page, TOC pages, etc, are not given a watermark.
No effect unless parameter watermark-image is specified.

Figure 4-1. Page areas

page_areas.png

Child topics:


 (1) Unlike a filename, an URL must contain properly quoted characters. For example, do not specify 'Hello world.htm', instead specify 'Hello%20world.htm'.
 (2) This implies that the xref-auto-text parameter is ignored when an <xref> element contains some text.