#### 11.2.3 Assigning properties to element types

You must assign element type properties to the full class attribute of the element in question, because the same element name can be reused in another context; for example, both as a topic element and as a topicref in a map. You can set a maximum of 11 properties for any one element; DITA2Go ignores any additional properties.

To specify properties for element types:

    [ElementTypes]
    ; full class attribute = properties to use for element
    class/attribute of/element = property1 property2 ...

For example:

    [ElementTypes]
    topic/strow task/chrow = Task TabRow TabBody
    map/topicref bookmap/colophon = Map Ref Topic
    topic/component = Text Var
    topic/copyryear =

These examples show a few of the default property assignments listed in §B. Element type default properties.

An empty assignment means the element is block only (not inline). If an element does not have the Inline property, it is treated as block, and is assumed to start a new paragraph, or to contain paragraphs or higher aggregates. If an element has the Text property, it starts a block (paragraph) format. This is the default for all elements that do not have the Inline property.

Previous Topic: 11.2.2 Understanding what properties are available

Next Topic: 11.2.4 Adding the full class attribute to an element

Parent Topic: 11.2 Specifying properties of element types

Sibling Topics:

11.2.1 Understanding when to assign element type properties

11.2.2 Understanding what properties are available

11.2.4 Adding the full class attribute to an element