$segmentedlist-style
$segmentedlist-style — Choose segmented list presentation style.
Parameter:
{}segmentedlist-style
Defined in:
param.xsl
Used in:
main.xsl, param.xsl
Synopsis
$segmentedlist-style := 'table'
Description
Segmented lists can be presented in two different ways: as lists
or tables. The default is determined by
$segmentedlist-style
which must be either
“list
” or “table
”.
Consider the following segmentedlist
of (some of) the
US states and their capitals:
1 |<segmentedlist>
|<segtitle>State</segtitle>
|<segtitle>Capital</segtitle>
|<seglistitem>
5 |<seg>Alabama</seg>
|<seg>Montgomery</seg>
|</seglistitem>
|<seglistitem>
|<seg>Alaska</seg>
10 |<seg>Anchorage</seg>
|</seglistitem>
|<seglistitem>
|<seg>Arkansas</seg>
|<seg>Little Rock</seg>
15 |</seglistitem>
|</segmentedlist>
This can be rendered as a table, as shown in Figure 1, “Segmented list formatted as a table”:
State | Capital |
---|---|
Alabama | Montgomery |
Alaska | Anchorage |
Arkansas | Little Rock |
Figure 1. Segmented list formatted as a table
Or as a list, as shown in Figure 2, “Segmented list formatted as a list”:
State: Alabama
Capital: Montgomery
State: Alaska
Capital: Anchorage
State: Arkansas
Capital: Little Rock
Figure 2. Segmented list formatted as a list
The style can be selected on a per-list basis with the
db
processing instruction using the
segmentedlist-style
pseudo-attribute.
A table-summary
pseudo-attribute is also provided
for the table summary in tabular presentations.