The structure of XML templates for a book
For each book that you work on, you need to create a new working directory on your computer
operating system that contains the book's XML files (the "content"
) and stylesheets (the
). So, for example, if you have a new book called "mybook"
- Create a directory with your operating system's file manager called /mybook.
- In your operating system's file manager, go to the directory copeboox-master.
Copy the whole directory /xml.
- Go to the directory /mybook and paste the copied directory /xml into it.
You can now start editing XML files and modify stylesheet features for typesetting the new
There are several XML template files in the directory /xml
provide examples of tagging. These files cover the main components of a book:
- book files—these are XML files that
contain all components of a book and include
metadata tags that contain formation about the book. There are two book files that give
you the option to create a book with part pages (booktemplate-parts.xml) or without
part pages (booktemplate-noparts.xml).
(acknowledgments.xml)—this file uses the <preface> element for an
acknowledgments page in output documents
- acronyms (acronyms.xml)—this file uses a
<variablelist> element nested inside a <glossary> book component to
format a list of acronyms
- appendix (appendix.xml)—this sample
appendix uses the same tagging as a chapter so that the text and section headings look the
same as chapters
- bibliography database
(bibliodatabase.xml)—this is a list of references for a whole book; it's possible
to use this one list of all references to create smaller reference lists for each
- chapters (book-chap1.xml,
- executive summary (execsummary.xml)—this
file uses the <preface> element for an executive summary
- glossary—there are two glossary files that
give you options for creating a glossary with division
titles using the <glossentry> element (glossary.xml), or a
glossary without division titles using the <variablelist> element
- index (index.xml)—this is an empty index file
that will "pull in" index terms that are embedded in tagging in the chapters, to
create a full index in output documents
- preface (preface.xml)—this file uses the
<preface> element for a preface page
- references (references.xml)—this file
contains empty tags that point to the identification (ID) names of fully tagged references
in the "bibliography.xml" file. This is an option to create several new reference
lists that contain selected references from a bibliography list.