Openoffice.Org XML File Format 1.0
Total Page:16
File Type:pdf, Size:1020Kb
OpenOffice.org XML File Format 1.0 Technical Reference Manual Version 1 July 2002 Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA 94303 U.S.A. 650-960-1300 July 2002 Copyrights and Trademarks Copyright 2001 Sun Microsystems, Inc., 901 San Antonio Road, California 94303, U.S.A. All rights reserved. This documentation is distributed under licenses restricting its use. You may make copies of and redistribute it, but you may not modify or make derivative works of this documentation without prior written authorization of Sun and its licensors, if any. Sun, Sun Microsystems, the Sun logo, StarPortal, StarOffice,the StarOffice logo, Java, Java Beans JavaScript, and the Java Coffee Cup are trade marks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. Federal Acquisitions: Commercial Software - Government Users Subject to Standard License Terms and Conditions. DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. Contents 1 Introduction to OpenOffice.org XML .................................................................................. 27 1.1 Namespaces............................................................................................................................ 27 1.2 Structure of OpenOffice.org XML Documents.................................................................. 28 1.2.1 Document Root ........................................................................................................... 28 1.2.2 Documents and Subdocuments ................................................................................. 29 1.2.3 Primary Document Characteristics ........................................................................... 29 1.3 Document Information ........................................................................................................ 30 1.4 Configuration Information .................................................................................................. 31 1.4.1 Configuration Items .................................................................................................... 31 1.5 Scripting.................................................................................................................................. 32 1.6 Styles ...................................................................................................................................... 32 1.6.1 Location of Styles ....................................................................................................... 33 1.6.2 Examples of Styles ....................................................................................................... 33 1.7 Forms....................................................................................................................................... 34 1.8 Document Content................................................................................................................ 35 1.9 White-Space Processing and EOL Handling..................................................................... 35 1.10 Document Validation............................................................................................................ 36 1.10.1 Processing the Current Version ................................................................................. 36 2 Common Document Content ................................................................................................. 37 2.1 Metadata................................................................................................................................. 37 2.1.1 Generator ...................................................................................................................... 38 2.1.2 Title ................................................................................................................................ 38 2.1.3 Description ................................................................................................................... 38 2.1.4 Subject ........................................................................................................................... 38 2.1.5 Keywords ..................................................................................................................... 39 2.1.6 Initial Creator .............................................................................................................. 39 2.1.7 Creator .......................................................................................................................... 39 2.1.8 Printed By ..................................................................................................................... 39 2.1.9 Creation Date and Time ............................................................................................. 40 2.1.10 Modification Date and Time ...................................................................................... 40 2.1.11 Print Date and Time .................................................................................................... 40 2.1.12 Document Template .................................................................................................... 40 2.1.13 Automatic Reload ........................................................................................................ 41 2.1.14 Hyperlink Behavior ..................................................................................................... 42 2.1.15 Language ...................................................................................................................... 43 2.1.16 Editing Cycles .............................................................................................................. 43 2.1.17 Editing Duration .......................................................................................................... 44 2.1.18 User-defined Metadata ............................................................................................... 44 2.1.19 Document Statistics ..................................................................................................... 44 2.1.20 Sample Metadata ......................................................................................................... 46 2.2 Formatting Properties and Styles........................................................................................ 46 2.2.1 Formatting Property Sets ........................................................................................... 47 2.2.2 Simple Formatting Properties .................................................................................... 47 2.2.3 Complex Formatting Properties ................................................................................ 47 2.2.4 Styles ............................................................................................................................. 48 2.2.5 Style Mappings ............................................................................................................ 51 2.3 Page Styles and Layout......................................................................................................... 53 2.3.1 Page Master .................................................................................................................. 54 2.3.2 Master Pages ................................................................................................................ 60 2.3.3 Headers and Footers ................................................................................................... 61 2.3.4 Header and Footer Styles ........................................................................................... 62 2.3.5 Footnote Layout ........................................................................................................... 63 2.3.6 Footnote Separator Line ............................................................................................. 63 2.4 Font Declarations................................................................................................................... 64 2.4.1 Font Declaration .......................................................................................................... 65 2.5 Data Styles.............................................................................................................................. 66 2.5.1 Number Style ............................................................................................................... 66 2.5.2 Currency Style ............................................................................................................. 68 2.5.3 Percentage Style ........................................................................................................... 70 2.5.4 Date Style ...................................................................................................................... 70 2.5.5 Time Style ..................................................................................................................... 74 2.5.6 Boolean Style ................................................................................................................ 76 2.5.7 Text Style ...................................................................................................................... 77 2.5.8