Creating a New Document without a Template

If you want to create an XML document for which you have some combination of DTD, schema, or stylesheet but do not have a document template , you should provide these XML metadata values manually.

  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. In the New Document Dialog, click the Details... button.
  3. Specify metadata details manually.
    Enter the appropriate XML metadata values manually:
    Note: Only the Stylesheet field is obligatory.
    1. DTD PUBID and DTD SYSID

      In the PUBID and SYSID fields, specify the paths to your DTD.
      Note: The PUBID field is disabled if SYSID is empty.
    2. Schema

      In the Schema field, specify the path to your specific Schema. You can use the Browse button.

      You can specify an absolute or a relative path to your schema.

    3. Stylesheet

      In the Stylesheet field, specify the path to your specific stylesheet. You can use the Browse button.

      You can specify an absolute or a relative path to your stylesheet..

    4. Encoding

      Select encoding from the Encoding drop-down list.

    Figure 2. Specifying metadata details in the New Document Dialog.



  4. 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.

  5. Click OK. The Enter Root Element Dialog will appear.

    Figure 3. Enter Root Element Dialog offering a limited set of root elements.



  6. Specify the root element.

    In the Enter Root Element Dialog, do the following:

    1. Select the root element from the Root Element drop-down list.
    2. Click OK.
    A new document with the specified root element will be created.
Related concepts
Document Template Details
Specifying the Root Element for a New Document
Related tasks
Creating a New Document with the Default Template
Related information
New Document Dialog
Enter Root Element Dialog