Home Forums DITA and XMetaL Discussion Modifying Insert Element Behavior Reply To: Modifying Insert Element Behavior

Su-Laine Yeo

Reply to: Modifying Insert Element Behavior

Hi,

I haven't been able to reproduce this problem using the default configuration of XMetaL 5.5.

For most Insert Element operations, you can configure what sub-elements are inserted by default. To do this, edit the .CTM file associated with the particular document types. For example, for DITA concept topics the .CTM file is called concept_ditabase.ctm and is located in C:Program FilesXMetaL 5.5AuthorDITAXACsconcept .

The default .CTM file for DITA topic types contains the following code:

[code] [/code]

Using XMetaL Developer to edit CTM files is a bit easier than editing them in a text editor. If you change your concept_ditabase.ctm file to make it look more like the above and then restart XMetaL, the next time you insert a into a DITA concept topic you should get a element, an <image> element, and no </p> <p> element.</p> <p>Each DITA topic type is controlled by a different CTM file, so you will probably want to make your changes in all the CTM files here: C:Program FilesXMetaL 6.0AuthorDITAXACs</p> <p>If you just want a clean set of the CTM files that are installed by default, you could do  a complete uninstall-reinstall (<a href="http://forums.xmetal.com/index.php/topic,67.0.html" rel="nofollow">http://forums.xmetal.com/index.php/topic,67.0.html</a>). Or if you're on product maintenance, feel free to contact XMetaL Support and we can send you the files.</p> <p>Cheers,<br />Su-Laine</p> <p></image>

Reply

Products
Downloads
Support