For certain types of XML documents there are predefined document templates, e.g for Docbook and DITA documents. To create such documents, use the New Document Dialog and merely choose the name of the appropriate template, and the appropriate XML metadata, such as DTD, schema and stylesheet, will be applied automatically.
See Document Template Development for instructions on how to create your own custom document templates for your XML documents.
To call up the
New Document Dialog, choose , or click the
New Document button on the toolbar, or press
Ctrl-N.
Figure 1. New Document Dialog.
In the New Document Dialog, select a Category and a Template.
E.g. choose: Docbook V4.5 - Book to create a Docbook with the book root element.
You can click the Details... button to see the values provided by the selected template and change them if needed.
In the File Name field, enter the filename. You can use the Browse button to specify the file location.
If the selected template contains a particular root element, the new document will be created with this root element.
Otherwise, you will have to specify the root element in the Enter Root Element Dialog.