HTML Parameters

The following table lists the parameters that are common to the stylesheets that generate XHTML or HTML. They apply to the stylesheets that produce XHTML, HTML, Web Help and HTML Help, Eclipse Help and EPUB.
Parameter Value Description
add-index-toc
Allowed values are: 'yes' and 'no'.
Default value: 'yes'.
Specifies whether an A-Z list should be added at the beginning of the back-of-the-book index.
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: ''.
Low-level parameter specifying which CSS stylesheet to use to style the generated (X)HTML pages.
When neither css nor custom-css is specified, the default CSS stylesheet being used is xsl-resources-directory/base.css.
Restriction
Restriction
Not supported by the stylesheets that generate EPUB.
cssResourceName
URL basename relative to the directory specified by parameter xsl-resources-directory.
Default value: 'base.css'.
Very low-level parameter specifying which CSS stylesheet to use. This CSS stylesheet is expected to be found in the resources directory.
Note
Note
This parameter is not useful unless you develop a plug-in implementing a DITA specialization. More information in https://www.xmlmind.com/ditac/_distrib/doc/manual/webhelp/specialize.html.
pseudoParam.pngcustom-css
URL.
Default value: ''.
Specifies the custom CSS stylesheet used to style the generated (X)HTML pages. This high-level parameter has priority over low-level parameter css.
This custom CSS stylesheet is copied to directory xsl-resources-directory. Therefore custom-css requires directory xsl-resources-directory to be specified as an URL which is relative to the output directory (e.g. xsl-resources-directory='res').
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: '10'.
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. 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 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: see prose.
Low-level parameter. Do not change default value unless you know what you are doing.
  • Specify 'text/html' to serve XHTML as HTML.
    This is the default value for all (X)HTML-based output formats except for EPUB 2 and (X)HTML5.
  • Specify 'application/xhtml+xml' if you prefer to serve XHTML as XML.
    This is the default value for EPUB 2.
  • Specify an empty string if you prefer not to generate <meta http-equiv="Content-Type">.
    This is the default value for (X)HTML5 for which a <meta charset="UTF-8"> is generated instead.