Opening a Document with Manually Specified Parameters

When you open a document in WYSIWYG mode with the Open... command, Serna tries to provide you with stylesheet, schema, and encoding that best match your document by means of document templates.

To manually specify the schema, stylesheet, encoding or template to open the document with, do the following:

  1. Call up the Open Document with Template Dialog.

    To call up the Open Document with Template Dialog, choose Document > Open with Template... .

  2. Select the document to open.

    In the Open Document with Template Dialog, do the following:

    1. If necessary, filter files by type.

      Figure 1. Open Document with Template Dialog.



      Note:

      You can configure the list of offered file types. For instructions, see Specifying File Types For Opening In Serna.

    2. Browse for the document.
    3. Click Open.

    The Choose Document Template Dialog will appear.

  3. Select the document category and template.

    In the Choose Document Template Dialog, choose the document category and template.

    For example, if you are opening an XHTML document, select the XHTML Category and With Validation Template. Serna will open your document with this template.

    Note:

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

    Figure 2. Choose Document Template Dialog.



    1. Schema

      In the Schema field, see the path to the corresponding schema prescribed by the selected template.

      To assign the path to some schema other than that prescribed by the selected template, modify the path in the Schema field (or click the Browse button next to this field) . You can specify an absolute path as well as a relative path to your schema.

    2. Stylesheet

      In the Stylesheet field, see the path to the corresponding stylesheet prescribed by the selected template.

      To assign the path to some stylesheet other than that prescribed by the selected template, modify the path in the Stylesheet field (or click the Browse button next to this field). You can specify an absolute path as well as a relative path to your stylesheet.

    3. Encoding

      In the Encoding field, see the encoding prescribed by the selected template.

      To assign an encoding other than that prescribed by the selected template, select it from the Encoding drop-down list.

    Note:

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

  4. Click OK.
Related concepts
Large Document Support
Related tasks
Opening a Document When No Template Was Found