OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

office message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: revised proposal: new attributes text:style-override and text:list-id


Dear TC members,

This is the revised proposal about the introduction of the following new
attributes:
- text:list-id for numbered paragraphs - <text:numbered-paragraph>
- text:style-override for list items - <text:list-item>
Beside these new attributes this proposal also includes some
clarifications regarding lists in ODF.

The proposal is the result of the discussion during the TC calls and on
this mailing list of two initial proposals. One is about text:list-id -
see http://www.oasis-open.org/archives/office/200611/msg00052.html. The
other one is about text:style-override - see
http://www.oasis-open.org/archives/office/200611/msg00053.html.
Posting http://lists.oasis-open.org/archives/office/200701/msg00010.html
tries to find a compromis, but some additional clarifications about
lists in ODF are discussed - see mailing list thread started with
posting http://lists.oasis-open.org/archives/office/200702/msg00046.html


Proposal:
Introduce new mandatory attribute text:list-id for
<text:numbered-paragraph>. The purpose of this attribute is to group
certain instances of <text:numbered-paragraph> together to one list.
Thus, all numbered paragraphs with the same list-id form a list and each
list-id defines one counter domain.

For text documents in previous ODF versions, which doesn't contain the
list-id attribute, the following handling is proposed:
- A series of numbered paragraphs using the same list style can easily
be implied to be part of the same list.
- A numbered paragraph that does not have a list-id gets the list-id of
the last numbered-paragraph on that same level using the same style. If
the previous has a different style, then a new list is started.

If a numbered paragraph doesn't specify a list style, it's proposed to
use the list style, which is applied to the numbered paragraph on the
superior list level of the same list. If no such numbered paragraph
exists, a default list style is applied.

For the start values of the counter domain defined by a list-id it's
proposed to use the start values of the list style of the first numbered
paragraph of the list.

Introduce new optional attribute text:style-override for
<text:list-item>. The purpose of this attribute is that each list item
can override the defined list style of its list block by a certain list
style. The complete list level definitions of the overriding list style
is used to override the definitions of the overriden list style. If the
overriding list style only contains the definition for one list level,
only the list level definition of this list level is overriden. Thus,
the list style, which is applied to the list item is a somehow a list
style, which is formed by taking the list style of the list block
overriden by the list level definitions of the list style given in the
text:style-override attribute.

Each top-most list block denotes a certain list and defines the
counter domain for its including list items and sub lists. The list
style, which will be applied to this list, can define start values for
each list level. A specified list style on a certain sub list overrides
a possible given start value for its list level, if it contains the list
definition for this list level. Each sub list restarts the counter for
its list level.

Each sub list can have its own list style and it's proposed that the
complete list level definitions of this list style are applied to its
list items. E.g., a sub list on list level 3 defines an own list style
containing list level definitions for list level 2 and 3. Thus, these
list level definitions are used, if needed, to build the list label of
its list items and to layout its list items.

The ODF specification 1.1 - see chapter 4.3.1 about list blocks - states 
that only the counter domain of the direct preceding list can be 
continued using attribute text:continue-numbering. It's proposed to 
extend this statement to any preceding list.

List styles contain definitions for certain list levels. The list level
definitions don't have to be complete. E.g., a certain list style can
contain the list level definitions for list level 2 and 3.
Thus, it can happen, that such a list style is applied to a certain list
item and a missing list level definition is needed to build the contents
of the list label. E.g., a list style only containing list level
definition for list level 2 is applied on a list item on list level 2.
But, it's specified, that the list label should contain the number of
superior list level 1. Thus, list level definition for list level 1 is
needed to determine the number format.
It's proposed use the list level definition for list level 1, which is 
applied the parent/superior list item on list level 1. If no 
parent/superior list item on list level 1 exists, use a default list 
style. This is the same default list style, which is mentioned in 
chapter 4.3.1 of ODF specification 1.1 about list blocks. The same 
should be applied to numbered paragraphs of a certain list.


Regards, Oliver



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]