ISO/IEC DIS 29500-2
(Main)Document description and processing languages -- Office Open XML file formats
Document description and processing languages -- Office Open XML file formats
Description des documents et langages de traitement -- Formats de fichier "Office Open XML"
General Information
RELATIONS
Standards Content (sample)
DRAFT INTERNATIONAL STANDARD
ISO/IEC DIS 29500-2
ISO/IEC JTC 1/SC 34 Secretariat: JISC
Voting begins on: Voting terminates on:
2020-02-25 2020-05-19
Document description and processing languages — Office
Open XML file formats —
Part 2:
Open packaging conventions
Description des documents et langages de traitement — Formats de fichier "Office Open XML" —
Partie 2: Conventions de paquetage ouvertICS: 35.060; 35.240.30
THIS DOCUMENT IS A DRAFT CIRCULATED
FOR COMMENT AND APPROVAL. IT IS
THEREFORE SUBJECT TO CHANGE AND MAY
NOT BE REFERRED TO AS AN INTERNATIONAL
STANDARD UNTIL PUBLISHED AS SUCH.
IN ADDITION TO THEIR EVALUATION AS
BEING ACCEPTABLE FOR INDUSTRIAL,
This document is circulated as received from the committee secretariat.
TECHNOLOGICAL, COMMERCIAL AND
USER PURPOSES, DRAFT INTERNATIONAL
STANDARDS MAY ON OCCASION HAVE TO
BE CONSIDERED IN THE LIGHT OF THEIR
POTENTIAL TO BECOME STANDARDS TO
WHICH REFERENCE MAY BE MADE IN
Reference number
NATIONAL REGULATIONS.
ISO/IEC DIS 29500-2:2020(E)
RECIPIENTS OF THIS DRAFT ARE INVITED
TO SUBMIT, WITH THEIR COMMENTS,
NOTIFICATION OF ANY RELEVANT PATENT
RIGHTS OF WHICH THEY ARE AWARE AND TO
PROVIDE SUPPORTING DOCUMENTATION. ISO/IEC 2020
---------------------- Page: 1 ----------------------
ISO/IEC DIS 29500-2:2020(E)
COPYRIGHT PROTECTED DOCUMENT
© ISO/IEC 2020
All rights reserved. Unless otherwise specified, or required in the context of its implementation, no part of this publication may
be reproduced or utilized otherwise in any form or by any means, electronic or mechanical, including photocopying, or posting
on the internet or an intranet, without prior written permission. Permission can be requested from either ISO at the address
below or ISO’s member body in the country of the requester.ISO copyright office
CP 401 • Ch. de Blandonnet 8
CH-1214 Vernier, Geneva
Phone: +41 22 749 01 11
Fax: +41 22 749 09 47
Email: copyright@iso.org
Website: www.iso.org
Published in Switzerland
ii © ISO/IEC 2020 – All rights reserved
---------------------- Page: 2 ----------------------
ISO/IEC DIS 29500-2:2020(E)
Contents Page
Foreword ..........................................................................................................................................................................................................................................v
Introduction ..............................................................................................................................................................................................................................vii
1 Scope ................................................................................................................................................................................................................................. 1
2 Normative references ...................................................................................................................................................................................... 1
3 Terms and definitions ..................................................................................................................................................................................... 2
4 Notational conventions .................................................................................................................................................................................. 5
5 Conformance ............................................................................................................................................................................................................. 5
6 Overview ....................................................................................................................................................................................................................... 5
7 Abstract package model ................................................................................................................................................................................ 6
7.1 General ........................................................................................................................................................................................................... 6
7.2 Parts ................................................................................................................................................................................................................. 6
7.2.1 General...................................................................................................................................................................................... 6
7.2.2 Part names .................. .................................................... ....................................................................................................... 6
7.2.3 Media types .......................................................................................................................................................................... 8
7.2.4 Growth hint........................................................................................................................................................................... 8
7.2.5 XML usage .............................................................................................................................................................................. 8
7.3 Part addressing ....................................................................................................................................................................................... 9
7.3.1 General...................................................................................................................................................................................... 9
7.3.2 Pack scheme ......................................................................................................................................................................... 9
7.3.3 Resolving a pack IRI to a resource .................................................................................................................10
7.3.4 Composing a pack IRI ...............................................................................................................................................11
7.3.5 Equivalence........................................................................................................................................................................11
7.4 Resolving relative references ...................................................................................................................................................12
7.4.1 General...................................................................................................................................................................................12
7.4.2 Base IRIs ...............................................................................................................................................................................12
7.4.3 Examples ..............................................................................................................................................................................12
7.5 Relationships .........................................................................................................................................................................................14
7.5.1 General...................................................................................................................................................................................14
7.5.2 Relationships part ........................................................................................................................................................15
7.5.3 Relationship markup .................................................................................................................................................16
7.5.4 Examples ..............................................................................................................................................................................17
7.5.5 Support for versioning and extensibility .................................................................................................20
8 Physical package model .............................................................................................................................................................................20
8.1 General ........................................................................................................................................................................................................20
8.2 Physical mapping guidelines ....................................................................................................................................................20
8.2.1 Using features of physical formats ................................................................................................................20
8.2.2 Mapped components .................................................................................................................................................20
8.2.3 Mapping media types to parts ...........................................................................................................................20
8.2.4 Interleaving .......................................................................................................................................................................23
8.2.5 Mapping part names to physical package item names.................................................................25
8.3 Mapping to a ZIP file ........................................................................................................................................................................26
8.3.1 General...................................................................................................................................................................................26
8.3.2 Mapping part data .......................................................................................................................................................27
8.3.3 ZIP item names ...............................................................................................................................................................27
8.3.4 Mapping logical item names to ZIP item names ................................................................................27
8.3.5 Mapping ZIP item names to logical item names ................................................................................27
8.3.6 ZIP package limitations ...........................................................................................................................................27
8.3.7 Mapping the Media Types stream ..................................................................................................................28
8.3.8 Mapping the growth hint .......................................................................................................................................28
9 Core properties ...................................................................................................................................................................................................28
9.1 General ........................................................................................................................................................................................................28
© ISO/IEC 2020 – All rights reserved iii---------------------- Page: 3 ----------------------
ISO/IEC DIS 29500-2:2020(E)
9.2 Core Properties part ........................................................................................................................................................................29
9.3 Core properties markup ...............................................................................................................................................................29
9.3.1 General...................................................................................................................................................................................29
9.3.2 coreProperties element ..........................................................................................................................................30
9.3.3 Core property elements ..........................................................................................................................................30
9.4 Support for versioning and extensibility .......................................................................................................................33
10 Thumbnails .............................................................................................................................................................................................................33
11 Digital signatures ..............................................................................................................................................................................................34
11.1 General ........................................................................................................................................................................................................34
11.2 Overview of OPC-specific restrictions and extensions to “XML-Signature Syntax
and Processing” ...................................................................................................................................................................................34
11.3 Choosing content to sign .............................................................................................................................................................34
11.4 Digital signature parts ...................................................................................................................................................................34
11.4.1 General...................................................................................................................................................................................34
11.4.2 Digital Signature Origin part ..............................................................................................................................35
11.4.3 Digital Signature XML Signature part .........................................................................................................35
11.4.4 Digital Signature Certificate part ....................................................................................................................35
11.5 Digital signature markup ............................................................................................................................................................36
11.5.1 General...................................................................................................................................................................................36
11.5.2 Signature element ........................................................................................................................................................36
11.5.3 SignedInfo element .....................................................................................................................................................36
11.5.4 CanonicalizationMethod element ..................................................................................................................36
11.5.5 SignatureMethod element ....................................................................................................................................37
11.5.6 Reference element .......................................................................................................................................................37
11.5.7 Transform element .....................................................................................................................................................38
11.5.8 RelationshipReference element .......................................................................................................................38
11.5.9 RelationshipsGroupReference element .....................................................................................................39
11.5.10 DigestMethod element .............................................................................................................................................39
11.5.11 Object element ................................................................................................................................................................39
11.5.12 Manifest element ..........................................................................................................................................................40
11.5.13 SignatureProperty element .................................................................................................................................40
11.5.14 SignatureTime element ...........................................................................................................................................40
11.5.15 Format element ..............................................................................................................................................................40
11.5.16 Value element ..................................................................................................................................................................40
11.5.17 XPath element .................................................................................................................................................................40
11.6 Relationships transform algorithm ....................................................................................................................................40
11.7 Digital signature example ...........................................................................................................................................................41
11.8 Generating signatures ....................................................................................................................................................................43
11.9 Validating signatures ......................................................................................................................................................................44
Annex A (informative) Preprocessing for generating relative references .................................................................46
Annex B (normative) Constraints and clarifications on the use of ZIP features ..................................................47
Annex C (normative) Schemas - W3C XML ...................................................................................................................................................55
Annex D (informative) Schemas - RELAX NG .............................................................................................................................................56
Annex E (normative) Standard namespaces and media types ...............................................................................................57
Annex F (informative) Physical package model design considerations ........................................................................58
Annex G (informative) Differences between ISO/IEC 29500-2 and ECMA -376: 2006......................................61
Annex H (informative) Package example ......................................................................................................................................................62
Bibliography .............................................................................................................................................................................................................................64
iv © ISO/IEC 2020 – All rights reserved---------------------- Page: 4 ----------------------
ISO/IEC DIS 29500-2:2020(E)
Foreword
ISO (the International Organization for Standardization) and IEC (the International Electrotechnical
Commission) form the specialized system for worldwide standardization. National bodies that are
members of ISO or IEC participate in the development of International Standards through technical
committees established by the respective organization to deal with particular fields of technical
activity. ISO and IEC technical committees collaborate in fields of mutual interest. Other international
organizations, governmental and non-governmental, in liaison with ISO and IEC, also take part in the
work. In the field of information technology, ISO and IEC have established a joint technical committee,
ISO/IEC JTC 1.International Standards are drafted in accordance with the rules given in the ISO/IEC Directives, Part 2.
The main task of the joint technical committee is to prepare International Standards. Draft International
Standards adopted by the joint technical committee are circulated to national bodies for voting.
Publication as an International Standard requires approval by at least 75% of the national bodies
casting a vote.Attention is drawn to the possibility that some of the elements of this document may be the subject of
patent rights. ISO and IEC shall not be held responsible for identifying any or all such patent rights.
ISO/IEC 29500-2 was prepared by ISO/IEC JTC 1, Information technology, Subcommittee SC 34,
Document description and processing languages.This fourth edition cancels and replaces the third edition (ISO/IEC 29500-2:2012). This fourth edition
preserves all previous functionality and adds no new functionality.The major changes from the previous edition included:
• The clause for conformance (Clause 6 in the preceding editions) was made Clause 2, as instructed by
ISO/IEC Directives Part 2.• Clause 3 (Terms and definitions) was revised by removing terms not used by any normative clauses
and then reorganizing terms into groups.• The subclause for diagram notes (§5.1 in the preceding editions) was removed, since core properties
are now defined by prose and schemas rather than by diagrams.• The clause for acronyms and abbreviations (Clause 6 in the preceding editions) was removed, since
it does not make sense for an ISO/IEC standard to define "ISO" and "IEC".• Clause 8 (Abstract package model) has been completely rewritten. In particular, (1) pack IRIs are
defined in this clause rather than in an annex, (2) a new subclause, "Resolving relative references",
was added; (3) part Relationship parts and package Relationship parts are distinguished; and (4)
base IRIs are clearly defined.• Removed the option for media type to be an empty string, as this conflicts with the definition of
media type in RFC 2046 and the existing regular expression defined in the schema referenced by C.2.
• Clause 9 (Physical package model) has been slightly revised. Interleaving is introduced before
logical item names. Percent-encoding and un-percent encoding of non-ASCII characters are explicitly
introduced in Subclause 9.3.• Clause 10 (Core properties) has been rewritten by using prose and schemas rather than diagrams.
• Clause 12 (Digital signatures) has been thoroughly revised. In particular, this clause now makes
clear a convention for the choice of algorithms for signature and digest methods, which reflects the
ongoing development of algorithms since the first edition of this document.• Annex A has been made informative.
© ISO/IEC 2020 – All rights reserved v
---------------------- Page: 5 ----------------------
ISO/IEC DIS 29500-2:2020(E)
• The normative annex that defined pack IRIs (Annex B in the preceding editions) has been dropped.
Pack IRIs are now defined in Clause 8.• Annexes C and D (in the preceding editions, Annexes D and E) no longer define schemas but reference
externally defined schemas.• Guidelines for meeting conformance requirements (Annex H in the preceding editions) has been
dropped.• Dropped requirements around streaming consumption.
• Wherever possible, requirements on programs are rewritten as those on data.
• Annex H has been added to depict an example package.
• The Index (Annex J in the preceding editions) has been deleted.
• Bibliography has been added.
ISO/IEC 29500 consists of the following parts, under the general title Information technology —
Document description and processing languages — Office Open XML File Formats:• Part 1: Fundamentals and Markup Language Reference
• Part 2: Open Packaging Conventions
• Part 3: Markup Compatibility and Extensibility
• Part 4: Transitional Migration Features
vi © ISO/IEC 2020 – All rights reserved
---------------------- Page: 6 ----------------------
ISO/IEC DIS 29500-2:2020(E)
Introduction
ISO/IEC 29500 specifies a family of XML schemas, collectively called Office Open XML, which define
the XML vocabularies for word-processing, spreadsheet, and presentation documents, as well as the
packaging of documents that conform to these schemas.The goal is to enable the implementation of the Office Open XML formats by the widest set of tools
and platforms, fostering interoperability across office productivity applications and line-of-business
systems, as well as to support and strengthen document archival and preservation, all in a way that is
fully compatible with the existing corpus of Microsoft® Office documents.This document includes two annexes (Annex C and Annex D) that refer to data files provided in
electronic form.The document representation formats defined by this document are different from the formats defined
in the corresponding Part of ECMA -376: 2006. Some of the differences are reflected in schema changes,
as shown in Annex G of this document.© ISO/IEC 2020 – All rights reserved vii
---------------------- Page: 7 ----------------------
DRAFT INTERNATIONAL STANDARD ISO/IEC DIS 29500-2:2020(E)
Document description and processing languages — Office
Open XML file formats —
Part 2:
Open packaging conventions
1 Scope
This document defines a set of conventions for packaging one or more interrelated byte streams
(parts) as a single resource (package). These conventions are applicable not only to Office Open XML
specifications as described in Parts 1 and 4 of ISO/IEC 29500, but also to other markup specifications.
2 Normative referencesThe following documents are referred to in the text in such a way that some or all of their content
constitutes requirements of this document. For dated references, only the edition cited applies. For
undated references, the latest edition of the referenced document (including any amendments) applies.
FIPS 186-4, Digital Signature Standard (DSS), July 2013ISO/IEC 29500-3, Information technology — Document description and processing languages — Office
Open XML File Formats, Part 3: Markup Compatibility and ExtensibilityISO 15836-1, Information and documentation — The Dublin Core metadata element set — Part 1: Core
elementsISO 15836-2, Information and documentation — The Dublin Core metadata element set — Part 2: DCMI
Properties and classesNIST SP 800-56ARev. 3, Recommendation for Pair-Wise Key-Establishment Schemes Using Discrete
Logarithm Cryptography, April 2018RFC 2046, Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types, The Internet Society,
November 1996, N. Freed and N. Borenstein, 1996 , ht t p s:// w w w . r f c - e d it or . or g / i n f o/ r f c 20 4 6
RFC 3986, Uniform Resource Identifier (URI): Generic Syntax, The Internet Society, January 2005, Berners-
Lee, T., R. Fielding, and L. Masinter, 2005 , ht t p s:// w w w . r f c - e d it or . or g / i n f o/ r f c 398 6
RFC 3987, Internationalized Resource Identifiers (IRIs), The Internet Society, January 2005, Duerst, M. and
M. Suignard, 2005 , ht t p s:// w w w . r f c - e d it or . or g / i n f o/ r f c 3987
RFC 5234, Augmented BNF for Syntax Specifications: ABNF, The Internet Society, January 2008, D. Crocker
and P.Overell, (editors), 2008 , ht t p s:// w w w . r f c - e d it or . or g / i n f o/ r f c 523 4
RFC 6931, Additional XML Security Uniform Resource Identifiers (URIs), The Internet Society, April 2013, D.
Eastlake 3rd, ht t p s:// w w w . r f c - e d it or . or g / i n f o/ r f c 6931RFC 7231Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content, The Internet Society, June 2014,
R. Fielding and J. Reschke, 2014 , ht t p s:// w w w . r f c - e d it or . or g / i n f o/ r f c7231
Unicode, The Unicode Standard, The Unicode Consortium, http:// www .unicode .org/ standard/
standard .html© ISO/IEC 2020 – All rights reserved 1
---------------------- Page: 8 ----------------------
ISO/IEC DIS 29500-2:2020(E)
XML, Extensible Markup Language (XML) 1.0, Fourth Edition. World Wide Web Consortium, 2006, Tim
Bray, Jean Paoli, Eve Maler, C. M. Sperberg-McQueen, and François Yergeau (editors). http:// www .w3
.org/ TR/ 2006/ REC -xml -20060816/XML Namespaces, Namespaces in XML 1.0 (Third Edition), 8 December 2009. World Wide Web Consortium
Tim Bray, Dave Hollander, Andrew Layman, and Richard Tobin (editors). http:// www .w3 .org/ TR/ 2009/
REC -xml -names -20091208/XML Base, W3C Recommendation, 28 January 2009. https:// www .w3 .org/ TR/ 2009/ REC -xmlbase
-20090128/XML Schema Part 1: Structures, W3C Recommendation, 28 October 2004. https
...
Questions, Comments and Discussion
Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.