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