1、BSI Standards Publication BS ISO/IEC 26300-1:2015 Information technology Open Document Format for Office Applications (OpenDocument) v1.2 Part 1: OpenDocument SchemaBS ISO/IEC 26300-1:2015 BRITISH STANDARD National foreword This British Standard is the UK implementation of ISO/IEC 26300-1:2015. Toge
2、ther with BS ISO/IEC 26300-2:2015 and BS ISO/IEC 26300-3: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 thi
3、s committee 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 86554 1
4、ICS 35.240.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 T e x t a f f e c t e dInformati
5、on technology Open Document Format for Office Applications (OpenDocument) v1.2 Part 1: OpenDocument Schema Technologies de linformation Format de document ouvert pour applications de bureau (OpenDocument) v1.2 Partie 1: Titre manque INTERNATIONAL STANDARD ISO/IEC 26300-1 Reference number ISO/IEC 263
6、00-1:2015(E) First edition 2015-07-01 ISO/IEC 2015 BS ISO/IEC 26300-1: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, el
7、ectronic 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 ISOs member body in the country of the requester. ISO copyright office Case postale 56 CH-1211 Geneva 20 Te
8、l. + 41 22 749 01 11 Fax + 41 22 749 09 47 E-mail copyrightiso.org Web www.iso.org Published in Switzerland ISO/IEC 26300-1:2015(E)BS ISO/IEC 26300-1:2015 Open Document Format for Office Applications (OpenDocument) Version 1.2 Part 1: OpenDocument Schema OASIS Standard 29 September 2011 Specificatio
9、n URIs: This version: http:/docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.odt (Authoritative) http:/docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.pdf http:/docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html Previous version: http:/docs.oasis-open.org/o
10、ffice/v1.2/csd06/OpenDocument-v1.2-csd06-part1.odt (Authoritative) http:/docs.oasis-open.org/office/v1.2/csd06/OpenDocument-v1.2-csd06-part1.pdf http:/docs.oasis-open.org/office/v1.2/csd06/OpenDocument-v1.2-csd06-part1.html Latest version: http:/docs.oasis-open.org/office/v1.2/OpenDocument-v1.2-part
11、1.odt (Authoritative) http:/docs.oasis-open.org/office/v1.2/OpenDocument-v1.2-part1.pdf http:/docs.oasis-open.org/office/v1.2/OpenDocument-v1.2-part1.html Technical Committee: OASIS Open Document Format for Office Applications (OpenDocument) TC Chairs: Rob Weir , IBM Michael Brauer , Oracle Corporat
12、ion Editors: Patrick Durusau Michael Brauer , Oracle Corporation Related work: OpenDocument-v1.2-os-part1 29 September 2011 Copyright OASIS Open 2002 - 2011. All Rights Reserved. Standards Track Work Product Page 1 of 846 BS ISO/IEC 26300-1:2015 ISO/IEC 26300-1:2015(E)BS ISO/IEC 26300-1:2015 This do
13、cument is part of the OASIS 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 (this part) OpenDocument v1.2 part 2: Recalculated Formula (OpenFormula) Format OpenDo
14、cument v1.2 part 3: Packages OpenDocument v1.2 part 1 defines these schemas and ontologies: OpenDocument v1.2 Relax NG Schema OpenDocument v1.2 Metadata Manifest Ontology Declared XML namespaces: urn:oasis:names:tc:opendocument:xmlns:animation:1.0 urn:oasis:names:tc:opendocument:xmlns:chart:1.0 urn:
15、oasis:names:tc:opendocument:xmlns:config:1.0 urn:oasis:names:tc:opendocument:xmlns:database:1.0 urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0 urn:oasis:names:tc:opendocument:xmlns:drawing:1.0 urn:oasis:names:tc:opendocument:xmlns:form:1.0 urn:oasis:names:tc:opendocument:xmlns:manifest:1.0 urn:oasis
16、:names:tc:opendocument:xmlns:meta:1.0 urn:oasis:names:tc:opendocument:xmlns:data style:1.0 urn:oasis:names:tc:opendocument:xmlns:office:1.0 urn:oasis:names:tc:opendocument:xmlns:presentation:1.0 urn:oasis:names:tc:opendocument:xmlns:script:1.0 urn:oasis:names:tc:opendocument:xmlns:table:1.0 urn:oasi
17、s:names:tc:opendocument:xmlns:text:1.0 urn:oasis:names:tc:opendocument:xmlns:style:1.0 urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0 urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0 urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0 urn:oasis:names:tc:opendocument:xmlns:
18、of:1.2 http:/docs.oasis-open.org/ns/office/1.2/meta/odf# Abstract: This document is part of the Open Document Format for Office Applications (OpenDocument) Version 1.2 specification. It defines an XML schema for office applications and its semantics. The schema is suitable for office documents, incl
19、uding text documents, spreadsheets, charts and graphical documents like drawings or presentations, but is not restricted to these kinds of documents. Status: This document was last revised or approved by the OASIS Open Document Format for Office Applications (OpenDocument) TC on the above date. The
20、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 this specification to the Technical Committees email list. Others should send comments to the Technical Committee
21、 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 may be essential to implementing this specification, and any offers of patent licensing terms, please refer to
22、 the Intellectual Property Rights section of the Technical Committee web page ( http:/www.oasis-open.org/committees/office/ipr.php ). OpenDocument-v1.2-os-part1 29 September 2011 Copyright OASIS Open 2002 - 2011. All Rights Reserved. Standards Track Work Product Page 2 of 846 BS ISO/IEC 26300-1:2015
23、 ISO/IEC 26300-1:2015(E)BS ISO/IEC 26300-1:2015 Citation format: When referencing this specification the following citation format should be used: OpenDocument-v1.2-part1 Open Document Format for Office Applications (OpenDocument) Version 1.2 Part 1: OpenDocument Schema. 29 September 2011. OASIS Sta
24、ndard. http:/docs.oasis- open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html . OpenDocument-v1.2-os-part1 29 September 2011 Copyright OASIS Open 2002 - 2011. All Rights Reserved. Standards Track Work Product Page 3 of 846 BS ISO/IEC 26300-1:2015 ISO/IEC 26300-1:2015(E)BS ISO/IEC 26300-1:2015 Not
25、ices Copyright OASIS Open 20022011. All Rights Reserved. All capitalized terms in the following text have the meanings 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 m
26、ay be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its 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
27、included on all such copies and derivative works. However, this document itself may not be modified in any way, including 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 w
28、hich case the rules applicable to copyrights, as set forth in the OASIS IPR Policy, must be followed) or as required 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
29、 the information contained herein is provided on an “AS IS“ basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, 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 FO
30、R A PARTICULAR PURPOSE. OASIS requests that any OASIS Party or any other party that believes it has patent claims that 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 willingn
31、ess to grant patent licenses to such patent claims in a manner consistent with the IPR Mode of the OASIS Technical Committee 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 necessar
32、ily be infringed by implementations of this specification by a patent holder that is not willing to provide a license 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 di
33、sclaims any obligation to do so. OASIS takes no position regarding the validity or scope of any intellectual property 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
34、or might not be available; neither does it represent that it has made any effort to identify any such rights. Information 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 m
35、ade available for publication and any assurances of licenses to be made available, or the result of an attempt made 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
36、the OASIS TC Administrator. OASIS makes no representation that any information or list of intellectual property rights 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
37、OASIS , the owner and developer of this specification, and should be used only to refer to the organization and its official outputs. OASIS welcomes reference to, and implementation and use OpenDocument-v1.2-os-part1 29 September 2011 Copyright OASIS Open 2002 - 2011. All Rights Reserved. Standards
38、Track Work Product Page 4 of 846 BS ISO/IEC 26300-1:2015 ISO/IEC 26300-1:2015(E)BS ISO/IEC 26300-1:2015 of, specifications, 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-part1 29
39、September 2011 Copyright OASIS Open 2002 - 2011. All Rights Reserved. Standards Track Work Product Page 5 of 846 BS ISO/IEC 26300-1:2015 ISO/IEC 26300-1:2015(E)BS ISO/IEC 26300-1:2015 Table of Contents 1 Introduction79 1.1 Introduction.79 1.2 Terminology.79 1.3 Normative References79 1.4 Non Normati
40、ve References.82 1.5 Namespaces.82 2 OpenDocument Documents, Consumers and Producers85 2.1 Introduction.85 2.2 Documents85 2.2.1 OpenDocument Document85 2.2.2 OpenDocument Extended Document86 2.2.3 OpenDocument Text Document.86 2.2.4 OpenDocument Spreadsheet Document.87 2.2.5 OpenDocument Drawing Do
41、cument87 2.2.6 OpenDocument Presentation Document.87 2.2.7 OpenDocument Chart Document88 2.2.8 OpenDocument Image Document.88 2.2.9 OpenDocument Formula Document88 2.2.10 OpenDocument Database Front End Document.88 2.3 Producers.89 2.3.1 OpenDocument Producer89 2.3.2 OpenDocument Extended Producer89
42、 2.4 Consumer.89 3 Document Structure.90 3.1 Document Representation .90 3.1.1 General90 3.1.2 (Single OpenDocument XML Files)90 3.1.3 Package OpenDocument Files90 3.1.3.1 General.90 3.1.3.2 .90 3.1.3.3 91 3.1.3.4 .91 3.1.3.5 91 3.1.4 Summary of Document Representation.91 3.2 92 OpenDocument-v1.2-os
43、-part1 29 September 2011 Copyright OASIS Open 2002 - 2011. All Rights Reserved. Standards Track Work Product Page 6 of 846 BS ISO/IEC 26300-1:2015 ISO/IEC 26300-1:2015(E)BS ISO/IEC 26300-1:2015 3.3 92 3.4 93 3.5 93 3.6 93 3.7 94 3.8 94 3.9 94 3.10 95 3.10.1 General95 3.10.2 95 3.10.3 95 3.10.4 .96 3
44、.10.5 .96 3.10.6 96 3.11 Cursor Position Setting96 3.12 97 3.13 97 3.14 .97 3.15 Styles97 3.15.1 General97 3.15.2 98 3.15.3 .98 3.15.4 98 3.16 Document Signatures.99 3.17 Foreign Elements and Attributes.99 3.18 White Space Processing and EOL Handling.100 3.19 MIME Types and File Name Extensions100 4
45、 Metadata101 4.1 General.101 4.2 RDF Metadata.101 4.2.1 In Content Metadata (RDFa)101 4.2.2 manifest.rdf101 4.2.2.1 General.101 4.2.2.2 odf:ContentFile.101 4.2.2.3 odf:StylesFile102 4.2.2.4 odf:Element102 4.2.2.5 odf:prefix.102 4.2.2.6 odf:suffix.102 OpenDocument-v1.2-os-part1 29 September 2011 Copy
46、right OASIS Open 2002 - 2011. All Rights Reserved. Standards Track Work Product Page 7 of 846 BS ISO/IEC 26300-1:2015 ISO/IEC 26300-1:2015(E)BS ISO/IEC 26300-1:2015 4.3 Non-RDF Metadata.102 4.3.1 General102 4.3.2 Pre-Defined Metadata Elements103 4.3.2.1 .103 4.3.2.2 .103 4.3.2.3 .103 4.3.2.4 .104 4.
47、3.2.5 .104 4.3.2.6 104 4.3.2.7 .104 4.3.2.8 104 4.3.2.9 .105 4.3.2.10 105 4.3.2.11 .105 4.3.2.12 .105 4.3.2.13 106 4.3.2.14 .106 4.3.2.15 106 4.3.2.16 106 4.3.2.17 .107 4.3.2.18 .107 4.3.3 107 5 Text Content.108 5.1 Headings, Paragraphs and Basic Text Structure.108 5.1.1 General108 5.1.2 108 5.1.3 1
48、09 5.2 .111 5.2.1 General111 5.2.2 111 5.3 Lists.111 5.3.1 111 5.3.2 Default List Style .112 5.3.3 .112 5.3.4 112 5.3.5 List Item Style Rules113 5.3.6 113 5.3.7 Numbered Paragraph Style Rules113 5.4 114 OpenDocument-v1.2-os-part1 29 September 2011 Copyright OASIS Open 2002 - 2011. All Rights Reserve
49、d. Standards Track Work Product Page 8 of 846 BS ISO/IEC 26300-1:2015 ISO/IEC 26300-1:2015(E)BS ISO/IEC 26300-1:2015 5.4.1 General114 5.4.2 .115 5.5 Change Tracking.115 5.5.1 .115 5.5.2 .115 5.5.3 116 5.5.4 .116 5.5.5 .117 5.5.6 117 5.5.7 Change Marks117 5.5.7.1 General.117 5.5.7.2 .118 5.5.7.3 118 5.5.7.4 .118 5.6 118 5.7 Document Declarations.119 6 Paragraph Elements Content.120 6.1 Basic Text Content120 6.1.1 General120 6.1.2 White Space Characters120 6.1.3 121 6.1.4 .121 6.1.5 121 6.1.6 Soft