Creating a New Document

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.

Note:

See Document Template Development for instructions on how to create your own custom document templates for your XML documents.

  1. Call up the New Document Dialog.

    To call up the New Document Dialog, choose Document > New Document , or click the New Document button on the toolbar, or press Ctrl-N.

    Figure 1. New Document Dialog.



  2. Select a document template.

    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.

    Tip:

    You can click the Details... button to see the values provided by the selected template and change them if needed.

  3. Specify the filename and location for the new document.

    In the File Name field, enter the filename. You can use the Browse button to specify the file location.

  4. Click OK.

    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.

Related concepts
Document Template Details
Specifying the Root Element for a New Document
Related tasks
Opening an Existing Document
Saving a Document
Closing a Document
Creating a New Document with the Default Template
Creating a New Document without a Template
Related information
Document Template Development