Reply to: XML self closing elementDecember 4, 2013 at 8:22 pm
How is the element defined in the schema?
Standard default behaviour after insertion of any element is usually to put focus on the “content” of the element. What “content” means depends on the type of element however.
If it is defined as an empty element then the blue diamond will be displayed (in both Tags On and Normal view). That is by design and is automatic. After insertion of an empty element the focus is placed on the blue diamond (ie: “inside” or “on” the element). This allows the element to be removed and also allows attributes to be set.
If it is defined to allow children or text (PCDATA or CDATA) then just the tags will be displayed in Tags On view and you will see nothing in Normal view (except usually the text cursor). After insertion of such an element the focus is placed inside the element, allowing the user to insert a child element (if allowed) or type text (if allowed).
If the resulting insertion is recognized as an HTML or CALS table (automatic based on definition in the schema) then the selection is usually placed inside the first cell of the table.
If the resulting insertion is recognized as a list (CTM settings) then the selection is usually placed inside the first list item.