About Arbortext Styler > Working with Modules > Developing a New Stylesheet Using Existing Modules
  
Developing a New Stylesheet Using Existing Modules
Arbortext Styler enables you to create a new stylesheet using existing modules. This procedure assumes that you have modules available to use as building blocks for the new stylesheet. In particular, you need to have the Styler Formatting Elements (SFE) required for the stylesheet available in a module. You can move those to a module by opening an existing stylesheet in Arbortext Styler that contains the necessary SFEs, selecting the SFEs in the Elements list, and using File > Move to Module to move the elements to a module. If the SFEs are not available in a module, you could also copy and paste them from another stylesheet or create them.
* 
SFEs associated with a Table of Contents definition must remain in the same module as the associated table of contents and cannot be copied or moved to another module. These elements begin with _sfe:Toc. If any of these SFEs are selected, the Move.. and Copy to Module menu items are disabled. If the Table of Contents definition is moved to a module, the associated SFEs move with it.
Example: Developing a New Stylesheet Using Modules
1. In Arbortext Editor, open your document and select Styler > New Empty Stylesheet menu to open an empty stylesheet.
2. In Arbortext Styler, select File > Modules.
The Modules dialog box opens.
3. Select the Add button.
The Add Module dialog box opens.
4. Browse to the directory containing your stylesheet modules, select from the list of modules a module you would like to add to your stylesheet, and click the Add button.
The new module appears in the Modules dialog box's module hierarchy as a child of whatever module was highlighted in the dialog box when you clicked the Add button. Keep the top level module selected in the dialog box to create a set of sibling children.
5. Repeat steps 3 and 4 until you have added all relevant modules to your stylesheet.
This is an image of the Modules dialog box with the stylesheet name highlighted, and the module definitions “blocks”, “graphics”, “hiddens” and “inlines” listed for the stylesheet
6. Click Close to exit the Modules dialog box.
7. Select Insert > Add Elements from Document or Doctype
The Add New Elements dialog box opens.
8. Make sure that the document type listed in the Document Type field is correct and that the Include declared elements from this document type option is selected:
This is an image of the Add New Elements dialog box, with the axdocbook doctype defined in the Document Type field and the Include declared elements from this document type and Include namespaced elements from this document options selected
9. Click OK to close the dialog box. All elements from the document type that have not been added to the stylesheet via the module hierarchy are added to the root module in the Elements list.
10. Apply styling to any unstyled elements that have been added to the stylesheet, via the Edit > Style menu option.
11. If you did not add a module containing other necessary definitions, use the appropriate user interface elements to develop those definitions.
For example, use the Insert > Table of Contents menu option to create a new table of contents definition.