Specifying Promote and Demote Behavior in a DITA Map
When you are editing a DITA Map or BookMap, Arbortext Editor enables you to use the DITA map toolbar to move elements up and down and to promote and demote elements in the map hierarchy. Depending on the operation, the selected element might need to be changed to another element. The DITA map element to which a selected element is changed is determined by an element substitution list configured in the DITA map's .dcf file.
To configure a DITA map element substitution list:
1. Open Arbortext Architect, and choose > .
2. Locate the directory in which the document type whose .dcf file you want to modify is saved, and click Select.
3. Once the document type is loaded, choose > . If the document type has a .dcf file, it displays in the Arbortext ArchitectDCF Editor window. If there is no .dcf file associated with this document type, Arbortext Architect automatically creates one.
4. Locate the ContextTransformations element in the DCF Editor. If the file doesn't include a ContextTransformations element, add one.
|
Open the Document Type Viewer ( > ) to view the element hierarchy for the .dcf file. This will help you determine the valid location for the ContextTransformations element.
|
5. Place your cursor next to the ContextTransformations element, choose > , and then choose Substitutions.
6. Click next to the Substitutions element to open the Modify Attributes dialog box
|
You must have the Force Required Attributes EntryEdit preference selected for this dialog box to open automatically.
|
7. In the element field, select the DITA map element for which you want to create a substitution list.
8. Click OK.
9. Place your cursor next to the Substitutions element, choose > , and then choose ElementListItem.
10. Click next to the ElementListItem element to open the Modify Attributes dialog box
11. In the element field, choose the DITA map element that you want to add as a substitute for the element you selected as the Substitutions element.
12. Click OK.
You can add as many ElementListItem elements as you want to your substitution list.
13. Choose > to save the changes you have made to the .dcf file.