An XML document in Serna is associated with the following XML metadata:
XSL Stylesheet tells Serna how to represent your XML documents, therefore it is required for content rendering in WYSIWYG Mode. Usually it's better to have a specific stylesheet for your document type, but you can also use the generic default stylesheet , if you do not have a specific one.
Serna uses DTDs for validation on opening a document. DTDs are sometimes required by the XML parser and may contain important internal or external entity declarations and #ID/ #IDREF attribute declarations.
Serna makes it possible to validate the content of an XML document against an XML Schema, automatically generate required elements , provide the user with a list of allowed elements in the current context and prevent insertion of invalid elements. An XML schema is not required, but is a great help for authoring.
If you have a DTD for your documents but do not have an XML schema , you can convert your DTD to a schema using Syntext Dtd2Xs.
On opening a document, Serna uses XML Catalogs, which contain paths to DTDs, Schemas, and stylesheets.
XML metadata is retrieved from different sources according to special rules.
When you open or create an XML document of a particular document type in Serna, you may but do not have to associate it manually with a DTD, stylesheet, schema, etc. This can be done automatically by means of Serna document templates containing a set of XML metadata that accompanies a particular document type.
XML metadata details and more metadata for the current document are listed in the Document Properties dialog.