1、BSI Standards Publication BS ISO/IEC 26300-3:2015 Information technology Open Document Format for Office Applications (OpenDocument) v1.2 Part 3: PackagesBS ISO/IEC 26300-3:2015 BRITISH STANDARD National foreword This British Standard is the UK implementation of ISO/IEC 26300-3:2015. Together with B
2、S ISO/IEC 26300-1:2015 and BS ISO/IEC 26300-2:2015 it supersedes BS ISO/IEC 26300:2006+A1:2012, which is withdrawn. The UK participation in its preparation was entrusted to Technical Committee IST/41, Document description and processing language. A list of organizations represented on this committee
3、 can be obtained on request to its secretary. This publication does not purport to include all the necessary provisions of a contract. Users are responsible for its correct application. The British Standards Institution 2015. Published by BSI Standards Limited 2015 ISBN 978 0 580 86557 2 ICS 35.240.
4、30 Compliance with a British Standard cannot confer immunity from legal obligations. This British Standard was published under the authority of the Standards Policy and Strategy Committee on 31 July 2015. Amendments/corrigenda issued since publication Date Text affectedInformation technology Open Do
5、cument Format for Office Applications (OpenDocument) v1.2 Part 3: Packages Technologies de linformation Format de document ouvert pour applications de bureau (OpenDocument) v1.2 Partie 3: Titre manque INTERNATIONAL STANDARD ISO/IEC 26300-3 Reference number ISO/IEC 26300-3:2015(E) First edition 2015-
6、07-01 ISO/IEC 2015 BS ISO/IEC 26300-3:2015ii ISO/IEC 2015 All rights reserved COPYRIGHT PROTECTED DOCUMENT ISO/IEC 2015 All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized otherwise in any form or by any means, electronic or mechanical, includin
7、g 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 ISOs 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
8、 749 09 47 E-mail copyrightiso.org Web www.iso.org Published in Switzerland ISO/IEC 26300-3:2015(E)BS ISO/IEC 26300-3:2015 Open Document Format for Office Applications (OpenDocument) Version 1.2 Part 3: Packages OASIS Standard 29 September 2011 Specification URIs: This version: http:/docs.oasis-open
9、.org/office/v1.2/os/OpenDocument-v1.2-os-part3.odt (Authoritative) http:/docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part3.pdf http:/docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part3.html Previous version: http:/docs.oasis-open.org/office/v1.2/csd06/OpenDocument-v1.2-csd06-pa
10、rt3.odt (Authoritative) http:/docs.oasis-open.org/office/v1.2/csd06/OpenDocument-v1.2-csd06-part3.pdf http:/docs.oasis-open.org/office/v1.2/csd06/OpenDocument-v1.2-csd06-part3.html Latest version: http:/docs.oasis-open.org/office/v1.2/OpenDocument-v1.2-part3.odt (Authoritative) http:/docs.oasis-open
11、.org/office/v1.2/OpenDocument-v1.2-part3.pdf http:/docs.oasis-open.org/office/v1.2/OpenDocument-v1.2-part3.html Technical Committee: OASIS Open Document Format for Office Applications (OpenDocument) TC Chairs: Rob Weir , IBM Michael Brauer , Oracle Corporation Editors: Patrick Durusau Dennis Hamilto
12、n OpenDocument-v1.2-os-part3 29 September 2011 Copyright OASIS Open 2002 - 2011. All Rights Reserved. Standards Track Work Product Page 1 of 35 BS ISO/IEC 26300-3:2015 ISO/IEC 26300-3:2015(E)BS ISO/IEC 26300-3:2015 Michael Brauer , Oracle Corporation Related work: This document is part of the OASIS
13、Open Document Format for Office Applications (OpenDocument) Version 1.2 specification. The OpenDocument v1.2 specification has these parts: OpenDocument v1.2 part 1: OpenDocument Schema OpenDocument v1.2 part 2: Recalculated Formula (OpenFormula) Format OpenDocument v1.2 part 3: Packages (this part)
14、 OpenDocument v1.2 part 3 defines these schemas and ontologies: OpenDocument v1.2 Manifest Schema OpenDocument v1.2 Digital Signature Schema OpenDocument v1.2 Package Metadata Manifest Ontology Declared XML namespaces: urn:oasis:names:tc:opendocument:xmlns:manifest:1.0 urn:oasis:names:tc:opendocumen
15、t:xmlns:digitalsignature:1.0 http:/docs.oasis-open.org/ns/office/1.2/meta/pkg# Abstract: This document is part of the Open Document Format for Office Applications (OpenDocument) Version 1.2 specification. It defines a package format for OpenDocument documents. Status: This document was last revised
16、or approved by the OASIS Open Document Format for Office Applications (OpenDocument) TC on the above date. The level of approval is also listed above. Check the “Latest version“ location noted above for possible later revisions of this document. Technical Committee members should send comments on th
17、is specification to the Technical Committees email list. Others should send comments to the Technical Committee by using the “ Send A Comment ” button on the Technical Committees web page at http:/www.oasis-open.org/committees/office/ . For information on whether any patents have been disclosed that
18、 may be essential to implementing this specification, and any offers of patent licensing terms, please refer to the Intellectual Property Rights section of the Technical Committee web page (http:/www.oasis-open.org/committees/office/ipr.php ). Citation format: When referencing this specification the
19、 following citation format should be used: OpenDocument-v1.2-part3 Open Document Format for Office Applications (OpenDocument) Version 1.2 Part 3: Packages. 29 September 2011. OASIS Standard. http:/docs.oasis- open.org/office/v1.2/os/OpenDocument-v1.2-os-part3.html . OpenDocument-v1.2-os-part3 29 Se
20、ptember 2011 Copyright OASIS Open 2002 - 2011. All Rights Reserved. Standards Track Work Product Page 2 of 35 BS ISO/IEC 26300-3:2015 ISO/IEC 26300-3:2015(E)BS ISO/IEC 26300-3:2015 Notices Copyright OASIS Open 20022011. All Rights Reserved. All capitalized terms in the following text have the meanin
21、gs assigned to them in the OASIS Intellectual Property Rights Policy (the “OASIS IPR Policy“). The full Policy may be found at the OASIS website. This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its
22、implementation may be prepared, copied, published, and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this section are included on all such copies and derivative works. However, this document itself may not be modified in any way, incl
23、uding by removing the copyright notice or references to OASIS, except as needed for the purpose of developing any document or deliverable produced by an OASIS Technical Committee (in which case the rules applicable to copyrights, as set forth in the OASIS IPR Policy, must be followed) or as required
24、 to translate it into languages other than English. The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns. This document and the information contained herein is provided on an “AS IS“ basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMP
25、LIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY OWNERSHIP RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. OASIS requests that any OASIS Party or any other party that believes it has patent claims th
26、at would necessarily be infringed by implementations of this OASIS Committee Specification or OASIS Standard, to notify OASIS TC Administrator and provide an indication of its willingness to grant patent licenses to such patent claims in a manner consistent with the IPR Mode of the OASIS Technical C
27、ommittee that produced this specification. OASIS invites any party to contact the OASIS TC Administrator if it is aware of a claim of ownership of any patent claims that would necessarily be infringed by implementations of this specification by a patent holder that is not willing to provide a licens
28、e to such patent claims in a manner consistent with the IPR Mode of the OASIS Technical Committee that produced this specification. OASIS may include such claims on its website, but disclaims any obligation to do so. OASIS takes no position regarding the validity or scope of any intellectual propert
29、y or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Inform
30、ation on OASIS procedures with respect to rights in any document or deliverable produced by an OASIS Technical Committee can be found on the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made
31、to obtain a general license or permission for the use of such proprietary rights by implementers or users of this OASIS Committee Specification or OASIS Standard, can be obtained from the OASIS TC Administrator. OASIS makes no representation that any information or list of intellectual property righ
32、ts will at any time be complete, or that any claims in such list are, in fact, Essential Claims. The names “OASIS“, “OpenDocument”, “Open Document Format”, and “ODF” are trademarks of OASIS , the owner and developer of this specification, and should be used only to refer to the organization and its
33、official outputs. OASIS welcomes reference to, and implementation and use OpenDocument-v1.2-os-part3 29 September 2011 Copyright OASIS Open 2002 - 2011. All Rights Reserved. Standards Track Work Product Page 3 of 35 BS ISO/IEC 26300-3:2015 ISO/IEC 26300-3:2015(E)BS ISO/IEC 26300-3:2015 of, specifica
34、tions, while reserving the right to enforce its marks against misleading uses. Please see http:/www.oasis-open.org/who/trademark.php for above guidance. OpenDocument-v1.2-os-part3 29 September 2011 Copyright OASIS Open 2002 - 2011. All Rights Reserved. Standards Track Work Product Page 4 of 35 BS IS
35、O/IEC 26300-3:2015 ISO/IEC 26300-3:2015(E)BS ISO/IEC 26300-3:2015 Table of Contents 1 Introduction8 1.1 Introduction.8 1.2 Terminology8 1.3 Normative References8 1.4 Non Normative References.9 1.5 Namespaces.9 2 Packages, Package Consumers and Package Producers.11 2.1 Introduction.11 2.2 Packages11
36、2.2.1 OpenDocument Package.11 2.2.2 OpenDocument Extended Package.12 2.3 Producers.12 2.3.1 OpenDocument Package Producer.12 2.3.2 OpenDocument Package Extended Producer.12 2.4 OpenDocument Package Consumer12 3 Packages.13 3.1 General.13 3.2 Manifest13 3.3 MIME Media Type.13 3.4 Encryption.14 3.4.1
37、General14 3.4.2 Encryption Process14 3.5 Digital Signatures15 3.6 Metadata.15 3.7 Usage of IRIs Within Packages15 3.8 Preview Image17 4 Manifest File.18 4.1 Introduction.18 4.2 .18 4.3 .18 4.4 .18 4.5 19 4.6 .19 4.7 .19 OpenDocument-v1.2-os-part3 29 September 2011 Copyright OASIS Open 2002 - 2011. A
38、ll Rights Reserved. Standards Track Work Product Page 5 of 35 BS ISO/IEC 26300-3:2015 ISO/IEC 26300-3:2015(E)BS ISO/IEC 26300-3:2015 4.8 Manifest Attributes20 4.8.1 manifest:algorithm-name.20 4.8.2 manifest:checksum20 4.8.3 manifest:checksum-type20 4.8.4 manifest:full-path.21 4.8.5 manifest:initiali
39、sation-vector.21 4.8.6 manifest:start-key-generation-name22 4.8.7 manifest:key-size.22 4.8.8 manifest:iteration-count.22 4.8.9 manifest:key-derivation-name23 4.8.10 manifest:media-type23 4.8.11 manifest:preferred-view-mode.23 4.8.12 manifest:salt24 4.8.13 manifest:size24 4.8.14 manifest:version24 5
40、Digital Signatures File26 5.1 Introduction.26 5.2 .26 5.3 26 5.4 Digital Signatures Attributes28 5.4.1 dsig:version.28 6 Metadata Manifest Files.29 6.1 General.29 6.2 pkg:Document.29 6.3 pkg:File.29 6.4 pkg:MetadataFile29 6.5 pkg:Element29 6.6 pkg:hasPart.29 6.7 pkg:mimeType30 7 Datatypes.31 7.1 Int
41、roduction.31 7.2 W3C Schema Datatypes.31 7.3 Other Datatypes31 7.3.1 namespacedToken31 Appendix A. Schemas.32 A.1. OpenDocument Manifest Schema.32 A.2. OpenDocument Digital Signature Schema.32 Appendix B. OpenDocument Metadata Manifest Ontology.33 OpenDocument-v1.2-os-part3 29 September 2011 Copyrig
42、ht OASIS Open 2002 - 2011. All Rights Reserved. Standards Track Work Product Page 6 of 35 BS ISO/IEC 26300-3:2015 ISO/IEC 26300-3:2015(E)BS ISO/IEC 26300-3:2015 Appendix C. Zip File Structure (Non normative)34 Appendix D. Changes From “Open Document Format for Office Applications (OpenDocument) v1.1
43、” (Non Normative).35 OpenDocument-v1.2-os-part3 29 September 2011 Copyright OASIS Open 2002 - 2011. All Rights Reserved. Standards Track Work Product Page 7 of 35 BS ISO/IEC 26300-3:2015 ISO/IEC 26300-3:2015(E)BS ISO/IEC 26300-3:2015 BS ISO/IEC 26300-3:2015 ISO/IEC 26300-3:2015(E)BS ISO/IEC 26300-3:
44、2015 1 Introduction 1.1 Introduction This document is part of the Open Document Format for Office Applications (OpenDocument) Version 1.2 specification. It defines a package format for OpenDocument documents. 1.2 Terminology All text is normative unless otherwise labeled. Text with a gray background
45、 color which is contained in boxes is informative. It lists the XML element-element and element-attribute relations for cross reference purposes. Within the normative text of this specification, the terms “shall”, “shall not”, “should”, “should not”, “may” and “need not” are to be interpreted as des
46、cribed in Annex H of ISO/IEC Directives. XML Element, attribute names, attribute value types, and attribute values appear in monospace font. 1.3 Normative References ISO/IEC Directives ISO/IEC Directives, Part 2 (Fifth Edition) Rules for the structure and drafting of International Standards , Intern
47、ational Organization for Standardization and International Electrotechnical Commission, 2004 OWL Deborah L. McGuinness, Frank van Harmelen, OWL Web Ontology Language Overview , http:/www.w3.org/TR/2004/REC-owl-features-20040210/ , W3C, 2004. PNG David Duce, Portable Network Graphics (PNG) Specificat
48、ion (Second Edition) , http:/www.w3.org/TR/2003/REC-PNG-20031110 , W3C, 2003. RDF-CONCEPTS Graham Klyne, Jeremy J. Carroll, Brian McBride, Resource Description Framework (RDF): Concepts and Abstract Syntax , http:/www.w3.org/TR/2004/REC-rdf-concepts- 20040210/ , W3C, 2004. RDF-XML Dave Beckett, Bria
49、n McBride, RDF/XML Syntax Specification (Revised) , http:/www.w3.org/TR/2004/REC-rdf-syntax-grammar-20040210/ , W3C, 2004. RFC2898 B. Kaliski, PKCS #5: Password-Based Cryptography Specification Version 2.0 , http:/www.ietf.org/rfc/rfc2898.txt , IETF, 2000. RFC3174 D. Eastlake, 3rd, P. Jones, US Secure Hash Algorithm 1 (SHA1) , http:/www.ietf.org/rfc/rfc3174.txt , IETF, 2001. RFC3986 T. Berners-Lee, R. Fielding, L. Masinter, Uniform Resource Identifier (URI):