Edit online

Making Changes to an Existing Framework (Document Type)

It is possible to make minor changes to an existing framework (document type) configuration, instead of creating a new one.

The following procedure exemplifies how to achieve this for a specific use-case where an existing DITA framework is being changed so that the Insert Image Author mode action is available inside the <fig> element:
  1. If you do not already know the name of the framework, open a document from that framework, go to Window > Show View and select Properties. The name of the framework is listed in the Document Type entry.
  2. Open the Preferences dialog box (Options > Preferences) and go to the Document Type Association preferences page, and locate your framework (for example, DITA - Extension).
  3. If it is a built-in framework that has not already been extended/edited, it is recommended to use the Extend button to create an extension for it. If it has already been extended (for example, a document type with the name DITA - Extension has been extended), you can use the Edit button.

    Step Result: This opens the Document Type Configuration dialog box where you can define the set of rules and settings for your custom framework.

  4. Configure the extension using the tabs on the bottom half of the dialog box. For our example of making the Insert Image Author mode action available inside the <fig> element:
    1. Go to the Author tab and then the Actions subtab.
    2. Locate the action named insert.image and edit it.
    3. Change the Activation XPath field to make the action available in contexts where the <fig> element is available:
      oxy:allows-child-element("", "class", " topic/image ") or oxy:allows-child-element("", "class", " topic/fig ")
  5. Click OK to close the configuration dialog box and then OK or Apply to save your changes.