Information technology — Document description and processing languages — Office Open XML File Formats — Part 2: Open Packaging Conventions

ISO/IEC 29500-2:2008 defines a general-purpose file/component packaging facility, which is built on top of the widely used ZIP file structure.

Technologies de l'information — Description des documents et langages de traitement — Formats de fichier "Office Open XML" — Partie 2: Conventions de paquetage ouvert

General Information

Status
Withdrawn
Publication Date
16-Nov-2008
Withdrawal Date
16-Nov-2008
Current Stage
9599 - Withdrawal of International Standard
Completion Date
12-Aug-2011
Ref Project

Relations

Buy Standard

Standard
ISO/IEC 29500-2:2008 - Information technology -- Document description and processing languages -- Office Open XML File Formats
English language
129 pages
sale 15% off
Preview
sale 15% off
Preview

Standards Content (Sample)

INTERNATIONAL ISO/IEC
STANDARD 29500-2
First edition
2008-11-15


Information technology — Document
description and processing languages —
Office Open XML File Formats —
Part 2:
Open Packaging Conventions
Technologies de l'information — Description des documents et
langages de traitement — Formats de fichier "Office Open XML" —
Partie 2: Conventions de paquetage ouvert




Reference number
ISO/IEC 29500-2:2008(E)
©
ISO/IEC 2008

---------------------- Page: 1 ----------------------
ISO/IEC 29500-2:2008(E)
PDF disclaimer
This PDF file may contain embedded typefaces. In accordance with Adobe's licensing policy, this file may be printed or viewed but
shall not be edited unless the typefaces which are embedded are licensed to and installed on the computer performing the editing. In
downloading this file, parties accept therein the responsibility of not infringing Adobe's licensing policy. The ISO Central Secretariat
accepts no liability in this area.
Adobe is a trademark of Adobe Systems Incorporated.
Details of the software products used to create this PDF file can be found in the General Info relative to the file; the PDF-creation
parameters were optimized for printing. Every care has been taken to ensure that the file is suitable for use by ISO member bodies. In
the unlikely event that a problem relating to it is found, please inform the Central Secretariat at the address given below.


COPYRIGHT PROTECTED DOCUMENT


©  ISO/IEC 2008
All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form or by any means,
electronic or mechanical, including photocopying and microfilm, without permission in writing from either ISO at the address below or
ISO's member body in the country of the requester.
ISO copyright office
Case postale 56 • CH-1211 Geneva 20
Tel. + 41 22 749 01 11
Fax + 41 22 749 09 47
E-mail copyright@iso.org
Web www.iso.org
Published in Switzerland

ii © ISO/IEC 2008 – All rights reserved

---------------------- Page: 2 ----------------------
ISO/IEC 29500-2:2008(E)
Table of Contents
Foreword .vii
Introduction . viii
1. Scope . 1
2. Conformance . 2
3. Normative References . 3
4. Terms and Definitions . 5
5. Notational Conventions . 8
5.1 Document Conventions . 8
5.2 Diagram Notes . 8
6. Acronyms and Abbreviations . 10
7. General Description . 11
8. Overview . 12
9. Package Model . 13
9.1 Parts . 13
9.1.1 Part Names . 13
9.1.2 Content Types . 16
9.1.3 Growth Hint . 17
9.1.4 XML Usage . 17
9.2 Part Addressing . 18
9.2.1 Relative References . 18
9.2.2 Fragments . 19
9.3 Relationships . 19
9.3.1 Relationships Part. 19
9.3.2 Relationship Markup . 20
9.3.3 Representing Relationships . 22
9.3.4 Support for Versioning and Extensibility . 25
10. Physical Package . 26
10.1 Physical Mapping Guidelines . 26
10.1.1 Mapped Components . 27
10.1.2 Mapping Content Types . 27
10.1.3 Mapping Part Names to Physical Package Item Names . 32
10.1.4 Interleaving . 34
10.2 Mapping to a ZIP Archive . 36
10.2.1 Mapping Part Data . 36
10.2.2 ZIP Item Names . 36
10.2.3 Mapping Part Names to ZIP Item Names . 37
10.2.4 Mapping ZIP Item Names to Part Names . 37
10.2.5 ZIP Package Limitations . 37
10.2.6 Mapping Part Content Type . 38
©ISO/IEC 2008 – All rights reserved iii

---------------------- Page: 3 ----------------------
ISO/IEC 29500-2:2008(E)
10.2.7 Mapping the Growth Hint . 38
10.2.8 Late Detection of ZIP Items Unfit for Streaming Consumption . 39
10.2.9 ZIP Format Clarifications for Packages . 39
11. Core Properties . 40
11.1 Core Properties Part . 41
11.2 Location of Core Properties Part . 43
11.3 Support for Versioning and Extensibility . 43
11.4 Schema Restrictions for Core Properties . 43
12. Thumbnails . 45
12.1 Thumbnail Parts. 45
13. Digital Signatures . 46
13.1 Choosing Content to Sign . 46
13.2 Digital Signature Parts . 46
13.2.1 Digital Signature Origin Part . 47
13.2.2 Digital Signature XML Signature Part . 47
13.2.3 Digital Signature Certificate Part . 48
13.2.4 Digital Signature Markup . 48
13.3 Digital Signature Example . 58
13.4 Generating Signatures . 60
13.5 Validating Signatures . 61
13.5.1 Signature Validation and Streaming Consumption . 62
13.6 Support for Versioning and Extensibility . 62
13.6.1 Using Relationship Types . 62
13.6.2 Markup Compatibility Namespace for Package Digital Signatures . 62
Annex A. (normative) Resolving Unicode Strings to Part Names . 65
A.1 Creating an IRI from a Unicode String . 65
A.2 Creating a URI from an IRI . 65
A.3 Resolving a Relative Reference to a Part Name . 66
A.4 String Conversion Examples . 66
Annex B. (normative) Pack URI . 67
B.1 Pack URI Scheme . 67
B.2 Resolving a Pack URI to a Resource . 69
B.3 Composing a Pack URI . 69
B.4 Equivalence . 70
Annex C. (normative) ZIP Appnote.txt Clarifications . 71
C.1 Archive File Header Consistency . 71
C.2 Table Key . 71
Annex D. (normative) Schemas - W3C XML Schema . 82
D.1 Content Types Stream . 82
D.2 Core Properties Part . 83
D.3 Digital Signature XML Signature Markup . 83
D.4 Relationships Part . 85
Annex E. (informative) Schemas - RELAX NG . 86
iv ©ISO/IEC 2008 – All rights reserved

---------------------- Page: 4 ----------------------
ISO/IEC 29500-2:2008(E)
E.1 Content Types Stream . 86
E.2 Core Properties Part . 86
E.3 Digital Signature XML Signature Markup . 87
E.4 Relationships Part . 88
E.5 Additional Resources . 89
E.5.1 XML . 89
E.5.2 XML Digital Signature Core. 89
Annex F. (normative) Standard Namespaces and Content Types. 90
Annex G. (informative) Physical Model Design Considerations . 92
G.1 Access Styles . 93
G.1.1 Direct Access Consumption . 93
G.1.2 Streaming Consumption . 93
G.1.3 Streaming Creation . 93
G.1.4 Simultaneous Creation and Consumption . 93
G.2 Layout Styles . 93
G.2.1 Simple Ordering. 93
G.2.2 Interleaved Ordering . 94
G.3 Communication Styles . 94
G.3.1 Sequential Delivery . 94
G.3.2 Random Access. 94
Annex H. (informative) Guidelines for Meeting Conformance . 95
H.1 Package Model . 95
H.2 Physical Packages . 103
H.3 ZIP Physical Mapping . 107
H.4 Core Properties . 112
H.5 Thumbnail . 113
H.6 Digital Signatures . 114
H.7 Pack URI . 125
Annex I. (informative) Differences Between ISO/IEC 29500:2008 and ECMA-376:2006 . 127
I.1 XML Elements . 127
I.2 XML Attributes. 127
I.3 XML Enumeration Values . 127
I.4 XML Simple Types . 127
Annex J. (informative) Index . 128
©ISO/IEC 2008 – All rights reserved v

---------------------- Page: 5 ----------------------
ISO/IEC 29500-2:2008(E)
(Blank page)
vi ©ISO/IEC 2008 – All rights reserved

---------------------- Page: 6 ----------------------
ISO/IEC 29500-2:2008(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 was prepared by Ecma International (as ECMA-376:2006) and was adopted, under a special “fast-
track procedure”, by Joint Technical Committee ISO/IEC JTC 1, Information technology, in parallel with its
approval by the national bodies of ISO and IEC.
Some important differences between ISO/IEC 29500 and ECMA-376:2006 are given in Annex I.
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
Annexes A, B, C, D and F form a normative part of this Part of ISO/IEC 29500. Annexes E, G, H, I and J are for
information only.
This Part of ISO/IEC 29500 includes two annexes (Annex D and Annex E) that refer to data files provided in
electronic form.
©ISO/IEC 2008 – All rights reserved vii

---------------------- Page: 7 ----------------------
ISO/IEC 29500-2:2008(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.
The following organizations have participated in the creation of ISO/IEC 29500 and their contributions are
gratefully acknowledged:
Apple, Barclays Capital, BP, The British Library, Essilor, Intel, Microsoft, NextPage, Novell, Statoil, Toshiba, and
the United States Library of Congress
viii ©ISO/IEC 2008 – All rights reserved

---------------------- Page: 8 ----------------------
INTERNATIONAL STANDARD ISO/IEC 29500-2:2008(E)
Information technology — Document description and
processing languages — Office Open XML File Formats
Part 2:
Open Packaging Conventions

1. Scope
This Part of ISO/IEC 29500 specifies a set of conventions that are used by Office Open XML documents to define
the structure and functionality of a package in terms of a package model and a physical model.
The package model is a package abstraction that holds a collection of parts. The parts are composed, processed,
and persisted according to a set of rules. Parts can have relationships to other parts or external resources, and
the package as a whole can have relationships to parts it contains or to external resources. The package model
specifies how the parts of a package are named and related. Parts have content types and are uniquely
identified using the well-defined naming rules provided in this Part of ISO/IEC 29500.
The physical mapping defines the mapping of the components of the package model to the features of a specific
physical format, namely a ZIP archive.
This Part of ISO/IEC 29500 also describes certain features that might be supported in a package, including core
properties for package metadata, a thumbnail for graphical representation of a package, and digital signatures
of package contents.
Because this Part of ISO/IEC 29500 might evolve, packages are designed to accommodate extensions and to
support compatibility goals in a limited way. The versioning and extensibility mechanisms described in Part 3
support compatibility between software systems based on different versions of this Part of ISO/IEC 29500 while
allowing package creators to make use of new or proprietary features.
This Part of ISO/IEC 29500 specifies requirements for documents, producers, and consumers. Conformance
requirements are identified throughout the text of this Part of ISO/IEC 29500. A formal conformance statement
is given in §2. An informative summary of requirements relevant to particular classes of developers is given in
Annex H.
©ISO/IEC 2008 – All rights reserved 1

---------------------- Page: 9 ----------------------
ISO/IEC 29500-2:2008(E)
2. Conformance
Each conformance requirement is given a unique ID comprised of a letter (M – MANDATORY; S – SHOULD; O –
OPTIONAL), an identifier for the topic to which it relates, and a unique ID within that topic. (Producers and
consumers might use these IDs to report error conditions.) Mandatory requirements are those stated with the
normative terms "shall," "shall not," or any of their normative equivalents. Should items are those stated with
the normative terms "should," "should not," or any of their normative equivalents. Optional requirements are
those stated with the normative terms "can," "cannot," "might," "might not," or any of their normative
equivalents.
[Example: Package implementers shall not map logical item name(s) mapped to the Content Types stream in a
ZIP archive to a part name. [M3.11] end example]
Each Part of this multi-part standard has its own conformance clause, as appropriate. The term conformance
class is used to disambiguate conformance within different Parts of this multi-part standard. This Part of ISO/IEC
29500 has only one conformance class, OPC (that is, Open Packaging Conventions).
A document is of conformance class OPC if it obeys all syntactic constraints specified in this Part of ISO/IEC
29500.
OPC conformance is purely syntactic.
2 ©ISO/IEC 2008 – All rights reserved

---------------------- Page: 10 ----------------------
ISO/IEC 29500-2:2008(E)
3. Normative References
The following referenced documents are indispensable for the application 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.
American National Standards Institute, Coded Character Set — 7-bit American Standard Code for Information
Interchange, ANSI X3.4, 1986.
ISO 8601, Data elements and interchange formats — Information interchange — Representation of dates and
times.
ISO/IEC 9594-8 | ITU-T Rec. X.509, Information technology — Open Systems Interconnection — The Directory:
Public-key and attribute certificate frameworks.
ISO/IEC 10646, Information technology — Universal Multiple-Octet Coded Character Set (UCS).
Dublin Core Element Set v1.1. http://purl.org/dc/elements/1.1/
Dublin Core Terms Namespace. http://purl.org/dc/terms/
Extensible Markup Language (XML) 1.0 (Third Edition), W3C Recommendation, 04 February 2004.
Namespaces in XML 1.1, W3C Recommendation, 4 February 2004.
RFC 2616 Hypertext Transfer Protocol — HTTP/1.1, The Internet Society, Berners-Lee, T., R. Fielding, H. Frystyk, J.
Gettys, P. Leach, L. Masinter, and J. Mogul, 1999, http://www.ietf.org/rfc/rfc2616.txt.
RFC 3986 Uniform Resource Identifier (URI): Generic Syntax, The Internet Society, Berners-Lee, T., R. Fielding,
and L. Masinter, 2005, http://www.ietf.org/rfc/rfc3986.txt.
RFC 3987 Internationalized Resource Identifiers (IRIs), The Internet Society, Duerst, M. and M. Suignard, 2005,
http://www.ietf.org/rfc/rfc3987.txt.
RFC 4234 Augmented BNF for Syntax Specifications: ABNF, The Internet Society, Crocker, D., (editor), 2005,
http://www.ietf.org/rfc/rfc4234.txt.
The Unicode Standard, 5th edition, The Unicode Consortium, Addison-Wesley Professional, ISBN 0321480910,
http://www.unicode.org/unicode/standard.
W3C NOTE 19980827, Date and Time Formats, Wicksteed, Charles, and Misha Wolf, 1997,
http://www.w3.org/TR/1998/NOTE-datetime-19980827.
XML Base, W3C Recommendation, 27 June 2001.
©ISO/IEC 2008 – All rights reserved 3

---------------------- Page: 11 ----------------------
ISO/IEC 29500-2:2008(E)
XML Path Language (XPath), Version 1.0, W3C Recommendation, 16 November 1999.
XML Schema Part 1: Structures, W3C Recommendation, 28 October 2004.
XML Schema Part 2: Datatypes, W3C Recommendation, 28 October 2004.
XML-Signature Syntax and Processing, W3C Recommendation, 12 February 2002.
.ZIP Fil
...

Questions, Comments and Discussion

Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.