To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=76694
Issue #|76694
Summary|Ordered list numbering in Writer doesn't match its xml
Component|Word processor
Version|OOo 2.2
Platform|PC
URL|
OS/Version|Windows XP
Status|UNCONFIRMED
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|formatting
Assigned to|mru
Reported by|jaysacco
------- Additional comments from [EMAIL PROTECTED] Wed Apr 25 17:51:17 +0000
2007 -------
There appears to be a mismatch in how Writer displays the XML in the attached
document vs what the XML actually specifies. It this isn't a bug, I'd
appreciate an explanation of how Writer is interpreting the XML correctly (I'm
writing docbook xml transformations that need to match what Writer displays).
Note: the xmlOrdered_20_List style used does not specify a vaule for
text:consecutive-numberingtext:consecutive-numbering. Even if you add
text:consecutive-numbering=false you get the same results noted below.
When opened in Writer, the attached document displays an ordered list that
contains sublists that are either ordered or unordered. The text at each list
entry matches what is displayed. The top level lists displays 12 items, all
numbered sequentially. However, when you examine content.xml, you'll see that
the top level list is actually made up of several top level lists, one after
the other.
The first top level list only contains list-item "1.". Other than someone is
making an assumption about starting numbering at 1 when there is no start-
value, there's no problem yet. This list is shown here:
<text:list text:style-name="xmlOrdered_20_List">
<text:list-item>
<text:p text:style-name="P1">1.</text:p>
</text:list-item>
</text:list>
The second top level list contains list-items "a." through "7.". Note that it
restarts numbering to 1 on its first list-item. There is no paragraph
associated with this list-item, it only contains another list-item that also
restarts numbering at 1.
PROBLEM 1: as an unnumbered list-item, shouldn't this be a text:list-header
instead of text:list-item? Otherwise, shouldn't Writer display it with a
number, which should be 1.?
It seems to me that the 2nd item in the list appears in the document correctly
(i.e. numbered as 2.) not because it is sequentially numbered from the first
top-level list above (which had one list-item that was numbered 1.), but
because it is the second item in the 2nd top-level list.
PROBLEM 2: If that's the case, shouldn't it be numbered with a 1 since the
first item (which contains the sublist a,b,c) wasn't numbered?
If that's not the case, then I'd like to know how Writer figures out that it's
number 2. Here's 2nd top level list:
<text:list text:style-name="xmlOrdered_20_List">
<text:list-item text:start-value="1">
<text:list>
<text:list-item text:start-value="1">
<text:p text:style-name="P1">a.</text:p>
</text:list-item>
<text:list-item>
<text:p text:style-name="P1">b</text:p>
</text:list-item>
</text:list>
</text:list-item>
<text:list-item>
<text:p text:style-name="P1">2.</text:p>
<text:list>
<text:list-item>
<text:p text:style-name="P1">a.</text:p>
</text:list-item>
<text:list-item>
<text:p text:style-name="P1">b.</text:p>
</text:list-item>
<text:list-item>
<text:p text:style-name="P1">c. </text:p>
</text:list-item>
</text:list>
</text:list-item>
<text:list-item>
<text:p text:style-name="P1">3. </text:p>
</text:list-item>
<text:list-item>
<text:p text:style-name="P1">4.</text:p>
</text:list-item>
<text:list-item>
<text:p text:style-name="P1">5.</text:p>
</text:list-item>
<text:list-item>
<text:p text:style-name="P1">6.</text:p>
</text:list-item>
<text:list-item>
<text:p text:style-name="P1">7.</text:p>
</text:list-item>
</text:list>
The third top-level list contains the values "a." through "10.". Note that it
is just like the list above. It restarts numbering to 1 on its first list-
item. There is no paragraph associated with this list-item, it only contains
another list-item that also restarts numbering at 1. This seems to be another
example of problem 1.
PROBLEM 3: When the document is displayed in Writer, the second top-level
list-item in this list is numbered "8." However, in the XML code it is the
second top-level list-item in a list that has a start-value of 1. So
shouldn't it appear numbered as "2." instead? In order to make it an 8, I
would have expected the XML for this list to have text:continue-
numbering="true" on the text:list element, a no text:start-value on the first
list-item element. It appears to me that Writer is not properly displaying
what the XML is specifying.
The third top-level list is shown here:
<text:list text:style-name="xmlOrdered_20_List">
<text:list-item text:start-value="1">
<text:list>
<text:list-item text:start-value="1">
<text:p text:style-name="P1">a.</text:p>
</text:list-item>
<text:list-item>
<text:p text:style-name="P1">b.</text:p>
</text:list-item>
<text:list-item>
<text:p text:style-name="P1">c.</text:p>
</text:list-item>
</text:list>
</text:list-item>
<text:list-item>
<text:p text:style-name="P1">8.</text:p>
</text:list-item>
<text:list-item>
<text:p text:style-name="P1">9.</text:p>
</text:list-item>
<text:list-item>
<text:p text:style-name="P1">10.</text:p>
</text:list-item>
</text:list>
There are more top-level lists but they use text:continue-numbering="true",
which seems to be correct in both the XML and how it is displayed in Writer.
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]