1.1.4. Attributes.xml

The configuration file attributes.xml defines attributes used in attribute-sets.

Structure of attributes.xml

<attributes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">1
  <group name="Space-before">2
    <attribute type="length" default="0pt">space-before</attribute>3
    <attribute type="list" default="left" values="justify,center,left,right,start,end">text-align</attribute>
    <attribute type="color" default="black">border-color</attribute>
  </group>
</attributes>
1

Tag attributes is a root element and can occur in the file only once. It can contain unlimited number of group tags.

2

Tag group defines a group of attributes. The name defines the group name. It can contain unlimited number of attribute tags.

3

Tag attribute defines the name of an attribute and its features.

The type defines the type of attribute. Predefined values of type are length, boolean, string, integer, table, float, list, list-open, uri, number, color, filename, rtf, font. Their graphics implementations are listed in Editable graphics parts.

The default specifies default attribute type value. It is compulsory and its content must correspond to the component, eventually must be contained in the predefined value list.

Tags value specify a list of predefined attribute values (separeted by comma).