##### 30.11.2.6 Including or excluding the type list attribute

Three attributes apply to list wrappers (ol, ul) and list items (li): type, start, and value; the first two apply only to list wrappers:

- The type attribute specifies the kind of numbering, such as 1 or a.
- The start attribute specifies the starting value for the list; DITA2Go applies this attribute if lists are not nested, and a list is interrupted by another list. In that case, start tells the second (resumed) part of the first list where to restart numbering.
- The value attribute applies also to list items, and specifies the number for the current item.

Before CSS, this was how you controlled lists.

By default, DITA2Go omits the type attribute from list wrappers ol and ul. To add the type attribute to list wrappers:

    [CSS]
    ; NoAttribLists = Yes (default, omit type attribute from list tags),
    ; or No (include type, start, and value attributes in list tags)
    NoAttribLists = No
    ; UseListTypeAttribute = Yes (default for JavaHelp, to fix CSS bug)
    ;  or No (default for other formats, go by NoAttribLists value)
    UseListTypeAttribute = Yes

Note: If you use both Mif2Go and DITA2Go, be aware that the default for NoAttribLists is No for Mif2Go.

When NoAttribLists=No, all three attributes are allowed on list tags.

When NoAttribLists=Yes, the value and start attributes are allowed, and use of the type attribute is left up to the value of UseListTypeAttribute, which defaults to No (meaning leave it up to NoAttribLists) except for JavaHelp and Oracle help, both of which need the type attribute.

Previous Topic: 30.11.2.5 Omitting CSS class attributes from list entries

Next Topic: 30.11.3 Indenting list items

Parent Topic: 30.11.2 Converting list formats to HTML list styles

Sibling Topics:

30.11.2.1 Specifying HTML list styles (deprecated)

30.11.2.2 Converting lists with multiple paragraph formats

30.11.2.3 Converting nested lists

30.11.2.4 Converting dictionary lists

30.11.2.5 Omitting CSS class attributes from list entries

Table of Contents • Index