Hi Jörg,
Did you also try if the same happens in OOo 3.0?
Best regards
Michael
On 11/14/08 01:58 PM, Jörg von Frantzius wrote:
Hi,
I'm using OpenOffice 2.4.0, Build 2.4.0.14 (openSUSE build
2.4.0.14-1.1-i586).
Regards,
Jörg
Michael Brauer - Sun Germany - ham02 - Hamburg wrote:
Hi,
which version of OpenOffice.org are you using?
Michael
On 11/12/08 03:40 PM, Jörg von Frantzius wrote:
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Michael Brauer, Technical Architect Software Engineering
StarOffice/OpenOffice.org
Sun Microsystems GmbH Nagelsweg 55
D-20097 Hamburg, Germany [EMAIL PROTECTED]
http://sun.com/staroffice +49 40 23646 500
http://blogs.sun.com/GullFOSS
Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1,
D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]