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 the paths to these XML metadata files 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:

    1. PUBID/SYSID

      In the PUBID and SYSID fields, specify the paths to your DTD.

    2. Schema

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

      You can specify an absolute or a relative path to your schema. A relative path may be specified with the $SERNA_DATA_DIR variable that points to the directory where Serna is installed. For example: $SERNA_DATA_DIR/plugins/my-plugin/my-plugin.xsd.

    3. Stylesheet

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

      You can specify an absolute or a relative path to your stylesheet. A relative path may be specified with the $SERNA_DATA_DIR variable that points to the directory where Serna is installed. For example: $SERNA_DATA_DIR/plugins/my-plugin/my-plugin.xsl.

    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.
  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.
Related concepts
Specifying the Root Element for a New Document
Related tasks
Creating a New Document with a Template
Related information
New Document Dialog
Enter Root Element Dialog