OASIS Opendocument Essentials Using OASIS Opendocument XML

Total Page:16

File Type:pdf, Size:1020Kb

OASIS Opendocument Essentials Using OASIS Opendocument XML OASIS OpenDocument Essentials Using OASIS OpenDocument XML J. David Eisenberg Cover graphic provided by Peter Harlow OASIS OpenDocument Essentials: Using OASIS OpenDocument XML by J. David Eisenberg Copyright © 2005 J. David Eisenberg. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in Appendix D, “GNU Free Documentation License”. Published by Friends of OpenDocument Inc., P.O. Box 640, Airlie Beach, Qld 4802, Australia, http://friendsofopendocument.org/. This book was produced using OpenOffice.org 2.0.1. It is printed in the United States of America by Lulu.com (http://www.lulu.com). The author has a web page for this book, where he lists errata, examples, or any additional information. You can access this page at: http://books.evc-cit.info/index.html . You can download a PDF version of this book at no charge from that website. The author and publisher of this book have used their best efforts in preparing the book and the information contained in it. This book is sold as is, without warranty of any kind, either express or implied, respecting the contents of this book, including but not limited to implied warranties for the book’s quality, performance, or fitness for any purpose. Neither the author nor the publisher and its dealers and distributors shall be liable to the purchaser or any other person or entity with respect to liability, loss, or damages caused or alleged to have been caused directly or indirectly by this book. All products, names and services mentioned in this book that are trademarks, registered trademarks, or service marks, are the property of their respective owners. ISBN 1-4116-6832-4 Table of Contents Table of Contents Preface......................................................................................................... vii Who Should Read This Book?............................................................................ vii Who Should Not Read This Book?..................................................................... vii About the Examples............................................................................................ vii Conventions Used in This Book.........................................................................viii Acknowledgments.............................................................................................. viii Chapter 1. The Open Document Format....................................................1 The Proprietary World...........................................................................................1 The OpenDocument Approach..............................................................................2 Inside an OpenDocument file................................................................................ 2 File or Document?........................................................................................... 2 The manifest.xml File............................................................................................6 Namespaces........................................................................................................... 7 Unpacking and Packing OpenDocument files....................................................... 9 The Virtues of Cheating...................................................................................... 12 Chapter 2. The meta.xml, styles.xml, settings.xml, and content.xml Files.............................................................................................................. 13 The settings.xml File........................................................................................... 13 Configuration Items....................................................................................... 13 Named Item Maps..........................................................................................14 Indexed Item Maps........................................................................................ 14 The meta.xml File................................................................................................14 The Dublin Core Elements............................................................................ 17 Elements from the meta Namespace..............................................................18 Time and Duration Formats...........................................................................20 Case Study: Extracting Meta-Information...........................................................20 Archive::Zip::MemberRead...........................................................................20 XML::Simple.................................................................................................21 The Meta Extraction Program........................................................................22 The styles.xml File...............................................................................................24 Font Declarations...........................................................................................24 Office Default and Named Styles.................................................................. 25 Names and Display Names............................................................................ 26 The content.xml File............................................................................................27 Chapter 3. Text Document Basics............................................................. 29 Characters and Paragraphs.................................................................................. 29 Whitespace.....................................................................................................29 Defining Paragraphs and Headings................................................................33 Character and Paragraph Styles..................................................................... 33 Creating Font Declarations.......................................................................34 Using OASIS OpenDocument XML i Table of Contents Creating Automatic Styles........................................................................36 Character Styles........................................................................................36 Using Character Styles............................................................................. 38 Paragraph Styles.......................................................................................40 Borders and Padding................................................................................ 41 Tab Stops..................................................................................................42 Asian and Complex Text Layout Characters................................................. 43 Case Study: Extracting Headings...................................................................44 Sections................................................................................................................46 Pages....................................................................................................................48 Specifying a Page Master...............................................................................49 Master Styles..................................................................................................52 Pages in the content.xml file..........................................................................53 Bulleted, Numbered, and Outlined Lists............................................................. 53 Case Study: Adding Headings to a Document.....................................................57 Chapter 4. Text Documents—Advanced.................................................. 69 Frames................................................................................................................. 69 Style Information for Frames.........................................................................69 Body Information for Frames........................................................................ 70 Inserting Images in Text...................................................................................... 71 Style Information for Images in Text.............................................................72 Body Information for Images in Text............................................................ 73 Background Images............................................................................................. 74 Fields................................................................................................................... 74 Date and Time Fields.....................................................................................74 Page Numbering............................................................................................ 75 Document Information...................................................................................75 Footnotes and Endnotes.......................................................................................75 Tracking Changes................................................................................................ 77 Tables in Text Documents...................................................................................79 Text Table Style Information.........................................................................79 Styling for the
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]
  • Why ODF?” - the Importance of Opendocument Format for Governments
    “Why ODF?” - The Importance of OpenDocument Format for Governments Documents are the life blood of modern governments and their citizens. Governments use documents to capture knowledge, store critical information, coordinate activities, measure results, and communicate across departments and with businesses and citizens. Increasingly documents are moving from paper to electronic form. To adapt to ever-changing technology and business processes, governments need assurance that they can access, retrieve and use critical records, now and in the future. OpenDocument Format (ODF) addresses these issues by standardizing file formats to give governments true control over their documents. Governments using applications that support ODF gain increased efficiencies, more flexibility and greater technology choice, leading to enhanced capability to communicate with and serve the public. ODF is the ISO Approved International Open Standard for File Formats ODF is the only open standard for office applications, and it is completely vendor neutral. Developed through a transparent, multi-vendor/multi-stakeholder process at OASIS (Organization for the Advancement of Structured Information Standards), it is an open, XML- based document file format for displaying, storing and editing office documents, such as spreadsheets, charts, and presentations. It is available for implementation and use free from any licensing, royalty payments, or other restrictions. In May 2006, it was approved unanimously as an International Organization for Standardization (ISO) and International Electrotechnical Commission (IEC) standard. Governments and Businesses are Embracing ODF The promotion and usage of ODF is growing rapidly, demonstrating the global need for control and choice in document applications. For example, many enlightened governments across the globe are making policy decisions to move to ODF.
    [Show full text]
  • MPEG-21 Overview
    MPEG-21 Overview Xin Wang Dept. Computer Science, University of Southern California Workshop on New Multimedia Technologies and Applications, Xi’An, China October 31, 2009 Agenda ● What is MPEG-21 ● MPEG-21 Standards ● Benefits ● An Example Page 2 Workshop on New Multimedia Technologies and Applications, Oct. 2009, Xin Wang MPEG Standards ● MPEG develops standards for digital representation of audio and visual information ● So far ● MPEG-1: low resolution video/stereo audio ● E.g., Video CD (VCD) and Personal music use (MP3) ● MPEG-2: digital television/multichannel audio ● E.g., Digital recording (DVD) ● MPEG-4: generic video and audio coding ● E.g., MP4, AVC (H.24) ● MPEG-7 : visual, audio and multimedia descriptors MPEG-21: multimedia framework ● MPEG-A: multimedia application format ● MPEG-B, -C, -D: systems, video and audio standards ● MPEG-M: Multimedia Extensible Middleware ● ● MPEG-V: virtual worlds MPEG-U: UI ● (29116): Supplemental Media Technologies ● ● (Much) more to come … Page 3 Workshop on New Multimedia Technologies and Applications, Oct. 2009, Xin Wang What is MPEG-21? ● An open framework for multimedia delivery and consumption ● History: conceived in 1999, first few parts ready early 2002, most parts done by now, some amendment and profiling works ongoing ● Purpose: enable all-electronic creation, trade, delivery, and consumption of digital multimedia content ● Goals: ● “Transparent” usage ● Interoperable systems ● Provides normative methods for: ● Content identification and description Rights management and protection ● Adaptation of content ● Processing on and for the various elements of the content ● ● Evaluation methods for determining the appropriateness of possible persistent association of information ● etc. Page 4 Workshop on New Multimedia Technologies and Applications, Oct.
    [Show full text]
  • Supported File Types
    MyFax Supported File Formats Document Type Versions Extensions Adobe Portable Document Format (PDF) All Versions PDF Adobe Postscript All Versions PS Adobe Photoshop v. 3.0 and above PSD Amiga Interchange File Format (IFF) Raster Bitmap only IFF CAD Drawing Exchange Format (DXF) All AutoCad compatible versions DXF Comma Separated Values Format All Versions CSV Compuserve Graphics Interchange Format GIF87a, GIF89a GIF Corel Presentations Slide Show v. 96 and above SHW Corel Word Perfect v. 5.x. 6, 7, 8, 9 WPD, WP5, WP6 Encapsulated Postscript All Versions EPS Hypertext Markup Language HTML only with base href tag required HTML, HTM JPEG Joint Photography Experts Group All Versions JPG, JPEG Lotus 1-2-3 v. 2, 3, 4, 5, 96, 97, 9.x 123, WK1, WK3, WK4 Lotus Word Pro v. 96, 97, 9.x LWP Microsoft Excel v. 5, 95, 97, 2000, 2003, 2007 XLS, XLSX Microsoft PowerPoint v. 4 and above PPT, PPTX Microsoft Publisher v. 98, 2000, 2002, 2003, 2007 PUB Microsoft Windows Write All Versions WRI Microsoft Word Win: v. 97, 2000, 2003, 2007 Mac: v. 4, 5.x, 95, 98 DOC, DOCX Microsoft Word Template Win: v. 97, 2000, 2003, 2007 Mac: v. 4, 5.x, 95, 98 DOT, DOTX Microsoft Works Word Processor v. 4.x, 5, 6, 7, 8.x, 9 WPS OpenDocument Drawing All Versions ODG OpenDocument Presentation All Versions ODP OpenDocument Spreadsheet All Versions ODS OpenDocument Text All Versions ODT PC Paintbrush Graphics (PCX) All Versions PCX Plain Text All Versions TXT, DOC, LOG, ERR, C, CPP, H Portable Network Graphics (PNG) All Versions PNG Quattro Pro v.
    [Show full text]
  • How to Use the IBM CMIS Authentication Methods Contents
    How to use the IBM CMIS authentication methods This tech note describes how to use the authentication methods supported with IBM CMIS. Contents Introduction .............................................................................................................................................. 1 Before You Start ........................................................................................................................................ 2 Using HTTP Basic Authentication .............................................................................................................. 2 Basic Authentication with Authorization Header ................................................................................. 2 Basic Authentication with an LTPA Token sent via an HTTP Cookie Header ........................................ 3 Using WS-Security Authentication ............................................................................................................ 4 LTPA Token sent via a SOAP Header ..................................................................................................... 4 Username Token sent via SOAP Header ............................................................................................... 5 Introduction There are two authentication methods supported with IBM CMIS: • HTTP Basic Authentication This option uses an HTTP header that contains an encoded username and password to authenticate clients. • WS-Security Authentication This option uses a WS-Security SOAP header to authenticate clients.
    [Show full text]
  • Background Information History, Licensing, and File Formats Copyright This Document Is Copyright © 2008 by Its Contributors As Listed in the Section Titled Authors
    Getting Started Guide Appendix B Background Information History, licensing, and file formats Copyright This document is Copyright © 2008 by its contributors as listed in the section titled Authors. You may distribute it and/or modify it under the terms of either the GNU General Public License, version 3 or later, or the Creative Commons Attribution License, version 3.0 or later. All trademarks within this guide belong to their legitimate owners. Authors Jean Hollis Weber Feedback Please direct any comments or suggestions about this document to: [email protected] Acknowledgments This Appendix includes material written by Richard Barnes and others for Chapter 1 of Getting Started with OpenOffice.org 2.x. Publication date and software version Published 13 October 2008. Based on OpenOffice.org 3.0. You can download an editable version of this document from http://oooauthors.org/en/authors/userguide3/published/ Contents Introduction...........................................................................................4 A short history of OpenOffice.org..........................................................4 The OpenOffice.org community.............................................................4 How is OpenOffice.org licensed?...........................................................5 What is “open source”?..........................................................................5 What is OpenDocument?........................................................................6 File formats OOo can open.....................................................................6
    [Show full text]
  • Extensible Markup Language (XML) and Its Role in Supporting the Global Justice XML Data Model
    Extensible Markup Language (XML) and Its Role in Supporting the Global Justice XML Data Model Extensible Markup Language, or "XML," is a computer programming language designed to transmit both data and the meaning of the data. XML accomplishes this by being a markup language, a mechanism that identifies different structures within a document. Structured information contains both content (such as words, pictures, or video) and an indication of what role content plays, or its meaning. XML identifies different structures by assigning data "tags" to define both the name of a data element and the format of the data within that element. Elements are combined to form objects. An XML specification defines a standard way to add markup language to documents, identifying the embedded structures in a consistent way. By applying a consistent identification structure, data can be shared between different systems, up and down the levels of agencies, across the nation, and around the world, with the ease of using the Internet. In other words, XML lays the technological foundation that supports interoperability. XML also allows structured relationships to be defined. The ability to represent objects and their relationships is key to creating a fully beneficial justice information sharing tool. A simple example can be used to illustrate this point: A "person" object may contain elements like physical descriptors (e.g., eye and hair color, height, weight), biometric data (e.g., DNA, fingerprints), and social descriptors (e.g., marital status, occupation). A "vehicle" object would also contain many elements (such as description, registration, and/or lien-holder). The relationship between these two objects—person and vehicle— presents an interesting challenge that XML can address.
    [Show full text]
  • Kinematics Study of Motion
    Kinematics Study of motion Kinematics is the branch of physics that describes the motion of objects, but it is not interested in its causes. Itziar Izurieta (2018 october) Index: 1. What is motion? ............................................................................................ 1 1.1. Relativity of motion ................................................................................................................................ 1 1.2.Frame of reference: Cartesian coordinate system ....................................................................................................................................................................... 1 1.3. Position and trajectory .......................................................................................................................... 2 1.4.Travelled distance and displacement ....................................................................................................................................................................... 3 2. Quantities of motion: Speed and velocity .............................................. 4 2.1. Average and instantaneous speed ............................................................ 4 2.2. Average and instantaneous velocity ........................................................ 7 3. Uniform linear motion ................................................................................. 9 3.1. Distance-time graph .................................................................................. 10 3.2. Velocity-time
    [Show full text]
  • Odfweave Manual
    The OdfWeave Package Max Kuhn max.kuhn@pfizer.com August 7, 2007 1 Introduction The Sweave function (Leisch, 2002) is a powerful component of R. It can be used to combine R code with LATEX so that the output of the code is embedded in the processed document. The capabilities of Sweave were later extended to HTML format in the R2HTML package. A written record of an analysis can be created using Sweave, but additional annotation of the results may be needed such as context–specific interpretation of the results. Sweave can be used to automatically create reports, but it can be difficult for researchers to add their subject–specific insight to pdf or HTML files. The odfWeave package was created so that the functionality of Sweave can used to generate documents that the end–user can easily edit. The markup language used is the Open Document Format (ODF), which is an open, non– proprietary format that encompasses text documents, presentations and spreadsheets. Version 1.0 of the specification was finalized in May of 2005 (OASIS, 2005). One year later, the format was approved for release as an ISO and IEC International Standard. There are several editors/office suites that can produce ODF files. OpenOffice is a free, open source editor that, as of version 2.0, uses ODF as the default format. odfWeave has been tested with OpenOffice to produce text documents. As of the current version, odfWeave processing of presentations and spreadsheets should be considered to be experimental (but should be supported in subsequent versions). OpenOffice can be used to export the document to MS Word, rich text format, HTML, plain text or pdf formats.
    [Show full text]
  • Extensible Markup Language (XML)
    15 Extensible Markup Language (XML) Objectives • To mark up data, using XML. • To understand the concept of an XML namespace. • To understand the relationship between DTDs, Schemas and XML. • To create Schemas. • To create and use simple XSLT documents. • To transform XML documents into XHTML, using class XslTransform. • To become familiar with BizTalk™. Knowing trees, I understand the meaning of patience. Knowing grass, I can appreciate persistence. Hal Borland Like everything metaphysical, the harmony between thought and reality is to be found in the grammar of the language. Ludwig Wittgenstein I played with an idea and grew willful, tossed it into the air; transformed it; let it escape and recaptured it; made it iridescent with fancy, and winged it with paradox. Oscar Wilde Chapter 15 Extensible Markup Language (XML) 657 Outline 15.1 Introduction 15.2 XML Documents 15.3 XML Namespaces 15.4 Document Object Model (DOM) 15.5 Document Type Definitions (DTDs), Schemas and Validation 15.5.1 Document Type Definitions 15.5.2 Microsoft XML Schemas 15.5.3 W3C XML Schema 15.5.4 Schema Validation in C# 15.6 Extensible Stylesheet Language and XslTransform 15.7 Microsoft BizTalk™ 15.8 Summary 15.9 Internet and World Wide Web Resources 15.1 Introduction The Extensible Markup Language (XML) was developed in 1996 by the World Wide Web Consortium’s (W3C’s) XML Working Group. XML is a portable, widely supported, open technology (i.e., non-proprietary technology) for describing data. XML is becoming the standard for storing data that is exchanged between applications. Using XML, document authors can describe any type of data, including mathematical formulas, software-configu- ration instructions, music, recipes and financial reports.
    [Show full text]
  • Extensible Access Control Markup Language (XACML) Version 1.0
    1 2 eXtensible Access Control Markup Language 3 (XACML) Version 2.0 4 OASIS Standard, 1 Feb 2005 5 Document Identifier: oasis-access_control-xacml-2.0-core-spec-os 6 Location: http://docs.oasis-open.org/xacml/2.0/access_control-xacml-2.0-core-spec-os.pdf 7 Editor: 8 Tim Moses, Entrust Inc. ([email protected]) 9 Abstract: 10 This specification defines version 2.0 of the extensible access-control markup language. 11 Status: 12 This version of the specification is an approved OASIS Standard within the OASIS Access 13 Control TC. 14 Access Control TC members should send comments on this specification to the 15 [email protected] list. Others may use the following link and complete the 16 comment form: http://oasis-open.org/committees/comments/form.php?wg_abbrev=xacml. 17 For information on whether any patents have been disclosed that may be essential to 18 implementing this specification, and any offers of patent licensing terms, please refer to the 19 Intellectual Property Rights section of the Access Control TC web page (http://www.oasis- 20 open.org/committees/tc_home.php?wg_abbrev=xacml). 21 For any errata page for this specification, please refer to the Access Control TC web page 22 (http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=xacml). 23 The non-normative errata page for this specification is located at 24 www.oasis-open.org/committees/access-control. 25 Copyright © OASIS Open 2004-2005 All Rights Reserved. access_control-xacml-2.0-core-spec-os 1 February 2005 Copyright © OASIS Open 2004.
    [Show full text]
  • Server Administration Manual Release Latest
    Nextcloud Server Administration Manual Release latest The Nextcloud developers Oct 01, 2021 CONTENTS 1 Introduction 1 1.1 Videos and blogs.............................................1 1.2 Target audience..............................................1 2 Release notes 3 3 Maintenance and release schedule5 3.1 Major releases..............................................5 3.2 Maintenance releases...........................................5 3.3 Older versions..............................................6 4 Installation and server configuration7 4.1 System requirements...........................................7 4.2 Deployment recommendations......................................9 4.3 Installation on Linux...........................................9 4.4 Installation wizard............................................ 17 4.5 Installing from command line...................................... 21 4.6 Supported apps.............................................. 22 4.7 SELinux configuration.......................................... 24 4.8 NGINX configuration.......................................... 27 4.9 Hardening and security guidance.................................... 36 4.10 Server tuning............................................... 40 4.11 Example installation on Ubuntu 20.04 LTS............................... 42 4.12 Example installation on CentOS 8.................................... 44 4.13 Example installation on OpenBSD.................................... 48 5 Nextcloud configuration 53 5.1 Warnings on admin page........................................
    [Show full text]