Hi,

we have a large document that was originally converted from Word. In the
contents.xml, the <text:h> are always wrapped like this:

          <text:list text:style-name="Outline"
    text:continue-numbering="true">
            <text:list-item>
              <text:list text:continue-numbering="true">
                <text:list-item>
                  <text:list text:continue-numbering="true">
                    <text:list-item>
                      <text:h text:style-name="Heading_20_3"
    text:outline-level="3"><text:bookmark
    text:name="_Toc179693173"/><text:bookmark
    text:name="_Toc125171365"/><text:bookmark
    text:name="_Toc124251776"/>Sales region, countr
    ies and tax rates</text:h>
                    </text:list-item>
                  </text:list>
                </text:list-item>
              </text:list>
            </text:list-item>
          </text:list>

>From a simple example file that I created with OpenOffice, I can see
that the
<text:h> tags normally seem to be stored without being wrapped like
the above. Also, it seems that the "Outline" list-style exists only for
documents converted from Word (see
http://www.openoffice.org/issues/show_bug.cgi?id=65787)

So I wrote an XSL that unwraps the text:h tags, and also I turned the
<text:list-style style:name="Outline"> in styles.xml into an equivalent
<text:outline-style>.

The modified .odt file can be read succesfully by OpenOffice (and this
already solved some issues we had with chapter numbering). However,
after storing it again with OpenOffice, the <text:h> are wrapped again,
and the "Outline" list-style turns up again in styles.xml.

This doesn't happen with my simple example file containing a few
headings on 3 levels (which doesn't originate from Word).

Can anybody explain when and why the "Outline" list-style is enforced by
OpenOffice?

Thanks for any explanations,
Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  • [xml-dev] Why do ... Jörg von Frantzius

Reply via email to