Free tutorials for Java, Eclipse and Web programming



Follow me on twitter

6. Influencing the output result

The XSLT stylesheets have several parameters which can influence the result of the conversion.

6.1. HTML Parameters

Table 3. HTML Parameters

ParameterDescription
name="section.autolabel" expression="1" Turns on the autolabeling for sections (1. Title, 1.1. Subtitle, etc.
name="chapter.autolabel" expression="1" Turns on the autolabeling for chapters
name="html.stylesheet" expression="styles.css" Define the stylesheet which should be used.
name="html.cleanup" expression="1" Will try to clean-up the html code for better readability
name="chunk.first.sections" expression="0" Will try to clean-up the html code for better readability [TODO: Does not work yet]

6.2. pdf Parameters

Table 4. pdf Parameters

ParameterDescription
name="section.autolabel" expression="1" Turns on the autolabeling for sections (1. Title, 1.1. Subtitle, etc.
name="chapter.autolabel" expression="1" Turns on the autolabeling for chapters
name="html.stylesheet" expression="styles.css" Define the stylesheet which should be used.
name="html.cleanup" expression="1" Will try to clean-up the html code for better readability

6.3. Add content into the HTML output

Docbook allows to include external html files into the HTML output. For example you could use this to add Javascript into your HTML output.

For example use the following statement to include some html code.

				
<?dbhtml-include href="../../myadditonalcontent.html"?>
			

See Inserting external HTML code for details.