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