Yes, and of course there are a variety of ways that Open Package Convention containers (the extended Zip profile used by OOXML) reveal the nature of their contents. Also, the direct XML and HTML pages exported by Microsoft Office are tagged in ways such that a browser that is aware of these will allow opening of the correct office application for viewing, further editing, and even saving in other Office-supported formats. That has been in place for many years.
In ODF 1.2 the mimetype entry is mandatory under certain flavors of conformant documents. However the original intention -- having the mimetype Zip part always at the beginning of the file where it can be sniffed is no longer a requirement as far as I recall. The ODF 1.2 Part 3 Package specification can be checked for this, along with the conformance requirements in ODF 1.2 [Part 0, but not identified as such]. It would be good to rely on the authoritative specifications on these topics, although the Wikipedia article is a good 1st-order approximation in this particular case. But I only know this because I know the specification (and was one of the editors for ODF 1.2 Part 3). - Dennis -----Original Message----- From: Franz de Copenhague [mailto:franzdecopenha...@outlook.com] Sent: Wednesday, April 29, 2015 16:33 To: dev@corinthia.incubator.apache.org Subject: RE: ODF document example to apply Peter's style name approach ---------------------------------------- > From: dennis.hamil...@acm.org > To: dev@corinthia.incubator.apache.org > Subject: RE: ODF document example to apply Peter's style name approach > Date: Wed, 29 Apr 2015 15:31:36 -0700 > > .docx, .xslx, and .pptx files are definitely all OOXML files. > > However, Microsoft Office also has free-standing XML files that can be > produced for Word and Excel documents. These are not OOXML but they are also > not .docx, .xslx, and .pptx. > > To complicate matters, Microsoft Office does not rely on file extensions > alone. It always sniffs inside the file to see what it actually is and it may > simply do the right thing. For example, if you have an .rtf file and rename > it to .doc, it should still open correctly in Microsoft Office Word. > > Note, also, that the OOXML Standard does not specify file-name extensions at > all. > > - Dennis > Also ODF has a mimetype entry to identify the document type http://en.wikipedia.org/wiki/OpenDocument_technical_specification#Documents - Franz =