Home Forums General XMetaL Discussion XML self closing element Reply To: XML self closing element

Derek Read

Reply to: XML self closing element

The settings in the CTM file that make an element appear like an image (which is why you are seeing the red X) are set in the section. If you are creating your customization using XMetaL Developer then you have set a “Treat As Image” setting for the element in question (which results in the same thing being entered into the CTM file, it is just called something different in the CTM editor). In your CTM file you must have configured these settings to display the element as an image. Compare your CTM file to the Journalist CTM file. In the Journalist demo you will see this:

 
 
   Graphic
   FileRef
   Depth
   Width
   Alt
 
 
   InlineGraphic
   FileRef
   Depth
   Width
   Alt
 
 

If you want the element to display as an image, and have the image display you must configure the “Source-Attribute”. That tells XMetaL Author which attribute points to a file path. The XML source file must also have a valid path set as the value for that attribute. With these things in place XMetaL Author will automatically render any of the natively supported bitmap image types.

If you do not want the element to display as an image then you will need to remove those CTM settings. In this case, if the element is defined as “empty” in the DTD or Schema then a blue diamond will be displayed (this gives you something to select when viewing the document in Normal view).

Reply

Products
Downloads
Support