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:
To call up the Open Document with Template Dialog, choose .
In the Open Document with Template Dialog, do the following:
Figure 1. Open Document with Template Dialog.
You can configure the list of offered file types. For instructions, see Specifying File Types For Opening In Serna.
The Choose Document Template Dialog will appear.
In the Choose Document Template Dialog, choose the document category and template.
For example, if you are opening an XHTML document, select the With Validation Template. Serna will open your document with this template.
andYou 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.
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.
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.
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.
See Document Template Development for instructions on how to create your own custom document templates for your XML documents.