Creating a Framework Using an Extension Script
A custom framework (document type) can be created using a special XML descriptor file, either from scratch or by extending an existing built-in framework (such as DITA or DocBook) and then making modifications to it. You can then easily share the custom framework with your team.
The easiest way to create such a descriptor is to use the New document wizard in Oxygen XML Editor/Author and choose the Extend Framework Script or Create Framework Script template.
Creating a Custom Framework Starting from an Existing Framework
- In a location where you have full write access, create a folder structure similar to this: custom_frameworks/dita-extension.
- In Oxygen XML Editor/Author, go to custom_frameworks folder in the Additional frameworks directories list and click OK or Apply to save your changes and close the dialog box. . Add the path to your
- Click the New button on the toolbar and select the Extend Framework Script template. Save it inside the previously configured framework path (e.g. custom_frameworks/dita-extension).
-
Set the
@base
attribute on the script element to the value of the name of the extended framework (e.g. DITA).Note: Removing the@base
attribute will create a framework from scratch. - Edit the script as described in Framework Extension Script File.
Creating a Custom Framework Without a Base Framework
- In a location where you have full write access, create a folder structure similar to this: custom_frameworks/dita-extension.
- In Oxygen XML Editor/Author, go to custom_frameworks folder in the Additional frameworks directories list and click OK or Apply to save your changes and close the dialog box. . Add the path to your
- Click New button on the toolbar and select the Create Framework Script template. Save it inside the previously configured framework path, custom_frameworks/dita-extension.
- Edit the script as described in Framework Extension Script File.
To test your customization, open a document that matches the newly created framework and inspect how your settings apply or go to
and inspect the newly generated framework structure.