Download presentation
Presentation is loading. Please wait.
Published byBrendan Chapman Modified over 9 years ago
1
Office Open XML Developer Workshop Office Open XML Architecture A developer’s introduction to the file formats
2
Office Open XML Developer Workshop Disclaimer The information contained in this slide deck represents the current view of Microsoft Corporation on the issues discussed as of the date of publication. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information presented after the date of publication. This slide deck is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS DOCUMENT. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this slide deck may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation. Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this slide deck. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this slide deck does not give you any license to these patents, trademarks, copyrights, or other intellectual property. Unless otherwise noted, the example companies, organizations, products, domain names, e-mail addresses, logos, people, places and events depicted herein are fictitious, and no association with any real company, organization, product, domain name, email address, logo, person, place or event is intended or should be inferred. © 2006 Microsoft Corporation. All rights reserved. Microsoft, 2007 Microsoft Office System,.NET Framework 3.0, Visual Studio, and Windows Vista are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. The names of actual companies and products mentioned herein may be the trademarks of their respective owners.
3
Office Open XML Developer Workshop Objectives In this module, we will learn about the architecture of the Office Open XML formats. Primary focus is on concepts that apply to all three main document types. Details specific to word processing documents, spreadsheets, or presentations will be covered in separate modules for each of those document types.
4
Office Open XML Developer Workshop Evolution of Document Authoring Old Approach: Linear, static process Paper Documents – printed document of record Electronic Masters – digital work style, temporary until printed Face-to-face Collaboration – time consuming & coordination issues Paper-based project management Binary formats with “copy/paste” tasks for content reuse New Approach: Dynamic, interactive process Paper Documents – temporary & disposable, rarely used Electronic formats – automatic, machine-driven processes Electronic collaboration – always using up-to-date information Electronic management – scheduling, tracking easier to communicate XML formats make content easy to locate, edit and reuse
5
Office Open XML Developer Workshop Formats describe information Define content appearance/rendering Structure content for business processes Enable machines (software) to use information Software applications use information Provide functionality for authoring, organizing, developing, representing, evaluating, reviewing, collaborating, validating, calculating, protecting, and printing information Formats can influence application design, and vice versa Open Document Format (ODF) and OpenOffice functionality Office Open XML and Microsoft Office functionality Document Formats and Applications -5-
6
Office Open XML Developer Workshop Office Open XML File Formats Open File Formats Ecma Open XML Formats standardization XML-based formats for the future of solution interoperability Royalty-free licenses enable broad access to technology The future of file format technology ZIP compression of the format reduces file sizes Segmented data storage improves data recovery and programmatic access Full accessibility support Compatible file formats Standardized file formats support Microsoft Office functionality Current and new file formats compatible between Office 2000- 2007 users Bulk document conversion tools available
7
Office Open XML Developer Workshop Levels of Interoperability Reference and Custom-defined Schemas Custom-defined Schemas Data-oriented (e.g.: Price, Invoice) business information Enable System Integration XML Reference Schemas Display-oriented (Bold, Italics, Tables, Paragraphs, Styles,…) Document Format Enable Archival and File Formats Interoperability
8
Office Open XML Developer Workshop Levels of Interoperability Reference and Custom-defined Schemas John Doe Health Agency XML Reference Schemas Display-oriented (for example, Bold, Italics, Tables, Paragraphs, Styles) Document Format Enable Archival and File Formats Interoperability DEMO
9
Office Open XML Developer Workshop Levels of Interoperability Reference and Custom-defined Schemas Custom-defined Schemas Data-oriented (for example, Price, Invoice) business information Enable System Integration 3/24/2004 Health Agency 100 25% … DEMO
10
Office Open XML Developer Workshop Goals of XML File Formats Reduce operational cost Program interoperability Streamlined processes Not locked into a single vendor or platform Integrated solutions Successfully share information across applications Not proprietary Facilitate openness, transparency and interoperability Transition from the locked-in approach to system design.
11
Office Open XML Developer Workshop User View of Open XML Files Single file Compact Compression Corruption resistant Segmented architecture Corruption of any part would not prohibit opening Separation of macro-enabled content Macro-enabled extension end with “m” instead of “x” (e.g..docm) VBA, Excel Macro-Sheets, PowerPoint Action Commands Enforced at runtime by 2007 Office programs
12
Office Open XML Developer Workshop Programmer View of Open XML Files ZIP Archive Document Parts XML Parts Binary Parts Typed (RFC 2616) Relationships Connections between parts Content Type Stream A specially-named stream Defines mappings from part names to content types Not itself a part, not URI addressable Folder structure for convenience only DEMO
13
Office Open XML Developer Workshop Files and folders – NO!Parts and relationships – YES How to think about OPC packages
14
Office Open XML Developer Workshop Ecma Office Open XML Specifications WordprocessingMLSpreadsheetMLPresentationML ZIPXML + Unicode DrawingML Content Types Custom XMLBibliography Markup Languages Relationships Metadata Digital Signatures VML (legacy)Equations Open Packaging Convention Core Technologies Vocabularies
15
Office Open XML Developer Workshop Ecma Office Open XML Specifications WordprocessingML (.docx) SpreadsheetML (.xslx) PresentationML (.pptx) ZIPXML DrawingML Content Types Custom XMLBibliography Shared Markup Relationships Metadata Digital Signatures VML (legacy)Equations Main Document MLs Open Packaging Convention Core Technologies Module 06, 07AModule 03, 04 Module 07BModule 05 Module 08 Module 02 Module 01, 09 Module 02
16
Office Open XML Developer Workshop Office Open XML Reference Schemas First published schema in September 2005, with ongoing standardization and documentation since then. In December 2005, Microsoft and 9 other companies submitted upgrades to Ecma International. Estimated completion for Format specifications by December 2006. (Final vote on December 7!) Full XML-based environments begins with the 2007 Microsoft Office system.
17
Office Open XML Developer Workshop Interoperability Extensibility allows for interoperability problems: the consumer may not understand extensions added by the producer. To guarantee interoperability, there must be a standardized list of allowed media formats, etc. An organization that wants to assure interoperability must take responsibility for making these decisions Example: MS-Office allows for reliable interoperability by: Using the Office Open XML format Automatic document conversion from legacy formats Using the macro-enabled extensions to support a defined set of allowed content types
18
Office Open XML Developer Workshop Office Open XML File Formats Extensions Macro-FreeMacro-Enabled DocumentTemplateDocumentTemplate docxdotxdocmdotm pptxpotxpptmpotm xlsxxltxxlsmxltm Open Packaging Convention
19
Office Open XML Developer Workshop Hello World Creating the minimal WordprocessingML document
20
Office Open XML Developer Workshop Developer Scenario: Styling Content Example: enforce organizational standards for document formatting. Open XML Processing
21
Office Open XML Developer Workshop Example #1: remove confidential information, tracked changes or metadata from outbound documents. Example #2: remove macros, inappropriate language, or other content from inbound documents. Developer Scenario: Content Inspection Open XML Processing Open XML Processing
22
Office Open XML Developer Workshop Back-end system (LOB/CRM/etc.) Development Scenario: Consuming Documents Example: user creates expense reports as spreadsheet documents, which are loaded into a back-end system on the server. Open XML Processing Authoring environment (Microsoft Office, etc.)
23
Office Open XML Developer Workshop Development Scenario: Document Assembly Example: create sales reports from financial and forecast data stored in a CRM system. Web client or rich client allows user to select or enter content criteria Open XML Processing
24
Office Open XML Developer Workshop Example: tagging document content with custom semantics for processing by a back-end system. Authoring environment Development Scenario: Custom XML Markup Open XML Processing
25
Office Open XML Developer Workshop Custom XML Data Store Customer-defined XML stored separately from other document parts Any XML can be stored Document properties WSS meta-data Custom XML (with or without XML schema) XML data is available as an editable tree (using familiar DOM) within Word External applications (client/server) can process the store or populate the store Doc/Template Doc Parts XML External App
26
Office Open XML Developer Workshop XML Data Binding Link content controls to nodes in the XML data store Mappings are created using standard XPath expressions Microsoft Offices offers built-in support for mapping to Office metadata (document properties) Customers
27
Office Open XML Developer Workshop XML Data Binding
28
Office Open XML Developer Workshop Open XML Interoperability LinuxJavaMicrosoftCOM ZIP Library Minizip zLib J2SE java.util.zip.NET Framework 3.0 System.IO.Packaging * Xceed.NET controls Xceed ActiveX controls XML Library Apache XercesJAXP.NET Framework 3.0 System.Xml MSXML * Also includes abstractions for OPC concepts (Open Packaging Convention)
29
Office Open XML Developer Workshop Standardization of Office Open XML /// timeline of current status, etc. /// Ecma = December 7, 2006 /// submitted to ISO as Fast-Track December 8, 2006 /// administration phase, comments were filed; Ecma is working to resolve these comments /// upcoming: DIS ballot period, then the vote
30
Office Open XML Developer Workshop The Ecma Spec Where to get the final draft http://www.ecma-international.org/news/TC45_current_work/TC45- 2006-50_final_draft.htm Organization of the spec 1. Fundamentals 2. Open Packaging Conventions 3. Primer 4. Markup Language Reference 5. Markup Compatibility and Extensibility Reference Schemas (XSD, RelaxNG)
31
Office Open XML Developer Workshop The Ecma Spec: Where To Start Where to get the final draft http://www.ecma-international.org/news/TC45_current_work/TC45- 2006-50_final_draft.htm Organization of the spec 1. Fundamentals 2. Open Packaging Conventions 3. Primer 4. Markup Language Reference 5. Markup Compatibility and Extensibility Reference Schemas (XSD, RelaxNG) Read 1 st Reference materials Read 2 nd
32
Office Open XML Developer Workshop OpenXmlDeveloper.org Formed by 40 companies to share developer information about the Office Open XML file formats Articles with full source code for C#, VB, Java, XSLT Forums for posting technical questions
33
Office Open XML Developer Workshop
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.