On Tue, 27 Sep 2011, NoOp wrote:
On 09/27/2011 12:05 PM, Dag Wieers wrote:
,,,
I am writing an AsciiDoc backend to produce ODF files directly from
AsciiDoc. I was also looking for a flat file importer. Currently
LibreOffice and OpenOffice want to open such a .fodt (or .xml) file as
text rather than an pure ODF file.
I suspect it's a Windows version issue. I can easily open .fodt, .fods
in linux LO 3.3.4 & 3.4.3. Windows versions act (using the same test
files) do as you suggest and only open as text.
I am using Linux, however I found that the flat XML ODF files require an 
office:mimetype attribute to the office:document root-element. Not doing 
this will make LibreOffice (3.4.3) fail to open the document as ODF, but 
instead as plain text.
So adding:
    office:mimetype="application/vnd.oasis.opendocument.text"
did the trick for me !
--
-- dag wieers, dag@wieers.com, http://dag.wieers.com/
-- dagit linux solutions, info@dagit.net, http://dagit.net/
[Any errors in spelling, tact or fact are transmission errors]
--
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Context
- Re: [libreoffice-users] use of flat xml formats (continued)
 
  Privacy Policy |
  
Impressum (Legal Info) |
  
Copyright information: Unless otherwise specified, all text and images
  on this website are licensed under the
  
Creative Commons Attribution-Share Alike 3.0 License.
  This does not include the source code of LibreOffice, which is
  licensed under the Mozilla Public License (
MPLv2).
  "LibreOffice" and "The Document Foundation" are
  registered trademarks of their corresponding registered owners or are
  in actual use as trademarks in one or more countries. Their respective
  logos and icons are also subject to international copyright laws. Use
  thereof is explained in our 
trademark policy.