RE: [libreoffice-users] Re: use of flat xml formats
The requirement that the office:mimetype attribute be present and have a known MIME type has been a condition on ODF single-file XML documents since ODF 1.0/1.1. It is a schema validation error for the attribute to be missing. The admissible office:mimetype values, and the consistency requirements on the element are a bit squishy. In ODF 1.2 there are strict provisions for what the agreement must be for a conforming ODF (text, spreadsheet, presentation, ...) document. Most ODF 1.0/1.1 documents satisfy the stricter requirements already. It is easy, but not OK, to miss this when hand-crafting or software- generating a flat xml representation of an ODF document. - Dennis -Original Message- From: e-letter [mailto:inp...@gmail.com] Sent: Thursday, September 29, 2011 10:47 To: users@global.libreoffice.org Subject: Re: [libreoffice-users] Re: use of flat xml formats On 28/09/2011, NoOp wrote: > > I use Ubuntu & I simply right-clicked the file in Nautilus & selected LO > Calc as the option to open. That added the mime type to my mime data so > I didn't have to add anything. > Do you know the location of the configuration file to change mime types using a text editor? -- For unsubscribe instructions e-mail to: users+h...@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 -- For unsubscribe instructions e-mail to: users+h...@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
Re: [libreoffice-users] Re: use of flat xml formats
On 28/09/2011, NoOp wrote: > > I use Ubuntu & I simply right-clicked the file in Nautilus & selected LO > Calc as the option to open. That added the mime type to my mime data so > I didn't have to add anything. > Do you know the location of the configuration file to change mime types using a text editor? -- For unsubscribe instructions e-mail to: users+h...@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
Re: [libreoffice-users] Re: use of flat xml formats
On 28/09/2011, Dag Wieers wrote: > > 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" > Same observation with graphics documents; avoid LO34 -- For unsubscribe instructions e-mail to: users+h...@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
Re: [libreoffice-users] Re: use of flat xml formats
On 28/09/2011, NoOp wrote: > On 09/27/2011 04:23 PM, 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. >> Correct, does not occur with linux. Avoid by not using version 34 >> Perhaps it's related to this bug report: >> >> https://bugs.freedesktop.org/show_bug.cgi?id=35580 >> [fods file from recent documents opened like xml text file and not as >> libreoffice spreadsheet] >> You might want to join that bug report and add your test comments. > ... > Get's weirder... same .fods test file on Windows with 3.4.3 (after > uninstalling LO 3.3.4 + user profile) opens LibreOffice Math. .fodt > still opens as text. > See https://bugs.freedesktop.org/show_bug.cgi?id=40881 and also https://bugs.freedesktop.org/show_bug.cgi?id=31624, https://bugs.freedesktop.org/show_bug.cgi?id=35580 -- For unsubscribe instructions e-mail to: users+h...@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
Re: [libreoffice-users] Re: use of flat xml formats
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, d...@wieers.com, http://dag.wieers.com/ -- dagit linux solutions, i...@dagit.net, http://dagit.net/ [Any errors in spelling, tact or fact are transmission errors] -- For unsubscribe instructions e-mail to: users+h...@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