<sl>

A simple list is a list that contains a few items of short, phrase-like content.

Rendering expectations

A simple list is typically rendered in the following way:

  • The content of each simple list item is placed on a separate line.
  • The lines are not distinguished by numbers, bullets, or icons.

Content model

( <data> | <sort-as> )*, <sli> +

In order
  1. Zero or more
  2. One or more <sli>

Attributes

The following attributes are available on this element: universal attributes and @compact.

The following attributes are available on this element: universal attributes and the attributes defined below.

@compact
Specifies whether the vertical spacing between list items is tightened. The following values are valid: yes, no, and -dita-use-conref-target. Some DITA processors or output formats might not support the @compact attribute.

Example

This section is non-normative.

The following code sample shows how a simple list could be used in a topic that discusses related modules:

<section>
  <title>Messages</title>
  <p>Messages from the ags_open module are identical with messages from:</p>
  <sl>
    <sli>ags_read</sli>
    <sli>ags_write</sli>
    <sli>ags_close</sli>
  </sl>
</section>