[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [opendocument-users] how do I package OpenDocument as a single XML file
Do not put the single XML file in a Zip. Zip and those file extensions (OpenDocument 1.0 section 1.7 and Appendix C) appear to be reserved for packages. 1. Try simply naming the file with an .xml extension and asking OpenOffice.org 2.0 to open it. If that fails (e.g., on Windows the program attempts importing as Microsoft Word 2003 XML), try the next thing. 2. Although it shouldn't work, try using an .odt extension on the XML file and see if it opens. 3. Another way to see if a product supports the single-file format is to reverse the process. Create a document in the desktop application (e.g., OpenOffice.org 2.0) and then see if you can save it as an OpenDocument XML file (not in a package). With luck, the result should line up with the OpenDocument specification. (You might see an unexpected file extension on what is actually XML.) I tried (3) with OpenOffice.org 2.0 Writer (On Windows XP SP2) and a file with text "Hello World!" but I couldn't find anything that worked on the Save As ... . There is no separate type from the package types, and the only XML the program offered to save in was for Microsoft Word 2003 XML. There is some support for XML filters, but I am not sure that is what is needed in this case. So much for experimental desktop science. I guess you need to ask on the OpenOffice.org site. - Dennis Dennis E. Hamilton ------------------ AIIM DMware Technical Coordinator mailto:Dennis.Hamilton@acm.org | gsm:+1-206.779.9430 http://DMware.info http://ODMA.info/ http://TROSTing.org -----Original Message----- http://lists.oasis-open.org/archives/opendocument-users/200512/msg00001.html From: Chang Yan Chi [mailto:chicy@cn.ibm.com] Sent: Wednesday, December 07, 2005 19:17 To: opendocument-users@lists.oasis-open.org Subject: [opendocument-users] how do I package OpenDocument as a single XML file 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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]