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