Association Rules Tab
To open the Association Rules tab of the Document type configuration dialog box, open the Preferences dialog box , go to Document Type Association, use the New, Edit, Duplicate, or Extend button, and click on the Association Rules tab.
New
- Opens the Document type rule dialog box allowing you to create association rules.
Edit
- Opens the Document type rule dialog box allowing you to edit the properties of the currently selected association rule.
Delete
- Deletes the currently selected association rules from the list.
Move Up
- Moves the selected association rule up one spot in the list.
Move Down
- Moves the selected association rule down one spot in the list.
By combining multiple association rules you can instruct Oxygen XML Editor to identify the type of a document. Oxygen XML Editor identifies the type of a document when the document matches at least one of the association rules. This tab gives you access to a Document type rule dialog box that you can use to create association rules that activate on any document matching all the criteria defined in the dialog box.
To create a new association rule, click the New button at the bottom of the Association
Rules tab, or to edit an existing rule, click the
Edit button.

The Document type rule dialog box includes the following fields and options:
- 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.
- Attribute Local name
- Specifies the local name of the attributes for the root element (* (any) by default).
- Attribute Namespace
- Specifies the namespace of the attributes for the root element (* (any) by default).
- Attribute Value
- Specifies the value of the attributes for the root element (* (any) by default).
- Java class
- Presents the name of the Java class that is used to determine if a document matches
the rule. This Java class should implement the
ro.sync.ecss.extensions.api.DocumentTypeCustomRuleMatcher
interface.