词条 | Office Open XML file formats |
释义 |
| name = Office Open XML Document | icon = X-office-document.svg | logo sg = | screenshot = | caption = | extension = .docx, .docm | mime = application/vnd, openxmlformats-officedocument, wordprocessingml, document[1] | type code = | uniform type = | magic = | owner = Microsoft, Ecma, ISO/IEC | released = | latest release version = | latest release date = | genre = Document file format | container for = | contained by = | extended from = XML, DOC, WordProcessingML | extended to = | standard = ECMA-376, ISO/IEC 29500 | url = ECMA-376, ISO/IEC 29500:2008 }}{{Infobox file format | name = Office Open XML Presentation | icon = X-office-presentation.svg | logo = | screenshot = | caption = | extension = .pptx, .pptm | mime = application/vnd, openxmlformats-officedocument, presentationml, presentation[1] | type code = | uniform type = | magic = | owner = Microsoft, Ecma, ISO/IEC | released = | latest release version = | latest release date = | genre = Presentation | container for = | contained by = | extended from = XML, PPT | extended to = | standard = ECMA-376, ISO/IEC 29500 | url = ECMA-376, ISO/IEC 29500:2008 }}{{Infobox file format | name = Office Open XML Workbook | icon = X-office-spreadsheet.svg | logo = | screenshot = | caption = | extension = .xlsx, .xlsm | mime = application/vnd, openxmlformats-officedocument, spreadsheetml, sheet[1] | type code = | uniform type = | magic = | owner = Microsoft, Ecma, ISO/IEC | released = | latest release version = | latest release date = | genre = Spreadsheet | container for = | contained by = | extended from = XML, XLS, SpreadsheetML | extended to = | standard = ECMA-376, ISO/IEC 29500 | url = ECMA-376, ISO/IEC 29500:2008 }} The Office Open XML file formats are a set of file formats that can be used to represent electronic office documents. There are formats for word processing documents, spreadsheets and presentations as well as specific formats for material such as mathematical formulae, graphics, bibliographies etc. The formats were developed by Microsoft and first appeared in Microsoft Office 2007. They were standardized between December 2006 and November 2008, first by the Ecma International consortium, where they became ECMA-376, and subsequently, after a contentious standardization process, by the ISO/IEC's Joint Technical Committee 1, where they became ISO/IEC 29500:2008. Container{{Main|Open Packaging Conventions}}Office Open XML documents are stored in Open Packaging Convention (OPC) packages, which are ZIP files containing XML and other data files, along with a specification of the relationships between them.[2] Depending on the type of the document, the packages have different internal directory structures and names. An application will use the relationships files to locate individual sections (files), with each having accompanying metadata, in particular MIME metadata. A basic package contains an XML file called [Content_Types].xml at the root, along with three directories: _rels, docProps, and a directory specific for the document type (for example, in a .docx word processing package, there would be a word directory). The word directory contains the document.xml file which is the core content of the document.
RelationshipsAn example relationship file (word/_rels/document.xml.rels), is: As such, images referenced in the document can be found in the relationship file by looking for all relationships that are of type The following code shows an example of inline markup for a hyperlink: In this example, the Uniform Resource Locator (URL) is in the Target attribute of the Relationship referenced through the relationship Id, "rId2" in this case. Linked images, templates, and other items are referenced in the same way. Pictures can be embedded or linked using a tag: This is the reference to the image file. All references are managed via relationships. For example, a document.xml has a relationship to the image. There is a _rels directory in the same directory as document.xml, inside _rels is a file called document.xml.rels. In this file there will be a relationship definition that contains type, ID and location. The ID is the referenced ID used in the XML document. The type will be a reference schema definition for the media type and the location will be an internal location within the ZIP package or an external location defined with a URL. Document propertiesOffice Open XML uses the Dublin Core Metadata Element Set and DCMI Metadata Terms to store document properties. Dublin Core is a standard for cross-domain information resource description and is defined in ISO 15836:2003. An example document properties file (docProps/core.xml) that uses Dublin Core metadata, is: Document markup languagesAn Office Open XML file may contain several documents encoded in specialized markup languages corresponding to applications within the Microsoft Office product line. Office Open XML defines multiple vocabularies using 27 namespaces and 89 schema modules. The primary markup languages are:
Shared markup language materials include:
In addition to the above markup languages custom XML schemas can be used to extend Office Open XML. Design approachPatrick Durusau, the editor of ODF, has viewed the markup style of OOXML and ODF as representing two sides of a debate: the "element side" and the "attribute side". He notes that OOXML represents "the element side of this approach" and singles out the In contrast, he notes ODF would use the single attribute The XML Schema of Office Open XML emphasizes reducing load time and improving parsing speed.[4] In a test with applications current in April 2007, XML-based office documents were slower to load than binary formats.[5] To enhance performance, Office Open XML uses very short element names for common elements and spreadsheets save dates as index numbers (starting from 1900 or from 1904).[6] In order to be systematic and generic, Office Open XML typically uses separate child elements for data and metadata (element names ending in Pr for properties) rather than using multiple attributes, which allows structured properties. Office Open XML does not use mixed content but uses elements to put a series of text runs (element name r) into paragraphs (element name p). The result is terse{{Citation needed|date=October 2009}} and highly nested in contrast to HTML, for example, which is fairly flat, designed for humans to write in text editors and is more congenial for humans to read. The naming of elements and attributes within the text has attracted some criticism. There are three different syntaxes in OOXML (ECMA-376) for specifying the color and alignment of text depending on whether the document is a text, spreadsheet, or presentation. Rob Weir (an IBM employee and co-chair of the OASIS OpenDocument Format TC) asks "What is the engineering justification for this horror?". He contrasts with OpenDocument: "ODF uses the W3C's XSL-FO vocabulary for text styling, and uses this vocabulary consistently".[7] Some have argued the design is based too closely on Microsoft applications. In August 2007, the Linux Foundation published a blog post calling upon ISO National Bodies to vote "No, with comments" during the International Standardization of OOXML. It said, "OOXML is a direct port of a single vendor's binary document formats. It avoids the re-use of relevant existing international standards (e.g. several cryptographic algorithms, VML, etc.). There are literally hundreds of technical flaws that should be addressed before standardizing OOXML including continued use of binary code tied to platform specific features, propagating bugs in MS-Office into the standard, proprietary units, references to proprietary/confidential tags, unclear IP and patent rights, and much more".[8] The version of the standard submitted to JTC 1 was 6546 pages long. The need and appropriateness of such length has been questioned.[9][10] Google stated that "the ODF standard, which achieves the same goal, is only 867 pages"[9] WordprocessingML (WML)Word processing documents use the XML vocabulary known as WordprocessingML normatively defined by the schema wml.xsd which accompanies the standard. This vocabulary is defined in clause 11 of Part 1.[11] SpreadsheetML (SML)Spreadsheet documents use the XML vocabulary known as SpreadsheetML normatively defined by the schema sml.xsd which accompanies the standard. This vocabulary is described in clause 12 of Part 1.[11] Each worksheet in a spreadsheet is represented by an XML document with a root element named {{tag|worksheet}} in the {{LinkBlue|http://schemas.openxmlformats.org/spreadsheetml/2006/main}} Namespace. The representation of date and time values in SpreadsheetML has attracted some criticism. ECMA-376 1st edition does not conform to ISO 8601:2004 "Representation of Dates and Times". It requires that implementations replicate a Lotus 1-2-3 [12] bug that erroneously treats 1900 as a leap year. Products complying with ECMA-376 would be required to use the WEEKDAY() spreadsheet function, and therefore assign incorrect dates to some days of the week, and also miscalculate the number of days between certain dates.[13] ECMA-376 2nd edition (ISO/IEC 29500) allows the use of 8601:2004 "Representation of Dates and Times" in addition to the Lotus 1-2-3 bug-compatible form.[14][15] Office MathML (OMML)Office Math Markup Language is a mathematical markup language which can be embedded in WordprocessingML, with intrinsic support for including word processing markup like revision markings,[16] footnotes, comments, images and elaborate formatting and styles.[17] The OMML format is different from the World Wide Web Consortium (W3C) MathML recommendation that does not support those office features, but is partially compatible[18] through XSL Transformations; tools are provided with office suite and are automatically used via clipboard transformations.[19] The following Office MathML example defines the fraction: Some have queried the need for Office MathML (OMML) instead advocating the use of MathML, a W3C recommendation for the "inclusion of mathematical expressions in Web pages" and "machine to machine communication".[20] Murray Sargent has answered some of these issues in a blog post, which details some of the philosophical differences between the two formats.[21] === DrawingML === DrawingML is the vector graphics markup language used in Office Open XML documents. Its major features are the graphics rendering of text elements, graphical vector-based shape elements, graphical tables and charts. The DrawingML table is the third table model in Office Open XML (next to the table models in WordprocessingML and SpreadsheetML) and is optimized for graphical effects and its main use is in presentations created with PresentationML markup. DrawingML contains graphics effects (like shadows and reflection) that can be used on the different graphical elements that are used in DrawingML. In DrawingML you can also create 3d effects, for instance to show the different graphical elements through a flexible camera viewpoint. It is possible to create separate DrawingML theme parts in an Office Open XML package. These themes can then be applied to graphical elements throughout the Office Open XML package.[22] DrawingML is unrelated to the other vector graphics formats such as SVG. These can be converted to DrawingML to include natively in an Office Open XML document. This is a different approach to that of the OpenDocument format, which uses a subset of SVG, and includes vector graphics as separate files. A DrawingML graphic's dimensions are specified in English Metric Units (EMUs). It is so called because it allows an exact common representation of dimensions originally in either English or Metric units. This unit is defined as 1/360,000 of a centimeter and thus there are 914,400 EMUs per inch, and 12,700 EMUs per point. This unit was chosen so that integers can be used to accurately represent most dimensions encountered in a document. Floating point cannot accurately represent a fraction that is not a sum of powers of two and the error is magnified when the fractions are added together many times, resulting in misalignment. As an inch is exactly 2.54 centimeters, or 127/50, 1/127 inch is an integer multiple of a power-of-ten fraction of the meter (2×10−4 m). To accurately represent (with an integer) 1 μm = 10−6 m, a divisor of 100 is further needed. To accurately represent the point unit, a divisor of 72 is needed, which also allows divisions by 2, 3, 4, 6, 8, 9, 12, 18, 24, and 36 to be accurate. Multiplying these together gives 127×72×100 = 914,400 units per inch; this also allows exact representations of multiples of 1/100 & 1/32 inch. According to Rick Jelliffe, programmer and standards activist (ISO, W3C, IETF), EMUs are a rational solution to a particular set of design criteria.[23] Some have criticised the use of DrawingML (and the transitional-use-only VML) instead of W3C recommendation SVG.[24] VML did not become a W3C recommendation.[25] Foreign resourcesNon-XML contentOOXML documents are typically composed of other resources in addition to XML content (graphics, video, etc.). Some have criticised the choice of permitted format for such resources: ECMA-376 1st edition specifies "Embedded Object Alternate Image Requests Types" and "Clipboard Format Types", which refer to Windows Metafiles or Enhanced Metafiles – each of which are proprietary formats that have hard-coded dependencies on Windows itself. The critics state the standard should instead have referenced the platform neutral standard ISO/IEC 8632 "Computer Graphics Metafile".[13] Foreign markupThe Standard provides three mechanisms to allow foreign markup to be embedded within content for editing purposes:
These are defined in clause 17.5 of Part 1. Compatibility settingsVersions of Office Open XML contain what are termed "compatibility settings". These are contained in Part 4 ("Markup Language Reference") of ECMA-376 1st Edition, but during standardization were moved to become a new part (also called Part 4) of ISO/IEC 29500:2008 ("Transitional Migration Features"). These settings (including element with names such as autoSpaceLikeWord95, footnoteLayoutLikeWW8, lineWrapLikeWord6, mwSmallCaps, shapeLayoutLikeWW8, suppressTopSpacingWP, truncateFontHeightsLikeWP6, uiCompat97To2003, useWord2002TableStyleRules, useWord97LineBreakRules, wpJustification and wpSpaceWidth) were the focus of some controversy during the standardisation of DIS 29500.[26] As a result, new text was added to ISO/IEC 29500 to document them.[27] An article in Free Software Magazine has criticized the markup used for these settings. Office Open XML uses distinctly named elements for each compatibility setting, each of which is declared in the schema. The repertoire of settings is thus limited — for new compatibility settings to be added, new elements may need to be declared, "potentially creating thousands of them, each having nothing to do with interoperability".[28] ExtensibilityThe standard provides two types of extensibility mechanism, Markup Compatibility and Extensibility (MCE) defined in Part 3 (ISO/IEC 29500-3:2008) and Extension Lists defined in clause 18.2.10 of Part 1. References1. ^1 2 {{ cite web | url = https://technet.microsoft.com/en-us/library/cc179224.aspx | title = Register file extensions on third party servers | author = Microsoft | date = | accessdate = 2009-09-04 | publisher = microsoft.com }} {{ISO standards}}{{Ecma International Standards}}{{Microsoft Office}}{{Office document file formats}}2. ^{{ cite web | url=http://www.ecma-international.org/news/TC45_current_work/OpenXML%20White%20Paper.pdf | title=Office Open XML Overview | author=Tom Ngo | page=6 | format=PDF | publisher=Ecma International | date=December 11, 2006 | accessdate=2007-01-23 }} 3. ^{{ cite web| author=Patrick Durusau| url=http://www.durusau.net/publications/old_wine.pdf | title=Old Wine In New Skins | date=21 October 2008 }} 4. ^{{Cite web| title=Software Developer uses Office Open XML to Minimize File Space, Increase Interoperability| url=http://www.openxmlcommunity.org/documents/casestudies/Intellisafe_OpenXML_Final.pdf | author=Intellisafe Technologies}} 5. ^{{ cite web | url=http://blogs.zdnet.com/Ou/?p=480 | title=MS Office 2007 versus Open Office 2.2 shootout | author=George Ou | date=2007-04-27 | accessdate=2007-04-27 | publisher=ZDnet.com}} 6. ^{{ cite web | url=https://support.microsoft.com/en-us/kb/214330 | title=Differences between the 1900 and the 1904 date system in Excel | date=2013-03-05 | accessdate=2016-08-23 | publisher=Microsoft}} 7. ^{{ cite web | url=http://www.robweir.com/blog/2008/03/disharmony-of-ooxml.html | title= Disharmony of OOXML | author=Rob Weir | date=14 March 2008}} 8. ^{{ cite web | url=http://www.linux-foundation.org/weblogs/cherry/2007/08/29/ooxml-vote-no-with-comments/ | title=OOXML — vote "No, with comments" | author=John Cherry | date=14 March 2008}} 9. ^1 {{ cite web | url = http://www.odfalliance.org/resources/Google%20OOXML%20Q%20%20A.pdf | title = Google's Position on OOXML as a Proposed ISO Standard | date = February 2008 | publisher = Google | quote = If ISO were to give OOXML with its 6546 pages the same level of review that other standards have seen, it would take 18 years (6576 days for 6546 pages) to achieve comparable levels of review to the existing ODF standard (871 days for 867 pages) which achieves the same purpose and is thus a good comparison. Considering that OOXML has only received about 5.5% of the review that comparable standards have undergone, reports about inconsistencies, contradictions and missing information are hardly surprising | deadurl = yes | archiveurl = https://web.archive.org/web/20100818112807/http://www.odfalliance.org/resources/Google%20OOXML%20Q%20%20A.pdf | archivedate = 2010-08-18 | df = }} 10. ^{{ cite web | url = http://www.ibm.com/developerworks/library/x-ooxmlstandard.html | title = OOXML: What's the big deal? | date = 2008-02-19 | publisher = IBM | deadurl = yes | archiveurl = https://web.archive.org/web/20091003044227/http://www.ibm.com/developerworks/library/x-ooxmlstandard.html | archivedate = 2009-10-03 | df = }} 11. ^1 {{ cite web | url=http://standards.iso.org/ittf/PubliclyAvailableStandards/c071691_ISO_IEC_29500-1_2016.zip | title=ISO/IEC 29500-1:2016 | date=2016-11-01 | publisher=ISO and IEC}} 12. ^{{ cite web | url = http://www.exceluser.com/explore/earlydates.htm | title = How to Work With Dates Before 1900 in Excel | first = Charley | last = Kyd | date = October 2006 | work = ExcelUser | accessdate = 2009-09-16 }} 13. ^1 {{ cite web | url=http://www.consortiuminfo.org/standardsblog/article.php?story=20070117145745854 | title=The Contradictory Nature of OOXML | publisher=ConsortiumInfo.org}} 14. ^{{ cite web | url = http://www.ecma-international.org/publications/standards/Ecma-376.htm | title = ECMA-376 2nd edition Part 1 (3. Normative references) | publisher = Ecma-international.org | date = | accessdate = 2009-09-16}} 15. ^{{ cite web | url = http://www.ecma-international.org/news/TC45_current_work/New%20set%20of%20proposed%20dispositions%20posted.htm | title = New set of proposed dispositions posted, including more positive changes to the Ecma Office Open XML formats – Dispositions now proposed for more than half of National Bodies' comments | publisher = Ecma-international.org | date = 2007-12-11 | accessdate = 2009-09-16}} 16. ^{{cite web|url = http://idippedut.dk/post/Do-your-math-OOXML-and-OMML|title = Do your math - OOXML and OMML (Updated 2008-02-12)|author = Jesper Lund Stocholm|publisher = A Mooh Point blog|date = 2008-02-12|accessdate = 2015-11-18}} 17. ^{{cite web| url=http://blogs.msdn.com/murrays/archive/2007/06/05/science-and-nature-have-difficulties-with-word-2007-mathematics.aspx| title=Science and Nature have difficulties with Word 2007 mathematics| author=Murray Sargent| publisher=MSDN blogs| date=2007-06-05| accessdate=2007-07-31}} 18. ^{{cite web| url=http://dpcarlisle.blogspot.com/2007/04/xhtml-and-mathml-from-office-20007.html| title=XHTML and MathML from Office 2007| author=David Carlisle| publisher=David Carlisle| date=2007-05-09| accessdate=2007-09-20}} 19. ^http://blogs.msdn.com/b/murrays/archive/2007/06/05/science-and-nature-have-difficulties-with-word-2007-mathematics.aspx 20. ^{{cite web| url=http://www.zdnet.com.au/news/software/soa/Microsoft-Office-dumped-by-Science-and-Nature/0,130061733,339278690,00.htm| title=Microsoft Office dumped by Science and Nature| publisher=ZDNet Australia| date=18 June 2007}} 21. ^http://blogs.msdn.com/b/murrays/archive/2006/10/07/mathml-and-ecma-math-_2800_omml_2900_-.aspx 22. ^{{ cite web | url=http://openxmldeveloper.org/articles/1970.aspx | title=Open XML Explained e-book | author=Wouter Van Vugt | date=2008-11-01 | accessdate=2007-09-14 | publisher=Openxmldeveloper.org}} 23. ^{{ cite web|date=April 16, 2007 |author= Rick Jelliffe in Technical | url = http://www.oreillynet.com/xml/blog/2007/04/what_is_an_emu.html | title = Why EMUs? - O'Reilly XML Blog | publisher = Oreillynet.com | accessdate = 2009-05-19}} 24. ^{{ cite web | url=http://reddevnews.com/features/article.aspx?editorialsid=2356 | title= The X Factor | publisher=reddevnews.com |date=October 2007 }} 25. ^{{ cite web | url = http://www.w3.org/TR/NOTE-VML | title = VML — the Vector Markup Language | publisher = W3.org | date = 1998-05-13 | accessdate = 2009-05-19 }} 26. ^{{ cite web | url=http://www.freesoftwaremagazine.com/articles/odf_ooxml_technical_white_paper?page=0%2C9 | title=ODF/OOXML technical white paper — A white paper based on a technical comparison between the ODF and OOXML formats | publisher=Free Software Magazine}} 27. ^{{ cite web | url = http://www.ecma-international.org/publications/standards/Ecma-376.htm | title = ECMA-376 2nd edition Part 4 (paragraph 9.7.3) | publisher = Ecma-international.org | date = | accessdate = 2009-09-16 }} 28. ^{{ cite web | quote="... OOXML chose this route. Rather than create an application-definable configuration tag there is a unique tag for each setting ... Currently, the only application's unique settings that are catered for are the applications that the standard's authors have decided to include, ... For other applications to be added, further tag names would need to be defined in the specification, potentially creating thousands of them, each having nothing to do with interoperability ..". | url=http://www.freesoftwaremagazine.com/articles/odf_ooxml_technical_white_paper?page=0%2C7 | title=ODF/OOXML technical white paper — A white paper based on a technical comparison between the ODF and OOXML formats | publisher=Free Software Magazine }} 7 : Office Open XML|XML|Document-centric XML-based standards|Markup languages|Open formats|Computer file formats|Microsoft Office |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。