Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

21 Mapping text formats to HTML/XML > 21.12 Converting list formats to HTML > 21.12.2 Converting list formats to HTML list styles > 21.12.2.7 Including or excluding the type list attribute


21.12.2.7 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; Mif2Go 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, Mif2Go includes the type attribute in list wrappers ol and ul. To omit the type attribute from list wrappers:

[CSS]

; NoAttribLists = No (default, use type, start, and value attributes

; in list tags), or Yes (omit type attribute from list tags)

NoAttribLists = Yes

; 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 Yes for DITA2Go.

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.



21 Mapping text formats to HTML/XML > 21.12 Converting list formats to HTML > 21.12.2 Converting list formats to HTML list styles > 21.12.2.7 Including or excluding the type list attribute