To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=52330
                  Issue #:|52330
                  Summary:|Ordered Lists are not nested correctly in the flat
                          |XML
                Component:|xml
                  Version:|680m118
                 Platform:|All
                      URL:|
               OS/Version:|All
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P2
             Subcomponent:|code
              Assigned to:|jsi
              Reported by:|anupkshah





------- Additional comments from [EMAIL PROTECTED] Fri Jul 22 06:10:51 -0700 
2005 -------
Hi,

If I create a new Word processing/Text document and simply use the tool bar to
created bulleted or numbered lists, and then I use the ability to indent them to
created nested numbered or nested bulleted lists, while this appears to work
visually, this is actually produces XML that is semantically, or structurally
less accurate. This can potentially pose accessibility problems (imagine a
screen reader trying to convey to a blind user such a nested bulleted list -- it
becomes difficult to convey actual structure, making it harder to gain a mental
map of the information.)

Just to clarify, this problem seems to be when you mix bullets and numbered
items (e.g. numbered items contain bulleted lists, and bulletd lists contain
numbered items).

Below is the underyling XML snippet for a number of nested list items, and below
that I will propose how it should ideally be, and why:

1) Current:
<text:ordered-list text:style-name="L22">
  <text:list-item>
    <text:p text:style-name="P23">Bullet 1</text:p>
    <text:ordered-list>
      <text:list-item>
        <text:p text:style-name="P23">Bullet 1.1</text:p>
      </text:list-item>
      <text:list-item>
        <text:p text:style-name="P23">Bullet 1.2</text:p>
      </text:list-item>
    </text:ordered-list>
  </text:list-item>
  <text:list-item>
    <text:p text:style-name="P23">Bullet 2</text:p>
  </text:list-item>
</text:ordered-list>
<text:ordered-list text:style-name="L23">
  <text:list-item>
    <text:ordered-list>
      <text:list-item>
        <text:p text:style-name="P24">Number 2.1</text:p>
      </text:list-item>
      <text:list-item>
        <text:p text:style-name="P24">Number 2.2</text:p>
      </text:list-item>
    </text:ordered-list>
  </text:list-item>
</text:ordered-list>
<text:ordered-list text:style-name="L24">
  <text:list-item>
    <text:p text:style-name="P25">Bullet 3</text:p>
  </text:list-item>
</text:ordered-list>
<text:ordered-list text:style-name="L25">
  <text:list-item>
    <text:ordered-list>
      <text:list-item>
        <text:p text:style-name="P26">Number 3.1</text:p>
        <text:ordered-list>
          <text:list-item>
            <text:p text:style-name="P26">Number 3.1.1</text:p>
          </text:list-item>
          <text:list-item>
            <text:p text:style-name="P26">Number 3.1.2</text:p>
          </text:list-item>
        </text:ordered-list>
      </text:list-item>
      <text:list-item>
        <text:p text:style-name="P26">Number 3.2</text:p>
      </text:list-item>
    </text:ordered-list>
  </text:list-item>
</text:ordered-list>
<text:ordered-list text:style-name="L24">
  <text:list-item>
    <text:ordered-list>
      <text:list-item>
        <text:ordered-list>
          <text:list-item>
            <text:p text:style-name="P25">Bullet 3.2.1</text:p>
          </text:list-item>
          <text:list-item>
            <text:p text:style-name="P25">Bullet 3.2.2</text:p>
          </text:list-item>
        </text:ordered-list>
      </text:list-item>
    </text:ordered-list>
  </text:list-item>
</text:ordered-list>

As you can see from the above, each nested list starts in its own
<text:ordered-list> tag, with various empty <text:ordered-list> sub tags, until
it gets to the correct indentation level. This is redundant and less
semantically correct (XML after all is about adding structure to data.)

2) Propose that the above be somehow rendered as follows (see comment below as
well, on why this is important):
<text:ordered-list text:style-name="L22">
  <text:list-item>
    <text:p text:style-name="P23">Bullet 1</text:p>
    <text:ordered-list>
      <text:list-item>
        <text:p text:style-name="P23">Bullet 1.1</text:p>
      </text:list-item>
      <text:list-item>
        <text:p text:style-name="P23">Bullet 1.2</text:p>
      </text:list-item>
    </text:ordered-list>
  </text:list-item>
  <text:list-item>
    <text:p text:style-name="P23">Bullet 2</text:p>
    <text:ordered-list text:style-name="L23">
      <text:list-item>
        <text:p text:style-name="P24">Number 2.1</text:p>
      </text:list-item>
      <text:list-item>
        <text:p text:style-name="P24">Number 2.2</text:p>
      </text:list-item>
    </text:ordered-list>
  </text:list-item>
  <text:list-item>
    <text:p text:style-name="P25">Bullet 3</text:p>
    <text:ordered-list text:style-name="L25">
      <text:list-item>
        <text:p text:style-name="P26">Number 3.1</text:p>
        <text:ordered-list>
          <text:list-item>
            <text:p text:style-name="P26">Number 3.1.1</text:p>
          </text:list-item>
          <text:list-item>
            <text:p text:style-name="P26">Number 3.1.2</text:p>
          </text:list-item>
        </text:ordered-list>
      </text:list-item>
      <text:list-item>
        <text:p text:style-name="P26">Number 3.2</text:p>
        <text:ordered-list text:style-name="L24">
          <text:list-item>
            <text:p text:style-name="P25">Bullet 3.2.1</text:p>
          </text:list-item>
          <text:list-item>
            <text:p text:style-name="P25">Bullet 3.2.2</text:p>
          </text:list-item>
        </text:ordered-list>
      </text:list-item>
    </text:ordered-list>
  </text:list-item>
</text:ordered-list>

(I may have subtle errors in the above as I hand-edited the original problematic
example, but you get the idea!)
The idea behind this is simple: to have a structure, similar to (X)HTML how you
would nest lists.

I believe the OASIS XML Document format, from I have seen of the spec, allows
for these to be nested in this way, so I think OpenOffice should do as much as
it can to ensure this happens.

Why this issue is important:
1) Interoperability with other systems: if other systems need to convert this to
another XML format, (or any other text-based format), it is going to be more
complicated to deal with these problems. It may turn people away to other
solutions instead.
2) I believe Open Office gives the power to create truly clean XHTML (i.e. no
style information, just pure tags). This is critical for web accessibility and
the ability to manage large sites with many files via external CSS. The cleaner
the XHTML that can be output, the better the chance that people can use
OpenOffice to help them create web documents. What this implies is that
OpenOffice is being used to create the raw document (some style templates may be
used for users to see roughly how it might look, but that is taken care of by
company-wide CSS files).
3) Keeps the file size down (minor issue, but every little thing helps!)
4) Accessibility (important issue, especially in countries where it is a legal
requirement to ensure web sites and other sources of information are accessible,
or that someone can simply do their job even if they are disabled, etc).
Especially for the web, accessibility is achieved largely (though not solely) by
ensuring good semantic markup. With lists, imagine the above. It will normally
be converted to something rather ugly like the following:

<ul>
  <li>Bullet 1
    <ul>
      <li>Bullet 1.1</li>
      <li>Bullet 1.2</li>
    </ul>
  </li>
  <li>Bullet 2</li>
</ul>
<ol>
  <li>
    <ol>
      <li>Number 2.1</li>
      <li>Number 2.2</li>
    </ol>
  </li>
</ol>
<ul>
  <li>Bullet 3</li>
</ul>
<ol>
  <li>
    <ol>
      <li>Number 3.1
        <ol>
          <li>Number 3.1.1</li>
          <li>Number 3.1.2</li>
        </ol>
      </li>
      <li>Number 3.2</li>
    </ol>
  </li>
</ol>
<ul>
  <li>
    <ul>
      <li>
        <ol>
          <li>Bullet 3.2.1</li>
          <li>Bullet 3.2.2</li>
        </ol>
      </li>
    </ul>
  </li>
</ul>

Clearly the above is not acceptable.

Yet, what we really want is the following:

<ul>
  <li>Bullet 1
    <ul>
      <li>Bullet 1.1</li>
      <li>Bullet 1.2</li>
    </ul>
  </li>
  <li>Bullet 2
    <ol>
      <li>Number 2.1</li>
      <li>Number 2.2</li>
    </ol>
  </li>
  <li>Bullet 3
    <ol>
      <li>Number 3.1
        <ol>
          <li>Number 3.1.1</li>
          <li>Number 3.1.2</li>
        </ol>
      </li>
      <li>Number 3.2
        <ul>
          <li>Bullet 3.2.1</li>
          <li>Bullet 3.2.2</li>
        </ul>
      </li>
    </ol>
  </li>
</ul>

I therefore believe that this urgently needs to be fixed.

I have reported this against 1.9.118 but I have seen it in 113 I think, as well.

---------------------------------------------------------------------
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]

Reply via email to