Replacing or Modifying Invalid Elements
Using the .dcf file, you can create lists of elements that can be used to replace or modify invalid elements to make them contextually valid.
A substitution list is a list of elements that can be replaced and the elements that can replace them. If an author tries to insert an element that is contextually invalid, and a substitution list is defined for the invalid element, Arbortext Editor attempts to insert the elements from the substitution list.
To configure an 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 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 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.
|
Arbortext Editor attempts to insert the elements in the substitution list in the order they are declared in the .dcf file.
|
13. Choose > to save the changes you have made to the .dcf file.
You can also create a list of elements that Arbortext Editor attempts to insert around (wrap) contextually invalid elements to make them valid.
To configure a list of wrapper elements to correct invalid markup:
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 InsertAroundToFix.
|
The InsertAroundToFix element only enables you to correct one level of markup.
|
6. Place your cursor next to the InsertAroundToFix element, choose > , and then choose ElementListItem.
7. Click next to the ElementListItem 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.
|
8. In the element field, choose an element that you want to add to the list of elements used as wrappers when contextually valid markup is added to a document.
9. Click OK. While you can add as many ElementListItem elements as you want to your InsertAroundToFix list, the element only enables you to correct one level of markup.
|
Arbortext Editor attempts to insert the InsertAroundToFix elements in the order they are declared in the .dcf file.
|
10. Choose > to save the changes you have made to the .dcf file.