← Prev in month ← Prev in thread

Re: [opendocument-users] how do I package OpenDocument as a single XMLfile

From
Lars Oppermann <>
Date
2005-12-08T12:22:42+00:00
ID
Thread
Re: [opendocument-users] how do I package OpenDocument as a single XMLfile
Hi,

What you did to get a single XML file seems to be right. However, by 
default OpenOffice.org cannot open these so-called flat-xml-files. You 
can however just register an identity xsl transformation (attached) in 
the xml filter dialog and import (and export) through that in order to 
work with flat-xml files.

-lars

Chang Yan Chi wrote:
> Hi,
> I created a odt file by OpenOffice 2.0 writer, now I want to package it 
> as a single XML file. See the steps below I did:
> 1. Copy all contents of styles.xml/meta.xml/settings.xml -- 
> <office:styles>..<office:styles>, <office:meta>....<office:meta>, 
> <office:settings>...</office:settings>--, into content.xml
> 2. Change its root from <office:document-content> to <office:document> 
> in content.xml, don't change others
> 3. Zip content.xml as content.odt.
> 
> But when I use OpenOffice 2.0 writer to open content.odt, a filter 
> selection dialog is opened, then I select "OpenDocuement Text", a error 
> message box is opened which tell me: "content.odt" is corrupt and 
> therefore cannot be opened
> 
> Is there anything I missed? Thanks in advance.
> 
> Tracy
> 


-- 
Lars Oppermann <>               Sun Microsystems
Software Engineer - StarOffice                           Sachsenfeld 4
Phone: +49 40 23646 959                                D-20097 Hamburg
Fax:   +49 40 23646 550                  http://www.sun.com/staroffice
← Prev in month ← Prev in thread