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