4.3.1 List Block
A list is represented by the <text:list> element. It
contains an optional list header, followed by any number of list items.
Every list has a list level, which is
determined by the nesting of the <text:list>
elements. If a list is not contained within another list, the list level is 1.
If the list in contained within another list, the list level is the list level
of the list in which is it contained incremented by one. If a list is contained
in a table cell or text box, the list level returns to 1, even though the table
or textbox itself may be nested within another list.
The attributes that may be associated with the list element
are:
� Style
name
� Continue
numbering
<define name="text-list">
<element
name="text:list">
<ref
name="text-list-attr"/>
<optional>
<ref
name="text-list-header"/>
</optional>
<zeroOrMore>
<ref
name="text-list-item"/>
</zeroOrMore>
</element>
</define>
Style Name
The optional text:style-name
attribute specifies the name of the list style that is applied to the
list.
If this attribute is not included and therefore no list style
is specified, one of the following actions is taken:
�
If the list is contained within another list,
the list style defaults to the style of the surrounding list.
� If
there is no list style specified for the surrounding list, but the list
contains paragraphs that have paragraph styles attached specifying a list
style, this list style is used for any of these paragraphs.
� A
default list style is applied to any other paragraphs.
To determine which formatting properties are applied to a
list, the list level and list style name are taken into account. See section
14.10 for more information on list formatting properties.
<define name="text-list-attr"
combine="interleave">
<optional>
<attribute
name="text:style-name">
<ref
name="styleNameRef"/>
</attribute>
</optional>
</define>
Continue Numbering
By default, the first list item in a list starts with the
number specified in the list style. The continue numbering attribute
can be used to continue the numbering from the preceding list.
This attribute can be used with the <text:list>
element and can have a value of true or false.
If the value of the attribute is true and the
numbering style of the preceding list is the same as the current list, the
number of the first list item in the current list is the number of the last
item in the preceding list incremented by one.
<define name="text-list-attr"
combine="interleave">
<optional>
<attribute
name="text:continue-numbering">
<ref
name="boolean"/>
</attribute>
</optional>
</define>