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 47cdf0e10cSrcweir<!ATTLIST office:document office:class 48cdf0e10cSrcweir (text|text-global| 49cdf0e10cSrcweir drawing|presentation| 50cdf0e10cSrcweir spreadsheet|chart) #REQUIRED> 51cdf0e10cSrcweir 52cdf0e10cSrcweir<!ATTLIST office:document office:version %string; #IMPLIED> 53cdf0e10cSrcweir 54cdf0e10cSrcweir<!-- document-styles --> 55cdf0e10cSrcweir<!ELEMENT office:document-styles ( 56cdf0e10cSrcweir office:font-decls?, 57cdf0e10cSrcweir office:styles?, 58cdf0e10cSrcweir office:automatic-styles?, 59cdf0e10cSrcweir office:master-styles? ) > 60cdf0e10cSrcweir 61cdf0e10cSrcweir<!ATTLIST office:document-styles xmlns:office CDATA #FIXED "&nOffice;"> 62cdf0e10cSrcweir<!ATTLIST office:document-styles xmlns:meta CDATA #FIXED "&nMeta;"> 63cdf0e10cSrcweir<!ATTLIST office:document-styles xmlns:script CDATA #FIXED "&nScript;"> 64cdf0e10cSrcweir<!ATTLIST office:document-styles xmlns:style CDATA #FIXED "&nStyle;"> 65cdf0e10cSrcweir<!ATTLIST office:document-styles xmlns:text CDATA #FIXED "&nText;"> 66cdf0e10cSrcweir<!ATTLIST office:document-styles xmlns:table CDATA #FIXED "&nTable;"> 67cdf0e10cSrcweir<!ATTLIST office:document-styles xmlns:draw CDATA #FIXED "&nDraw;"> 68cdf0e10cSrcweir<!ATTLIST office:document-styles xmlns:chart CDATA #FIXED "&nChart;"> 69cdf0e10cSrcweir<!ATTLIST office:document-styles xmlns:number CDATA #FIXED "&nNumber;"> 70cdf0e10cSrcweir<!ATTLIST office:document-styles xmlns:fo CDATA #FIXED "&nFO;"> 71cdf0e10cSrcweir<!ATTLIST office:document-styles xmlns:xlink CDATA #FIXED "&nXLink;"> 72cdf0e10cSrcweir<!ATTLIST office:document-styles xmlns:svg CDATA #FIXED "&nSVG;"> 73cdf0e10cSrcweir<!ATTLIST office:document-styles xmlns:dc CDATA #FIXED "&nDC;"> 74cdf0e10cSrcweir 75cdf0e10cSrcweir<!ATTLIST office:document-styles office:version %string; #IMPLIED> 76cdf0e10cSrcweir 77cdf0e10cSrcweir<!-- document-content --> 78cdf0e10cSrcweir 79cdf0e10cSrcweir<!ELEMENT office:document-content ( 80cdf0e10cSrcweir office:script?, 81cdf0e10cSrcweir office:font-decls?, 82cdf0e10cSrcweir office:automatic-styles?, 83cdf0e10cSrcweir office:body ) > 84cdf0e10cSrcweir 85cdf0e10cSrcweir<!ATTLIST office:document-content xmlns:office CDATA #FIXED "&nOffice;"> 86cdf0e10cSrcweir<!ATTLIST office:document-content xmlns:meta CDATA #FIXED "&nMeta;"> 87cdf0e10cSrcweir<!ATTLIST office:document-content xmlns:script CDATA #FIXED "&nScript;"> 88cdf0e10cSrcweir<!ATTLIST office:document-content xmlns:style CDATA #FIXED "&nStyle;"> 89cdf0e10cSrcweir<!ATTLIST office:document-content xmlns:text CDATA #FIXED "&nText;"> 90cdf0e10cSrcweir<!ATTLIST office:document-content xmlns:table CDATA #FIXED "&nTable;"> 91cdf0e10cSrcweir<!ATTLIST office:document-content xmlns:draw CDATA #FIXED "&nDraw;"> 92cdf0e10cSrcweir<!ATTLIST office:document-content xmlns:chart CDATA #FIXED "&nChart;"> 93cdf0e10cSrcweir<!ATTLIST office:document-content xmlns:number CDATA #FIXED "&nNumber;"> 94cdf0e10cSrcweir<!ATTLIST office:document-content xmlns:fo CDATA #FIXED "&nFO;"> 95cdf0e10cSrcweir<!ATTLIST office:document-content xmlns:xlink CDATA #FIXED "&nXLink;"> 96cdf0e10cSrcweir<!ATTLIST office:document-content xmlns:svg CDATA #FIXED "&nSVG;"> 97cdf0e10cSrcweir<!ATTLIST office:document-content xmlns:dc CDATA #FIXED "&nDC;"> 98cdf0e10cSrcweir 99cdf0e10cSrcweir<!ATTLIST office:document-content office:class 100cdf0e10cSrcweir (text|text-global| 101cdf0e10cSrcweir drawing|presentation| 102cdf0e10cSrcweir spreadsheet|chart) #REQUIRED> 103cdf0e10cSrcweir 104cdf0e10cSrcweir<!ATTLIST office:document-content office:version %string; #IMPLIED> 105cdf0e10cSrcweir 106cdf0e10cSrcweir<!-- document-content --> 107cdf0e10cSrcweir 108cdf0e10cSrcweir<!ELEMENT office:document-meta ( office:meta? ) > 109cdf0e10cSrcweir 110cdf0e10cSrcweir<!ATTLIST office:document-meta xmlns:office CDATA #FIXED "&nOffice;"> 111cdf0e10cSrcweir<!ATTLIST office:document-meta xmlns:meta CDATA #FIXED "&nMeta;"> 112cdf0e10cSrcweir<!ATTLIST office:document-meta xmlns:script CDATA #FIXED "&nScript;"> 113cdf0e10cSrcweir<!ATTLIST office:document-meta xmlns:style CDATA #FIXED "&nStyle;"> 114cdf0e10cSrcweir<!ATTLIST office:document-meta xmlns:text CDATA #FIXED "&nText;"> 115cdf0e10cSrcweir<!ATTLIST office:document-meta xmlns:table CDATA #FIXED "&nTable;"> 116cdf0e10cSrcweir<!ATTLIST office:document-meta xmlns:draw CDATA #FIXED "&nDraw;"> 117cdf0e10cSrcweir<!ATTLIST office:document-meta xmlns:chart CDATA #FIXED "&nChart;"> 118cdf0e10cSrcweir<!ATTLIST office:document-meta xmlns:number CDATA #FIXED "&nNumber;"> 119cdf0e10cSrcweir<!ATTLIST office:document-meta xmlns:fo CDATA #FIXED "&nFO;"> 120cdf0e10cSrcweir<!ATTLIST office:document-meta xmlns:xlink CDATA #FIXED "&nXLink;"> 121cdf0e10cSrcweir<!ATTLIST office:document-meta xmlns:svg CDATA #FIXED "&nSVG;"> 122cdf0e10cSrcweir<!ATTLIST office:document-meta xmlns:dc CDATA #FIXED "&nDC;"> 123cdf0e10cSrcweir 124cdf0e10cSrcweir<!ATTLIST office:document-meta office:version %string; #IMPLIED> 125cdf0e10cSrcweir 126cdf0e10cSrcweir<!ELEMENT office:document-settings (office:settings) > 127cdf0e10cSrcweir<!ATTLIST office:document-settings xmlns:office CDATA #FIXED "&nOffice;"> 128cdf0e10cSrcweir<!ATTLIST office:document-settings xmlns:xlink CDATA #FIXED "&nXLink;"> 129cdf0e10cSrcweir<!ATTLIST office:document-settings xmlns:config CDATA #FIXED "&nConfig;"> 130cdf0e10cSrcweir 131cdf0e10cSrcweir<!ATTLIST office:document-settings office:version %string; #IMPLIED> 132cdf0e10cSrcweir 133cdf0e10cSrcweir<!ENTITY % meta "(meta:generator?, 134cdf0e10cSrcweir dc:title?, 135cdf0e10cSrcweir dc:description?, 136cdf0e10cSrcweir dc:subject?, 137cdf0e10cSrcweir meta:initial-creator?, 138cdf0e10cSrcweir meta:creation-date?, 139cdf0e10cSrcweir dc:creator?, 140cdf0e10cSrcweir dc:date?, 141cdf0e10cSrcweir meta:printed-by?, 142cdf0e10cSrcweir meta:print-date?, 143cdf0e10cSrcweir meta:keywords?, 144cdf0e10cSrcweir dc:language?, 145cdf0e10cSrcweir meta:editing-cycles?, 146cdf0e10cSrcweir meta:editing-duration?, 147cdf0e10cSrcweir meta:hyperlink-behaviour?, 148cdf0e10cSrcweir meta:auto-reload?, 149cdf0e10cSrcweir meta:template?, 150cdf0e10cSrcweir meta:user-defined*, 151cdf0e10cSrcweir meta:document-statistic?)"> 152cdf0e10cSrcweir<!ELEMENT office:meta %meta;> 153cdf0e10cSrcweir 154cdf0e10cSrcweir<!ENTITY % script "(script:library-embedded | 155cdf0e10cSrcweir script:library-linked)*"> 156cdf0e10cSrcweir<!ELEMENT office:script %script;> 157cdf0e10cSrcweir 158cdf0e10cSrcweir<!ELEMENT office:font-decls (style:font-decl)*> 159cdf0e10cSrcweir 160cdf0e10cSrcweir<!ENTITY % styles "(style:default-style|style:style|text:list-style| 161cdf0e10cSrcweir number:number-style|number:currency-style|number:percentage-style| 162cdf0e10cSrcweir number:date-style|number:time-style|number:boolean-style| 163cdf0e10cSrcweir number:text-style| 164cdf0e10cSrcweir draw:gradient|draw:hatch|draw:fill-image|draw:marker|draw:stroke-dash| 165cdf0e10cSrcweir style:presentation-page-layout|draw:transparency)"> 166cdf0e10cSrcweir 167cdf0e10cSrcweir<!-- Validity constraint: The elements 168cdf0e10cSrcweir text:outline-style, 169cdf0e10cSrcweir text:footnotes-configuration, 170cdf0e10cSrcweir text:endnotes-configuration, 171cdf0e10cSrcweir text:bibliography-configuration and 172cdf0e10cSrcweir text:linenumbering-configuration 173cdf0e10cSrcweir may appear only once! 174cdf0e10cSrcweir Unfortunatetly, this constraint cannot be easily specified in the DTD. 175cdf0e10cSrcweir--> 176cdf0e10cSrcweir<!ELEMENT office:styles (%styles;|text:outline-style| 177cdf0e10cSrcweir text:footnotes-configuration|text:endnotes-configuration| 178cdf0e10cSrcweir text:bibliography-configuration|text:linenumbering-configuration)*> 179cdf0e10cSrcweir 180cdf0e10cSrcweir<!ELEMENT office:automatic-styles (%styles;|style:page-master)*> 181cdf0e10cSrcweir 182cdf0e10cSrcweir<!ELEMENT office:master-styles (draw:layer-set?,style:handout-master?,style:master-page*) > 183cdf0e10cSrcweir 184cdf0e10cSrcweir<!ENTITY % text-decls "text:variable-decls?, text:sequence-decls?, 185cdf0e10cSrcweir text:user-field-decls?, text:dde-connection-decls?, 186cdf0e10cSrcweir text:alphabetical-index-auto-mark-file?" > 187cdf0e10cSrcweir 188cdf0e10cSrcweir<!ENTITY % change-marks "text:change | text:change-start | text:change-end"> 189cdf0e10cSrcweir 190cdf0e10cSrcweir<!ENTITY % body "(office:forms?,(text:tracked-changes|table:tracked-changes)?,%text-decls;,table:calculation-settings?,table:content-validations?,table:label-ranges?, 191cdf0e10cSrcweir (text:h|text:p|text:ordered-list| 192cdf0e10cSrcweir text:unordered-list|table:table|draw:page| 193cdf0e10cSrcweir draw:a|%shape;|text:section|text:table-of-content| 194cdf0e10cSrcweir text:illustration-index|text:table-index|text:object-index| 195cdf0e10cSrcweir text:user-index|text:alphabetical-index|text:bibliography| 196cdf0e10cSrcweir %change-marks;)*, 197cdf0e10cSrcweir table:named-expressions?, 198cdf0e10cSrcweir table:database-ranges?,table:data-pilot-tables?, 199cdf0e10cSrcweir table:consolidation?, 200cdf0e10cSrcweir table:dde-links?, 201cdf0e10cSrcweir presentation:settings?)"> 202cdf0e10cSrcweir<!ELEMENT office:body %body;> 203cdf0e10cSrcweir<!ATTLIST office:body table:structure-protected %boolean; "false" 204cdf0e10cSrcweir table:protection-key CDATA #IMPLIED> 205cdf0e10cSrcweir 206cdf0e10cSrcweir<!ELEMENT office:events (script:event|presentation:event)*> 207cdf0e10cSrcweir 208cdf0e10cSrcweir<!-- DDE source: for text sections and tables --> 209cdf0e10cSrcweir<!ELEMENT office:dde-source EMPTY> 210cdf0e10cSrcweir<!ATTLIST office:dde-source office:dde-application CDATA #IMPLIED> 211cdf0e10cSrcweir<!ATTLIST office:dde-source office:dde-topic CDATA #IMPLIED> 212cdf0e10cSrcweir<!ATTLIST office:dde-source office:dde-item CDATA #IMPLIED> 213cdf0e10cSrcweir<!ATTLIST office:dde-source office:automatic-update %boolean; "false"> 214cdf0e10cSrcweir<!ATTLIST office:dde-source office:name CDATA #IMPLIED> 215cdf0e10cSrcweir<!ATTLIST office:dde-source table:conversion-mode (into-default-style-data-style|into-english-number|let-text) "into-default-style-data-style" > 216cdf0e10cSrcweir 217cdf0e10cSrcweir<!-- annotations --> 218cdf0e10cSrcweir<!-- limitation: in the current implementation, only plain text inside of 219cdf0e10cSrcweir paragraphs is supported --> 220cdf0e10cSrcweir<!ELEMENT office:annotation (text:p)*> 221cdf0e10cSrcweir<!ATTLIST office:annotation office:author %string; #IMPLIED> 222cdf0e10cSrcweir<!ATTLIST office:annotation office:create-date %date; #IMPLIED> 223cdf0e10cSrcweir<!ATTLIST office:annotation office:create-date-string %string; #IMPLIED> 224cdf0e10cSrcweir<!ATTLIST office:annotation office:display %boolean; "false"> 225cdf0e10cSrcweir 226cdf0e10cSrcweir<!ELEMENT office:change-info (text:p)*> 227cdf0e10cSrcweir<!ATTLIST office:change-info office:chg-author %string; #REQUIRED> 228cdf0e10cSrcweir<!ATTLIST office:change-info office:chg-date-time %timeInstance; #REQUIRED> 229cdf0e10cSrcweir 230cdf0e10cSrcweir<!ELEMENT office:binary-data (#PCDATA)> 231