You can add a new Document Type Association or edit the properties of an existing one
from the option pane. All the changes can be made into the Document type edit
dialog.
The Document Type Dialog
You can specify the following properties for a document type:
Note: The initial mode for an document type can also be customized from the Edit
modes preferences panel located in
.
You can specify the association rules used for determining a
document type for an opened XML document. A rule can define one or more conditions. All
conditions need to be fulfilled in order for a specific rule to be chosen. Conditions can
specify:
- Namespace - The namespace of the document that matches the document
type.
- Root local name of document - The local name of the document that
matches the document type.
- File name - The file name (including the extension) of the document
that matches the document type.
- Public ID (for DTDs) - The PUBLIC identifier of the document that
matches the document type.
- Java class - Name of Java class that is called for finding if the
document type should be used for an XML document. Java class must implement ro.sync.ecss.extensions.api.DocumentTypeCustomRuleMatcher
interface from Author API.
In the Schema tab, you can specify the
type and URI of schema used for validation and content completion of all documents from the
document type, when there is no schema detected in the document.
You can choose one of the following schema types:
- DTD
- Relax NG schema (XML syntax)
- Relax NG schema (XML syntax) + Schematron
- Relax NG schema (compact syntax)
- XML Schema
- XML Schema + Schematron rules
- NVDL schema