<list> contains any sequence of items organized as a list. [3.7. Lists] |
Module | core |
Attributes | Attributes att.global (@xml:id, @n, @xml:lang, @xml:base, @xml:space) (att.global.rendition (@rend, @rendition)) (att.global.responsibility (@cert, @resp)) att.typed (@type) rend rend¶ | describes the way the list should be rendered. Status | Optional | Datatype | 1–∞ occurrences of
data.enumerated separated by whitespace | Legal values are: | - bulleted
- (A bulleted list) Bulleted lists will appear with each item preceded by a leading dot.
- inline
- (An inline list) Inline lists appear within a paragraph of ordinary text; list items do not start on a new line, but follow immediately from the preceding text or item. The value "inline" may be combined with another value; for example, "ordered inline" means that the list will be rendered inline, but each item will be preceded by a number in parentheses: (1) first item (2) second item, and so on.
- ordered
- (A numbered list) Items in a numbered list will be preceded by a number. If the list is inline, then the number will be enclosed in parentheses, but if it is a block-level list (the default), the number will be followed by a period.
- simple
- (A simple list (no bullets or numbers)) Items in a simple list will be rendered with no bullet or preceding number at all.
|
| type type¶ | describes the nature of the items in the list.Status | Optional | Datatype |
data.enumerated | Legal values are: | - gloss
| Note | Previous versions of these Guidelines recommended the use of type on list to encode the rendering or appearance of a list (whether it was bulleted, numbered, etc.). The current recommendation is to use the rend or style attributes for these aspects of a list, while using type for the more appropriate task of characterizing the nature of the content of a list. | Note | The formal syntax of the element declarations allows label tags to be omitted from lists tagged <list type="gloss">; this is however a semantic error. |
|
|
Member of | |
Contained by | |
May contain | |
Declaration |
element list
{
attribute rend { list { + } }?,
attribute type { text }?,
(
( ( model.divTop ) | ( model.global ) )*,
(
( item, model.global* )+
| (
headLabel?,
headItem?,
( label, model.global*, item, model.global* )+
)
),
( ( model.divBottom ), model.global* )*
)
} |
Schematron | <sch:rule context="tei:list[@type='gloss']"> <sch:assert test="tei:label">The content of a "gloss" list should include a sequence of one or more pairs of a label element followed by an item element</sch:assert></sch:rule>
|
Note | May contain an optional heading followed by a series of items, or a series of label and item pairs, the latter being optionally preceded by one or two specialized headings. |