Document Types > Creating a Document Type Definition (DTD) > Specifying a Default Document Extension
Specifying a Default Document Extension
You can specify the extension to which you want documents saved in Arbortext Editor in a document type's .dcf file.
To specify a default document extension:
1. Open Arbortext Architect.
2. Choose File > Open.
3. Locate the directory in which the document type whose .dcf file you want to modify is saved, and click Select.
4. Once the document type is loaded, choose Edit > DCF. 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.
5. Locate the Options element in the DCF Editor. If the file doesn't include an Options element, add one.
Open the Document Type Viewer (Tools > Document Type Viewer) to view the element hierarchy for the .dcf file. This will help you determine the valid location for the Options element.
6. Click next to the Options 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. Type the file extension you want to use for documents of this document type in the defaultExtension field. This is a CDATA attribute, so you may type any combination of letters, numbers, and symbols. By default, documents are saved as .xml or .sgm.
8. Click OK.
9. Choose File > Save to save the changes you have made to the .dcf file.