Noeud:Simple List, Noeud « Next »:, Noeud « Previous »:Segmented List, Noeud « Up »:Lists



Simple List


SimpleList = ( Member+ )

Elements : SimpleList, Member.

Attributes : Columns, Type.

The SimpleList element is used to define a simple list of words or groups of words.

The SimpleList element is composed of one or several Member elements, each one containing a member of the simple list. Unlike the other lists in which members are block elements, the members of a simple list are inline elements.

The Type attribute of the SimpleList element indiocates how to present the list. It can get one of the following values:

Inline
The list is rendered "inline": the members of the list are written in the flow of text, separated for example by commas.
Horiz
The list is rendered "horinzontally": the members of the list fill from left to right the lines of a table.
Vert
The list is rendered "vertically": the members of the list fill from top to bottom the columns of a table.

The Columns attribute of the SimpleList element specifies, when Type is Horiz or Vert, the number of columns of the table. If this attribute is not specified, the value 1 is used.

<para>Things to buy, inline:
  <simplelist type="inline">
    <member>Eggs</member>
    <member>Flour</member>
    <member>Sugar</member>
    <member>Milk</member>
    <member>Oil</member>
  </simplelist>,
vertically on three columns:
  <simplelist type="vert" columns="3">
    <member>Eggs</member>
    <member>Flour</member>
    <member>Sugar</member>
    <member>Milk</member>
    <member>Oil</member>
  </simplelist>
or horizontally, always on three columns:
  <simplelist type="horiz" columns="3">
    <member>Eggs</member>
    <member>Flour</member>
    <member>Sugar</member>
    <member>Milk</member>
    <member>Oil</member>
  </simplelist>
</para>