Oxygen XML Editor uses document type associations to associate a document type with a set of functionality provided by a
framework. To configure the Document Type Association options, open the
Preferences dialog box and go to .
The following actions are available in the preferences panel:
- Discover more frameworks by using add-ons update sites - specifies
update site URLs for framework add-ons
- Document types table - presents the currently defined document type
associations, ordered by priority and alphabetically. Each edited document type has a set of
association rules (used by the application to detect the proper document type association to
use for an opened XML document). 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 has 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 that allows you to edit an existing
association
Note: If you try to edit an existing association type when you do not have
write permissions to its store location, a dialog box will be shown, asking if you want to
extend the document type.
- Duplicate - opens a new dialog that allows you to duplicate the
configuration of an existing document type association
- Extend - extend an existing document type, allowing you to add or
remove functionality, starting from a base document type. All of these changes will be saved
as a patch. When the base document type is modified and evolves (for example, from one
application version to another) the extension will evolve along with the base document type,
allowing it to use the new actions added in the base 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 Editor 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)
- Enable DTD/XML Schema caching - when this option is enabled, the
associated DTDs or XML Schema are cached when parsed for the first time, improving
performance when opening new documents with similar schema associations
(This option is
enabled by default)