simplelist

$Revision: 1.3 $

$Date: 2002/06/12 11:18:36 $

simplelist — An undecorated list of single words or short phrases

Synopsis

Content Model

simplelist ::=
(member+)

Attributes

Common attributes

Name

Type

Default

columnsCDATANone
type
Enumeration:
horiz
inline
vert
"vert"

Description

A SimpleList is a list of words or phrases. It offers a convenient alternative to the other list elements for inline content.

Processing expectations

Ironically, the processing expectations of a SimpleList are quite complex.

The presentation of a SimpleList is controlled by the Type attribute, which has three possible values:

Inline

Indicates that the Members of the list should be rendered as a comma separated, inline list.

Horiz

Indicates that the Members of the list should be rendered in a tabular fashion with members running across the rows.

Vert

Indicates that the Members of the list should be rendered in a tabular fashion with members running down the columns. This is the default.

In both of the tabular cases, the number of columns in the table is controlled by the Columns attribute.

Children

The following elements occur in simplelist: member.

Attributes

columns

Columns specifies the number of columns to be used in the presentation of a SimpleList with a Type of Vert or Horiz. If Columns is unspecified, 1 is assumed.

type

Type specifies how the Members of the SimpleList are to be formatted. (This attribute would better fit DocBook semantics if it were named “Class”).

See Also

calloutlist, itemizedlist, listitem, orderedlist, segmentedlist, variablelist.

Examples

<!DOCTYPE para PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
          "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<para>
Here is a <sgmltag>SimpleList</sgmltag>, rendered inline: 
<simplelist type='inline'>
<member>A</member>
<member>B</member>
<member>C</member>
<member>D</member>
<member>E</member>
<member>F</member>
<member>G</member>
</simplelist>
</para>

Here is a SimpleList, rendered inline: A, B, C, D, E, F, G

<!DOCTYPE para PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
          "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<para>
Here is the same <sgmltag>SimpleList</sgmltag> rendered horizontally with 
three columns:
<simplelist type='horiz' columns='3'>
<member>A</member>
<member>B</member>
<member>C</member>
<member>D</member>
<member>E</member>
<member>F</member>
<member>G</member>
</simplelist>
</para>

Here is the same SimpleList rendered horizontally with three columns:
ABC
DEF
G  

<!DOCTYPE para PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
          "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<para>
Finally, here is the list rendered vertically:
<simplelist type='vert' columns='3'>
<member>A</member>
<member>B</member>
<member>C</member>
<member>D</member>
<member>E</member>
<member>F</member>
<member>G</member>
</simplelist>
</para>

Finally, here is the list rendered vertically:
ADG
BE 
CF