1<!--*********************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 ***********************************************************--> 21 22 23 24<!ELEMENT office:document ( office:meta?, 25 office:settings?, 26 office:script?, 27 office:font-decls?, 28 office:styles?, 29 office:automatic-styles?, 30 office:master-styles?, 31 office:body ) > 32 33<!ATTLIST office:document xmlns:office CDATA #FIXED "&nOffice;"> 34<!ATTLIST office:document xmlns:meta CDATA #FIXED "&nMeta;"> 35<!ATTLIST office:document xmlns:script CDATA #FIXED "&nScript;"> 36<!ATTLIST office:document xmlns:style CDATA #FIXED "&nStyle;"> 37<!ATTLIST office:document xmlns:text CDATA #FIXED "&nText;"> 38<!ATTLIST office:document xmlns:table CDATA #FIXED "&nTable;"> 39<!ATTLIST office:document xmlns:draw CDATA #FIXED "&nDraw;"> 40<!ATTLIST office:document xmlns:chart CDATA #FIXED "&nChart;"> 41<!ATTLIST office:document xmlns:number CDATA #FIXED "&nNumber;"> 42<!ATTLIST office:document xmlns:fo CDATA #FIXED "&nFO;"> 43<!ATTLIST office:document xmlns:xlink CDATA #FIXED "&nXLink;"> 44<!ATTLIST office:document xmlns:svg CDATA #FIXED "&nSVG;"> 45<!ATTLIST office:document xmlns:dc CDATA #FIXED "&nDC;"> 46 47<!ATTLIST office:document office:class 48 (text|text-global| 49 drawing|presentation| 50 spreadsheet|chart) #REQUIRED> 51 52<!ATTLIST office:document office:version %string; #IMPLIED> 53 54<!-- document-styles --> 55<!ELEMENT office:document-styles ( 56 office:font-decls?, 57 office:styles?, 58 office:automatic-styles?, 59 office:master-styles? ) > 60 61<!ATTLIST office:document-styles xmlns:office CDATA #FIXED "&nOffice;"> 62<!ATTLIST office:document-styles xmlns:meta CDATA #FIXED "&nMeta;"> 63<!ATTLIST office:document-styles xmlns:script CDATA #FIXED "&nScript;"> 64<!ATTLIST office:document-styles xmlns:style CDATA #FIXED "&nStyle;"> 65<!ATTLIST office:document-styles xmlns:text CDATA #FIXED "&nText;"> 66<!ATTLIST office:document-styles xmlns:table CDATA #FIXED "&nTable;"> 67<!ATTLIST office:document-styles xmlns:draw CDATA #FIXED "&nDraw;"> 68<!ATTLIST office:document-styles xmlns:chart CDATA #FIXED "&nChart;"> 69<!ATTLIST office:document-styles xmlns:number CDATA #FIXED "&nNumber;"> 70<!ATTLIST office:document-styles xmlns:fo CDATA #FIXED "&nFO;"> 71<!ATTLIST office:document-styles xmlns:xlink CDATA #FIXED "&nXLink;"> 72<!ATTLIST office:document-styles xmlns:svg CDATA #FIXED "&nSVG;"> 73<!ATTLIST office:document-styles xmlns:dc CDATA #FIXED "&nDC;"> 74 75<!ATTLIST office:document-styles office:version %string; #IMPLIED> 76 77<!-- document-content --> 78 79<!ELEMENT office:document-content ( 80 office:script?, 81 office:font-decls?, 82 office:automatic-styles?, 83 office:body ) > 84 85<!ATTLIST office:document-content xmlns:office CDATA #FIXED "&nOffice;"> 86<!ATTLIST office:document-content xmlns:meta CDATA #FIXED "&nMeta;"> 87<!ATTLIST office:document-content xmlns:script CDATA #FIXED "&nScript;"> 88<!ATTLIST office:document-content xmlns:style CDATA #FIXED "&nStyle;"> 89<!ATTLIST office:document-content xmlns:text CDATA #FIXED "&nText;"> 90<!ATTLIST office:document-content xmlns:table CDATA #FIXED "&nTable;"> 91<!ATTLIST office:document-content xmlns:draw CDATA #FIXED "&nDraw;"> 92<!ATTLIST office:document-content xmlns:chart CDATA #FIXED "&nChart;"> 93<!ATTLIST office:document-content xmlns:number CDATA #FIXED "&nNumber;"> 94<!ATTLIST office:document-content xmlns:fo CDATA #FIXED "&nFO;"> 95<!ATTLIST office:document-content xmlns:xlink CDATA #FIXED "&nXLink;"> 96<!ATTLIST office:document-content xmlns:svg CDATA #FIXED "&nSVG;"> 97<!ATTLIST office:document-content xmlns:dc CDATA #FIXED "&nDC;"> 98 99<!ATTLIST office:document-content office:class 100 (text|text-global| 101 drawing|presentation| 102 spreadsheet|chart) #REQUIRED> 103 104<!ATTLIST office:document-content office:version %string; #IMPLIED> 105 106<!-- document-content --> 107 108<!ELEMENT office:document-meta ( office:meta? ) > 109 110<!ATTLIST office:document-meta xmlns:office CDATA #FIXED "&nOffice;"> 111<!ATTLIST office:document-meta xmlns:meta CDATA #FIXED "&nMeta;"> 112<!ATTLIST office:document-meta xmlns:script CDATA #FIXED "&nScript;"> 113<!ATTLIST office:document-meta xmlns:style CDATA #FIXED "&nStyle;"> 114<!ATTLIST office:document-meta xmlns:text CDATA #FIXED "&nText;"> 115<!ATTLIST office:document-meta xmlns:table CDATA #FIXED "&nTable;"> 116<!ATTLIST office:document-meta xmlns:draw CDATA #FIXED "&nDraw;"> 117<!ATTLIST office:document-meta xmlns:chart CDATA #FIXED "&nChart;"> 118<!ATTLIST office:document-meta xmlns:number CDATA #FIXED "&nNumber;"> 119<!ATTLIST office:document-meta xmlns:fo CDATA #FIXED "&nFO;"> 120<!ATTLIST office:document-meta xmlns:xlink CDATA #FIXED "&nXLink;"> 121<!ATTLIST office:document-meta xmlns:svg CDATA #FIXED "&nSVG;"> 122<!ATTLIST office:document-meta xmlns:dc CDATA #FIXED "&nDC;"> 123 124<!ATTLIST office:document-meta office:version %string; #IMPLIED> 125 126<!ELEMENT office:document-settings (office:settings) > 127<!ATTLIST office:document-settings xmlns:office CDATA #FIXED "&nOffice;"> 128<!ATTLIST office:document-settings xmlns:xlink CDATA #FIXED "&nXLink;"> 129<!ATTLIST office:document-settings xmlns:config CDATA #FIXED "&nConfig;"> 130 131<!ATTLIST office:document-settings office:version %string; #IMPLIED> 132 133<!ENTITY % meta "(meta:generator?, 134 dc:title?, 135 dc:description?, 136 dc:subject?, 137 meta:initial-creator?, 138 meta:creation-date?, 139 dc:creator?, 140 dc:date?, 141 meta:printed-by?, 142 meta:print-date?, 143 meta:keywords?, 144 dc:language?, 145 meta:editing-cycles?, 146 meta:editing-duration?, 147 meta:hyperlink-behaviour?, 148 meta:auto-reload?, 149 meta:template?, 150 meta:user-defined*, 151 meta:document-statistic?)"> 152<!ELEMENT office:meta %meta;> 153 154<!ENTITY % script "(script:library-embedded | 155 script:library-linked)*"> 156<!ELEMENT office:script %script;> 157 158<!ELEMENT office:font-decls (style:font-decl)*> 159 160<!ENTITY % styles "(style:default-style|style:style|text:list-style| 161 number:number-style|number:currency-style|number:percentage-style| 162 number:date-style|number:time-style|number:boolean-style| 163 number:text-style| 164 draw:gradient|draw:hatch|draw:fill-image|draw:marker|draw:stroke-dash| 165 style:presentation-page-layout|draw:transparency)"> 166 167<!-- Validity constraint: The elements 168 text:outline-style, 169 text:footnotes-configuration, 170 text:endnotes-configuration, 171 text:bibliography-configuration and 172 text:linenumbering-configuration 173 may appear only once! 174 Unfortunatetly, this constraint cannot be easily specified in the DTD. 175--> 176<!ELEMENT office:styles (%styles;|text:outline-style| 177 text:footnotes-configuration|text:endnotes-configuration| 178 text:bibliography-configuration|text:linenumbering-configuration)*> 179 180<!ELEMENT office:automatic-styles (%styles;|style:page-master)*> 181 182<!ELEMENT office:master-styles (draw:layer-set?,style:handout-master?,style:master-page*) > 183 184<!ENTITY % text-decls "text:variable-decls?, text:sequence-decls?, 185 text:user-field-decls?, text:dde-connection-decls?, 186 text:alphabetical-index-auto-mark-file?" > 187 188<!ENTITY % change-marks "text:change | text:change-start | text:change-end"> 189 190<!ENTITY % body "(office:forms?,(text:tracked-changes|table:tracked-changes)?,%text-decls;,table:calculation-settings?,table:content-validations?,table:label-ranges?, 191 (text:h|text:p|text:ordered-list| 192 text:unordered-list|table:table|draw:page| 193 draw:a|%shape;|text:section|text:table-of-content| 194 text:illustration-index|text:table-index|text:object-index| 195 text:user-index|text:alphabetical-index|text:bibliography| 196 %change-marks;)*, 197 table:named-expressions?, 198 table:database-ranges?,table:data-pilot-tables?, 199 table:consolidation?, 200 table:dde-links?, 201 presentation:settings?)"> 202<!ELEMENT office:body %body;> 203<!ATTLIST office:body table:structure-protected %boolean; "false" 204 table:protection-key CDATA #IMPLIED> 205 206<!ELEMENT office:events (script:event|presentation:event)*> 207 208<!-- DDE source: for text sections and tables --> 209<!ELEMENT office:dde-source EMPTY> 210<!ATTLIST office:dde-source office:dde-application CDATA #IMPLIED> 211<!ATTLIST office:dde-source office:dde-topic CDATA #IMPLIED> 212<!ATTLIST office:dde-source office:dde-item CDATA #IMPLIED> 213<!ATTLIST office:dde-source office:automatic-update %boolean; "false"> 214<!ATTLIST office:dde-source office:name CDATA #IMPLIED> 215<!ATTLIST office:dde-source table:conversion-mode (into-default-style-data-style|into-english-number|let-text) "into-default-style-data-style" > 216 217<!-- annotations --> 218<!-- limitation: in the current implementation, only plain text inside of 219 paragraphs is supported --> 220<!ELEMENT office:annotation (text:p)*> 221<!ATTLIST office:annotation office:author %string; #IMPLIED> 222<!ATTLIST office:annotation office:create-date %date; #IMPLIED> 223<!ATTLIST office:annotation office:create-date-string %string; #IMPLIED> 224<!ATTLIST office:annotation office:display %boolean; "false"> 225 226<!ELEMENT office:change-info (text:p)*> 227<!ATTLIST office:change-info office:chg-author %string; #REQUIRED> 228<!ATTLIST office:change-info office:chg-date-time %timeInstance; #REQUIRED> 229 230<!ELEMENT office:binary-data (#PCDATA)> 231