Declaration of a fragment 1.1. Define an element Defining an element in Leato is straightforward. The element to be declared is just appearing as a regular XML element. Define sub-elements Compact Mode Defining sub element is as simple. It represents the same declaration as in the pervious example.
Developer can now move declaration around to maximize readability.
It allows, for example, some depth nested elements to be moved out and thus make the declaration easier to read. At most, only one occurrence of elements having the same name is non-empty in the declaration. There is no constraint on which element of the same name should contain the sub-element's declaration. Though, it generally enhances readability if developer move out sub-element which occur inside more than one element. Compact mode and expanded mode can be mixed in justice of developer to maximize readability.