The Chapter.xml
file is a template for creating chapter files. Chapter files contain the content that make up a book. The following is a chapter template (Chapter.xml
) that is created after running the create_book
command. Note the DOCTYPE
is set to chapter
:
<?xml version='1.0'?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
]>
<chapter id="MYBOOK-Test">
<title>Test</title>
<para>
This is a test paragraph
</para>
<section id="MYBOOK-Test-Section_1_Test">
<title>Section 1 Test</title>
<para>
Test of a section
</para>
</section>
<section id="MYBOOK-Test-Section_2_Test">
<title>Section 2 Test</title>
<para>
Test of a section
</para>
</section>
</chapter>
Note
The chapter file should be renamed to reflect the chapter subject. For example, a chapter on product installation could be named Installation.xml
, whereas a chapter on setting up a piece of software would be better called Setup.xml
or Configuration.xml
.