The Document Type Association preferences panel is opened from menu .
Oxygen XML
is highly customizable. Practically you can associate an entire class of documents (grouped
logically by some common features like namespace, root element name or filename) to a bundle
consisting of CSS stylesheets, validation schemas, catalog files, new files templates,
transformation scenarios and even custom actions. The bundle is called document type
and the association is called Document Type Association.
The following actions are available in this preferences panel:
- Change framework directory location - Specifies a
from where Oxygen XML loads the document
types.
- Document types table - Presents the currently defined document type
associations, ordered by priority and alphabetically. Each row of the table represents a
document type association, each holding the following information:
When expanding a Document Type Association its defined rules are
presented. A rule is described by:
- Namespace - Specifies the namespace of the root element from
the association rules set (* (any) by default). If you want to apply the rule
only when the root element is in no namespace, leave this field empty (remove the
ANY_VALUE string).
- Root local name - Specifies the local name of the root element
(* (any) by default).
- File name - Specifies the name of the file (* (any) by
default).
- Public ID - Represents the Public ID of the matched
document.
- Java class - Presents the name of the Java class which is used
to determine if a document matches the rule.
- New - Opens a dialog box that allows you to add a new
association.
- Edit - Opens a new dialog allowing you to edit an existing
association.
Note: If you try to edit an existing association type when you have no write
permissions to its store location, a dialog box will be shown, asking if you want to
duplicate the document type.
- Delete - Deletes the selected associations.
- Enable DTD/XML Schema processing in document type detection - When
this option is enabled, the matching process also examines the DTD/XML Schema associated
with the document. For example, the fixed attributes declared in the DTD for the root
element are also analyzed, if this is specified in the association rules.
This is
especially useful if you are writing DITA customizations. DITA topics and maps are also
matched by looking for the DITAArchVersion attribute of the root element.
This attribute is specified as default in the DTD and it is detected in
the root element, helping Oxygen XML to correctly match the
DITA customization.
This option is enabled by default.
- Only for local DTD's / XML Schemas - When the previous feature is
enabled, you can choose with this option to process only the local DTD's / XML
Schemas.
This option is enabled by default.