Open XML Overview

Total Page:16

File Type:pdf, Size:1020Kb

Open XML Overview Open XML Overview Office 365 DevDays 2017.11.4-6 | 上海 Tom Jebo Introduction to Open XML File Format Standard WordprocessingML, SpreadsheetML, PresentationML & DrawingML Versioning and Namespaces Compatibility in Documents Agenda Programming the Document Format ( OpenXML SDK) Open XML SDK on Github Demo Tools Support & Resources Introduction to Open XML Format • Brief history of Office Open XML • Get the Standard • Tour of the Office Open XML Standard Brief history of Office Open XML 2003 2000 2005/6 2007 2008 Microsoft Office First XML based Office Open XML Office 2007 makes ISO/IEC XML format format used by submitted to ECMA OOXML default file 29500:2008 released in Office OfficeXP Int’l format published 2003 ISO ISO 29500:2012 29500:2016 Support by Office Version • Office 2007 • First to support OOXML, default format • ECMA-376 support • Office 2010 • ISO/IEC 29500 “Transitional” r/w – fidelity with older versions • ISO/IEC 29500 “Strict” read • ECMA-376 read • Office 2013, 2016 • ISO/IEC 29500 “Strict” r/w • i.e. File | Save As… and choose “Strict Open XML Presentation (*.pptx)” • Office365, Office for Android and iPad • “Strict” r/w Get the standard iso 29500 download Tour of the Office Open XML Standard • Markup Fundamentals • Packaging • Compatibility and Extensibility • Transitional Markup Fundamentals Part 1 Parts Reference Packaging Part 2 Packaging Model Compatibility and Extensibility Part 3 MCE elements and attributes Transitional Part 4 Namespaces and elements in transitional markup WordprocessingML, SpreadsheetML, PresentationML & DrawingML <w:worksheetp:slddocumentxmlns:axmlns="http://schemas.openxmlformats.org/="http://schemas.openxmlformats.org/drawingmlspreadsheetml/2006/main" • Parts and elements to get started: <w:dimensionbody<p:cSld> ref="A1:B4"/>> • WordprocessingML <w:sheetDatap w14:paraId="2673269E"<p:spTree> > w14:textId="522FD3EB" w:rsidR="00BD0355" w:rsidRDefault="00BD0355"> • 11.3.10 (document.xml) <row<w:r="1"p:spr>> spans="1:2" x14ac:dyDescent="0.25"> • 17.2 and 17.3 (body, paragraphs and runs) <c r="A1"><w:p:nvSpPrt xml:space> ="preserve">This is a run of text. It is part of a paragraph. • SpreadsheetML </w:r<>v>1</v><p:cNvPr id="2" name="Title 1"/> • 12.3.24 (sheet<x>.xml) </w:p</c>> <p:cNvSpPr> • 18.3 (Worksheet elements) <w:p w14:paraId="43453C87"</row> <a:spLocks w14:textId="3F744A5F"noGrp="1"/> w:rsidR="00BD0355" w:rsidRDefault="00BD0355"> • PresentationML <row< w:r="2"r> spans="1:2"</p:cNvSpPr x14ac:dyDescent="0.25">> • 13.3.8 (slide<x>.xml) <c r="A2"><</w:p:nvSpPrt>Here is> another run of text in a new paragraph.</ • 19.3 (slide elements) </w:r<>v>2p:spPr</v>/> • Schemas: </w:p> </c><p:txBody> • Annex A – W3C XML1 </row><a:p> • Annex B – RELAX NG9 <row r="4" spans="1:2"<a:r> x14ac:dyDescent="0.25"> • Primer <c r="B4" t="s"><a:rPr lang="en-US" dirty="0" smtClean • Annex L – detailed intro to the ML’s. Use this! <v>1</v> <a:t>Fancy art from the internet</a:t </c> </a:r> Compatibility in Documents Allow consumers to: • Be aware and benefit from the new features. • Be unaware and still interoperable • Be unaware and “degrade gracefully” Attributes: • mc:Ignorable – allows consumer to ignore whole namespace • mc:ProcessContent – consumer process ignorable element contents as if in outer element. • mc:MustUnderstand – consumer throws error before processing any misunderstood ns elements Elements: • mc:AlternateContent – provides choices and fallback content • mc:Choice/mc:Fallback Supporting Open Specifications • [MS-OI29500] • Notes for Microsoft Office products implementing ISO/IEC 29500 • [MS-ODRAWXML] • [MS-DOCX] • [MS-XLSX] • [MS-PPTX] • Extensions to the DrawingML, WordprocessingML, SpreadsheetML and PresentationML standard elements defined in ISO/IEC 29500 • See reference note for URL to MSDN page for these.10 Programming the Document Format (OpenXML SDK) • SDK Classes • Open XML SDK on Github • Scenarios • Demo DocumentFormat.OpenXml.dll SDK Classes OOXMLSDK API Framework Schema Semantic Part API DOM API API validation validation SDK Class generation process 1. Generate 5. Generate 6. Generate 2. Build 4. Generate 7. Build OpenXmlPart 3. Process Schema Semantic Framework DOM API OOXMLSDK API Source Schema Files Validation Validation API Source Code DLL Code Data Data Open XML SDK on Github Github Fork, build, modify Nuget package Release and latest builds Issues Report bugs Contribution Enhancements, fixes Scenarios Generation Extraction Transform WordprocessingML SpreadsheetML PresentationML Building a C# Solution to Generate a .docx Document Demonstration Tools Open XML Package Editor for Visual Studio: https://github.com/OfficeDev/Open-XML-Package-Editor-Power-Tool- for-Visual-Studio OOXML Tools Extension for Chrome (search and install in Chrome) Open XML SDK Productivity Tool (search “open xml sdk 2.5”, click download, OpenXMLSDKToolV25.msi) Support & Resources SDK Open XML SDK: https://github.com/OfficeDev/Open-Xml-Sdk OpenXMLDeveloper: http://www.openxmldeveloper.org libopc: http://libopc.codeplex.com (third-party open source OOXML library) Open Specifications [email protected] https://social.msdn.microsoft.com/Forums/en- US/home?category=openspecifications Thank you Office 365 DevDays.
Recommended publications
  • The Microsoft Office Open XML Formats New File Formats for “Office 12”
    The Microsoft Office Open XML Formats New File Formats for “Office 12” White Paper Published: June 2005 For the latest information, please see http://www.microsoft.com/office/wave12 Contents Introduction ...............................................................................................................................1 From .doc to .docx: a brief history of the Office file formats.................................................1 Benefits of the Microsoft Office Open XML Formats ................................................................2 Integration with Business Data .............................................................................................2 Openness and Transparency ...............................................................................................4 Robustness...........................................................................................................................7 Description of the Microsoft Office Open XML Format .............................................................9 Document Parts....................................................................................................................9 Microsoft Office Open XML Format specifications ...............................................................9 Compatibility with new file formats........................................................................................9 For more information ..............................................................................................................10
    [Show full text]
  • Java Spreadsheet Component Open Source
    Java Spreadsheet Component Open Source Arvie is spriggier and pales sinlessly as unconvertible Harris personating freshly and inform sectionally. Obie chance her cholecyst prepossessingly, vociferant and bifacial. Humdrum Warren never degreasing so loquaciously or de-Stalinize any guanine headforemost. LibreOffice 64 SDK Developer's Guide Examples. Spring Roo W Cheat sheets online archived Spring Roo Open-Source Rapid Application Development for Java by Stefan. Sign in Google Accounts Google Sites. Open source components with no licenses or custom licenses. Open large Inventory Management How often startle you ordered parts you a had in boom but couldn't find learn How often lead you enable to re-order. The Excel component that can certainly write and manipulate spreadsheets. It includes two components visualization and runtime environment for Java environments. XSSF XML SpreadSheet Format reads and writes Office Open XML XLSX. Integration with paper source ZK Spreadsheet control CUBA. It should open source? Red Hat Developers Blog Programming cheat sheets Try for free big Hat. Exporting and importing data between MySQL and Microsoft. Includes haptics support essential Body Physics component plus 3D texturing and worthwhile Volume. Dictionaries are accessed using the slicer is opened in pixels of vulnerabilities, pdf into a robot to the step. How to download Apache POI and Configure in Eclipse IDE. Obba A Java Object Handler for Excel LibreOffice and. MystiqueXML is a unanimous source post in Python and Java for automated. Learn what open source dashboard software the types of programs. X3D Resources Web3D Consortium. Through excel file formats and promote information for open component source java reflection, the vertical alignment first cell of the specified text style from the results.
    [Show full text]
  • ISO Focus, November 2008.Pdf
    ISO Focus The Magazine of the International Organization for Standardization Volume 5, No. 11, November 2008, ISSN 1729-8709 e - s t a n d a rdiza tio n • Siemens on added value for standards users • New ISO 9000 video © ISO Focus, www.iso.org/isofocus Contents 1 Comment Elio Bianchi, Chair ISO/ITSIG and Operating Director, UNI, A new way of working 2 World Scene Highlights of events from around the world 3 ISO Scene Highlights of news and developments from ISO members 4 Guest View Markus J. Reigl, Head of Corporate Standardization at ISO Focus is published 11 times a year (single issue : July-August). Siemens AG It is available in English. 8 Main Focus Annual subscription 158 Swiss Francs Individual copies 16 Swiss Francs Publisher ISO Central Secretariat (International Organization for Standardization) 1, ch. de la Voie-Creuse CH-1211 Genève 20 Switzerland Telephone + 41 22 749 01 11 Fax + 41 22 733 34 30 E-mail [email protected] Web www.iso.org Manager : Roger Frost e-standardization Acting Editor : Maria Lazarte • The “ nuts and bolts” of ISO’s collaborative IT applications Assistant Editor : Janet Maillard • Strengthening IT expertise in developing countries Artwork : Pascal Krieger and • The ITSIG/XML authoring and metadata project Pierre Granier • Zooming in on the ISO Concept database ISO Update : Dominique Chevaux • In sight – Value-added information services Subscription enquiries : Sonia Rosas Friot • Connecting standards ISO Central Secretariat • Standards to go – A powerful format for mobile workers Telephone + 41 22 749 03 36 Fax + 41 22 749 09 47 • Re-engineering the ISO standards development process E-mail [email protected] • The language of content-creating communities • Bringing the virtual into the formal © ISO, 2008.
    [Show full text]
  • The Role of Standards in Open Source Dr
    Panel 5.2: The role of Standards in Open Source Dr. István Sebestyén Ecma and Open Source Software Development • Ecma is one of the oldest SDOs in ICT standardization (founded in 1961) • Examples for Ecma-OSS Standardization Projects: • 2006-2008 ECMA-376 (fast tracked as ISO/IEC 29500) “Office Open XML File Formats” RAND in Ecma and JTC1, but RF with Microsoft’s “Open Specification Promise” – it worked. Today at least 30+ OSS implementations of the standards – important for feedback in maintenance • 201x-today ECMA-262 (fast tracked as ISO/IEC 16262) “ECMAScript Language Specification” with OSS involvement and input. Since 2018 different solution because of yearly updates of the standard (Too fast for the “fast track”). • 2013 ECMA-404 (fast tracked as ISO/IEC 21778 ) “The JSON Data Interchange Syntax“. Many OSS impl. Rue du Rhône 114 - CH-1204 Geneva - T: +41 22 849 6000 - F: +41 22 849 6001 - www.ecma-international.org 2 Initial Questions by the OSS Workshop Moderators: • Is Open Source development the next stage to be adopted by SDOs? • To what extent a closer collaboration between standards and open source software development could increase efficiency of both? • How can intellectual property regimes - applied by SDOs - influence the ability and motivation of open source communities to cooperate with them? • Should there be a role for policy setting at EU level? What actions of the European Commission could maximize the positive impact of Open Source in the European economy? Rue du Rhône 114 - CH-1204 Geneva - T: +41 22 849 6000 - F: +41 22 849 6001 - www.ecma-international.org 3 Question 1 and Answer: • Is Open Source development the next stage to be adopted by SDOs? • No.
    [Show full text]
  • SAV4120 Layout
    PUBLISHED WEEKLY BY THE AMERICAN NATIONAL STANDARDS INSTITUTE 25 West 43rd Street, NY, NY 10036 VOL. 41, #20 May 14, 2010 Contents American National Standards Call for Comment on Standards Proposals ................................................. 2 Call for Comment Contact Information ........................................................ 7 Call for Members (ANS Consensus Bodies)................................................ 9 Final Actions .................................................................................................. 11 Project Initiation Notification System (PINS)............................................... 13 International Standards ISO and IEC Draft Standards......................................................................... 17 ISO Newly Published Standards................................................................... 19 Proposed Foreign Government Regulations................................................. 20 Information Concerning .................................................................................. 21 American National Standards Call for comment on proposals listed This section solicits public comments on proposed draft new Ordering Instructions for "Call-for-Comment" Listings American National Standards, including the national adoption of 1. Order from the organization indicated for the specific ISO and IEC standards as American National Standards, and on proposal. proposals to revise, reaffirm or withdraw approval of existing American National Standards. A draft standard is
    [Show full text]
  • Visual Studio 2010 Tools for Sharepoint Development
    Visual Studio 2010 for SharePoint Open XML and Content Controls COLUMNS Toolbox Visual Studio 2010 Tools for User Interfaces, Podcasts, Object-Relational Mappings SharePoint Development and More Steve Fox page 44 Scott Mitchell page 9 CLR Inside Out Profi ling the .NET Garbage- Collected Heap Subramanian Ramaswamy & Vance Morrison page 13 Event Tracing Event Tracing for Windows Basic Instincts Collection and Array Initializers in Visual Basic 2010 Generating Documents from SharePoint Using Open XML Adrian Spotty Bowles page 20 Content Controls Data Points Eric White page 52 Data Validation with Silverlight 3 and the DataForm John Papa page 30 Cutting Edge Data Binding in ASP.NET AJAX 4.0 Dino Esposito page 36 Patterns in Practice Functional Programming Core Instrumentation Events in Windows 7, Part 2 for Everyday .NET Developers MSDN Magazine Dr. Insung Park & Alex Bendetov page 60 Jeremy Miller page 68 Service Station Building RESTful Clients THIS MONTH at msdn.microsoft.com/magazine: Jon Flanders page 76 CONTRACT-FIRST WEB SERVICES: Schema-Based Development Foundations with Windows Communication Foundation Routers in the Service Bus Christian Weyer & Buddihke de Silva Juval Lowy page 82 TEST RUN: Partial Anitrandom String Testing Concurrent Affairs James McCaffrey Four Ways to Use the Concurrency TEAM SYSTEM: Customizing Work Items Runtime in Your C++ Projects Rick Molloy page 90 OCTOBER Brian A. Randell USABILITY IN PRACTICE: Getting Inside Your Users’ Heads 2009 Charles B. Kreitzberg & Ambrose Little Vol 24 No 10 Vol OCTOBER 2009 VOL 24 NO 10 OCTOBER 2009 VOLUME 24 NUMBER 10 LUCINDA ROWLEY Director EDITORIAL: [email protected] HOWARD DIERKING Editor-in-Chief WEB SITE MICHAEL RICHTER Webmaster CONTRIBUTING EDITORS Don Box, Keith Brown, Dino Esposito, Juval Lowy, Dr.
    [Show full text]
  • Open Document Formats As an Enabler of Interoperability
    OPEN DOCUMENT FORMATS AS AN ENABLER OF INTEROPERABILITY COMPARISON OF THE OASIS OPENDOCUMENT FORMAT AND MICROSOFT OFFICE OPEN XML PC productivity applications (PPAs), including word processing, spreadsheet, and presentation software, represent the most important applications to PC users today. Most documents today are created with a word processor, spreadsheet or a presentations application. Therefore, for the purposes of ensuring that the documents can be freely exchanged between users, and that they are accessible not only now but also in the future, it is important that the format the documents are saved in is one that can be fully supported by the widest possible range of applications. Only a fully open cross-platform format can allow for full interoperability between PPAs, and ensure that users' data is not locked-in to specific applications and platforms. OpenDocument Format and Microsoft Office Open XML The OpenDocument Format (ODF) was created to meet the demand for such a format. It was developed as an application-independent file format by a vendor-neutral standards developing organization OASIS, with the participation of multiple office application vendors. On 4 May 2006, the Joint Technical Committee for Information Technology Standards (JTC-1) of the International Organization for Standardization (ISO) and the International Electrotechnical Commission (IEC) approved ODF as international standard ISO/IEC JTC 1 26300.1 ODF is supported by various PPAs, including OpenOffice,2 StarOffice 83 Google Docs & Spreadsheets,4 IBM Productivity
    [Show full text]
  • Improving Compression-Ratio in Backup
    Institutionen för systemteknik Department of Electrical Engineering Examensarbete Improving compression ratio in backup Examensarbete utfört i Informationskodning/Bildkodning av Mattias Zeidlitz Författare Mattias Zeidlitz LITH-ISY-EX--12/4588--SE Linköping 2012 TEKNISKA HÖGSKOLAN LINKÖPINGS UNIVERSITET Department of Electrical Engineering Linköpings tekniska högskola Linköping University Institutionen för systemteknik S-581 83 Linköping, Sweden 581 83 Linköping Improving compression-ratio in backup ............................................................................ Examensarbete utfört i Informationskodning/Bildkodning vid Linköpings tekniska högskola av Mattias Zeidlitz ............................................................. LITH-ISY-EX--12/4588--SE Presentationsdatum Institution och avdelning 2012-06-13 Institutionen för systemteknik Publiceringsdatum (elektronisk version) Department of Electrical Engineering Datum då du ämnar publicera exjobbet Språk Typ av publikation ISBN (licentiatavhandling) Svenska Licentiatavhandling ISRN LITH-ISY-EX--12/4588--SE x Annat (ange nedan) x Examensarbete Serietitel (licentiatavhandling) C-uppsats D-uppsats Engelska Rapport Serienummer/ISSN (licentiatavhandling) Antal sidor Annat (ange nedan) 58 URL för elektronisk version http://www.ep.liu.se Publikationens titel Improving compression ratio in backup Författare Mattias Zeidlitz Sammanfattning Denna rapport beskriver ett examensarbete genomfört på Degoo Backup AB i Stockholm under våren 2012. Syftet var att designa en kompressionssvit
    [Show full text]
  • Download and Execution, Along with Metadata That Dr
    Table of Contents Preface 5 Purpose and Membership 7 Ecma's role in International Standardization 9 Organization of Ecma International* 10 General Assembly 13 Ordinary members 14 Associate members 16 SME members 17 SPC members 18 Not-for-Profit members 19 Technical Committees 21 Index of Ecma Standards 57 Ecma Standards and corresponding International and European Standards 61 Technical Reports 81 List of Representatives 84 Ecma By-laws 139 Ecma Rules 146 Code of Conduct in Patent Matters 151 Withdrawn Ecma Standards and Technical Reports 153 History of Ecma International 165 Past Presidents / Secretary General 166 * Often called Ecma, or ECMA (in the past), short for Ecma International. - 3 - Preface Information Technology, Telecommunications and Consumer Electronics are key factors in today's economic and social environment. Effective interchange both of commercial, technical, and administrative data, text and images and of audiovisual information is essential for the growth of economy in the world markets. Through the increasing digitalization of information technology, telecommunications and consumer electronics are getting more and more integrated. Open Systems and Distributed Networks based on worldwide recognized standards will not only provide effective interchange of information but also help to remove technical barriers to trade. In particular harmonized standards are recognized as a prerequisite for the establishment of the European economic area. From 1961 until 1994, ECMA (European Computer Manufacturers Association), then Ecma International (Ecma, for short) has actively contributed to worldwide standardization in information technology, communications and consumer electronics (ICT and CE). More than 380 Ecma Standards and 90 Technical Reports of high quality have been published.
    [Show full text]
  • [MS-XLSX]: Excel (.Xlsx) Extensions to the Office Open XML Spreadsheetml File Format
    [MS-XLSX]: Excel (.xlsx) Extensions to the Office Open XML SpreadsheetML File Format Intellectual Property Rights Notice for Open Specifications Documentation . Technical Documentation. Microsoft publishes Open Specifications documentation (“this documentation”) for protocols, file formats, data portability, computer languages, and standards support. Additionally, overview documents cover inter-protocol relationships and interactions. Copyrights. This documentation is covered by Microsoft copyrights. Regardless of any other terms that are contained in the terms of use for the Microsoft website that hosts this documentation, you can make copies of it in order to develop implementations of the technologies that are described in this documentation and can distribute portions of it in your implementations that use these technologies or in your documentation as necessary to properly document the implementation. You can also distribute in your implementation, with or without modification, any schemas, IDLs, or code samples that are included in the documentation. This permission also applies to any documents that are referenced in the Open Specifications documentation. No Trade Secrets. Microsoft does not claim any trade secret rights in this documentation. Patents. Microsoft has patents that might cover your implementations of the technologies described in the Open Specifications documentation. Neither this notice nor Microsoft's delivery of this documentation grants any licenses under those patents or any other Microsoft patents. However, a given Open Specifications document might be covered by the Microsoft Open Specifications Promise or the Microsoft Community Promise. If you would prefer a written license, or if the technologies described in this documentation are not covered by the Open Specifications Promise or Community Promise, as applicable, patent licenses are available by contacting [email protected].
    [Show full text]
  • Data Formats
    Data formats { "firstName": "John", "lastName" : "Smith", "age" : 25, "address" : { "streetAddress": "21 2nd Street", "city" : "New York", "state" : "NY", "postalCode" : "10021" }, CSCI 470: Web Science • Keith Vertanen • Copyright © 2014 Overview • Last time: – Web services • A simple GET request (REST) • Or a more complicated XML message (SOAP) • How to store or interchange data? – XML – JSON – Homebrewed ASCII format 2 Bing web services 3 Using Bing search API • Find the top-10 Bing results for "orediggers" – Make a HTTP GET request – https://api.datamarket.azure.com/Bing/Search/We b?Query=%27oredigger%27&$top=10&$format=json Asks for the result in JSON format. 4 Using Bing search API • Find the top-10 Bing results for "orediggers" – Make a HTTP GET request – https://api.datamarket.azure.com/Bing/Search/We b?Query=%27oredigger%27&$top=10&$format=atom Asks for the result in XML format. 5 XML 6 JSON 7 Data format: XML • XML (Extensible Markup Language) – Human "readable" – W3C recommendation – Markup language like HTML – Originally a document format • Microsoft Office (Office Open XML) • OpenOffice (OpenDocument) • Apple iWork – Can be used for data interchange • e.g. SOAP, RSS, Atom 8 XML <?xml version="1.0" encoding="ISO-8859-1"?> root element <note> (required) <to>Tove</to> <from>Jani</from> child elements <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> Every tag must be closed <b><i>This text is bold and italic</b></i> Example of improperly nested HTML <b><i>This text is bold and italic</i></b> Properly nested XHTML 9 <bookstore> <book category="COOKING"> <title lang="en">Everyday Italian</title> <author>Giada De Laurentiis</author> <year>2005</year> Tags are case-sensitive, <price>30.00</price> <title> != <Title> </book> <book category="CHILDREN"> <title lang="en">Harry Potter</title> Attributes must be quoted <author>J K.
    [Show full text]
  • [MS-ODRAWXML]: Office Drawing Extensions to Office Open XML Structure
    [MS-ODRAWXML]: Office Drawing Extensions to Office Open XML Structure Intellectual Property Rights Notice for Open Specifications Documentation . Technical Documentation. Microsoft publishes Open Specifications documentation (“this documentation”) for protocols, file formats, data portability, computer languages, and standards support. Additionally, overview documents cover inter-protocol relationships and interactions. Copyrights. This documentation is covered by Microsoft copyrights. Regardless of any other terms that are contained in the terms of use for the Microsoft website that hosts this documentation, you can make copies of it in order to develop implementations of the technologies that are described in this documentation and can distribute portions of it in your implementations that use these technologies or in your documentation as necessary to properly document the implementation. You can also distribute in your implementation, with or without modification, any schemas, IDLs, or code samples that are included in the documentation. This permission also applies to any documents that are referenced in the Open Specifications documentation. No Trade Secrets. Microsoft does not claim any trade secret rights in this documentation. Patents. Microsoft has patents that might cover your implementations of the technologies described in the Open Specifications documentation. Neither this notice nor Microsoft's delivery of this documentation grants any licenses under those patents or any other Microsoft patents. However, a given Open Specifications document might be covered by the Microsoft Open Specifications Promise or the Microsoft Community Promise. If you would prefer a written license, or if the technologies described in this documentation are not covered by the Open Specifications Promise or Community Promise, as applicable, patent licenses are available by contacting [email protected].
    [Show full text]