2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License
, v.
2.0. If a copy of the MPL was not distributed with this
6 * file
, You can obtain one at http
://mozilla.org
/MPL
/2.0/.
8 * This file incorporates work covered by the following license notice
:
10 * Licensed to the Apache Software
Foundation (ASF
) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License
, Version
2.0 (the
"License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http
://www.apache.org
/licenses
/LICENSE
-2.0 .
19 <!ELEMENT office
:document ( office
:meta?
,
24 office
:automatic
-styles?
,
25 office
:master
-styles?
,
28 <!ATTLIST office
:document xmlns
:office CDATA #FIXED
"&nOffice;">
29 <!ATTLIST office
:document xmlns
:meta CDATA #FIXED
"&nMeta;">
30 <!ATTLIST office
:document xmlns
:script CDATA #FIXED
"&nScript;">
31 <!ATTLIST office
:document xmlns
:style CDATA #FIXED
"&nStyle;">
32 <!ATTLIST office
:document xmlns
:text CDATA #FIXED
"&nText;">
33 <!ATTLIST office
:document xmlns
:table CDATA #FIXED
"&nTable;">
34 <!ATTLIST office
:document xmlns
:draw CDATA #FIXED
"&nDraw;">
35 <!ATTLIST office
:document xmlns
:chart CDATA #FIXED
"&nChart;">
36 <!ATTLIST office
:document xmlns
:number CDATA #FIXED
"&nNumber;">
37 <!ATTLIST office
:document xmlns
:fo CDATA #FIXED
"&nFO;">
38 <!ATTLIST office
:document xmlns
:xlink CDATA #FIXED
"&nXLink;">
39 <!ATTLIST office
:document xmlns
:svg CDATA #FIXED
"&nSVG;">
40 <!ATTLIST office
:document xmlns
:dc CDATA #FIXED
"&nDC;">
41 <!ATTLIST office
:document xmlns
:dr3d CDATA #FIXED
"&nDr3D;">
42 <!ATTLIST office
:document xmlns
:math CDATA #FIXED
"&nMath;">
43 <!ATTLIST office
:document xmlns
:form CDATA #FIXED
"&nForm;">
44 <!ATTLIST office
:document xmlns
:config CDATA #FIXED
"&nConfig;">
45 <!ATTLIST office
:document xmlns
:presentation CDATA #FIXED
"&nPresentation;">
47 <!ATTLIST office
:document office
:class
50 spreadsheet|chart
) #REQUIRED
>
52 <!ATTLIST office
:document office
:version
%string
; #IMPLIED
>
54 <!-- document
-styles
-->
55 <!ELEMENT office
:document
-styles (
58 office
:automatic
-styles?
,
59 office
:master
-styles?
) >
61 <!ATTLIST office
:document
-styles xmlns
:office CDATA #FIXED
"&nOffice;">
62 <!ATTLIST office
:document
-styles xmlns
:meta CDATA #FIXED
"&nMeta;">
63 <!ATTLIST office
:document
-styles xmlns
:script CDATA #FIXED
"&nScript;">
64 <!ATTLIST office
:document
-styles xmlns
:style CDATA #FIXED
"&nStyle;">
65 <!ATTLIST office
:document
-styles xmlns
:text CDATA #FIXED
"&nText;">
66 <!ATTLIST office
:document
-styles xmlns
:table CDATA #FIXED
"&nTable;">
67 <!ATTLIST office
:document
-styles xmlns
:draw CDATA #FIXED
"&nDraw;">
68 <!ATTLIST office
:document
-styles xmlns
:chart CDATA #FIXED
"&nChart;">
69 <!ATTLIST office
:document
-styles xmlns
:number CDATA #FIXED
"&nNumber;">
70 <!ATTLIST office
:document
-styles xmlns
:fo CDATA #FIXED
"&nFO;">
71 <!ATTLIST office
:document
-styles xmlns
:xlink CDATA #FIXED
"&nXLink;">
72 <!ATTLIST office
:document
-styles xmlns
:svg CDATA #FIXED
"&nSVG;">
73 <!ATTLIST office
:document
-styles xmlns
:dc CDATA #FIXED
"&nDC;">
74 <!ATTLIST office
:document
-styles xmlns
:dr3d CDATA #FIXED
"&nDr3D;">
75 <!ATTLIST office
:document
-styles xmlns
:math CDATA #FIXED
"&nMath;">
76 <!ATTLIST office
:document
-styles xmlns
:form CDATA #FIXED
"&nForm;">
78 <!ATTLIST office
:document
-styles office
:version
%string
; #IMPLIED
>
80 <!-- document
-content
-->
82 <!ELEMENT office
:document
-content (
85 office
:automatic
-styles?
,
88 <!ATTLIST office
:document
-content xmlns
:office CDATA #FIXED
"&nOffice;">
89 <!ATTLIST office
:document
-content xmlns
:meta CDATA #FIXED
"&nMeta;">
90 <!ATTLIST office
:document
-content xmlns
:script CDATA #FIXED
"&nScript;">
91 <!ATTLIST office
:document
-content xmlns
:style CDATA #FIXED
"&nStyle;">
92 <!ATTLIST office
:document
-content xmlns
:text CDATA #FIXED
"&nText;">
93 <!ATTLIST office
:document
-content xmlns
:table CDATA #FIXED
"&nTable;">
94 <!ATTLIST office
:document
-content xmlns
:draw CDATA #FIXED
"&nDraw;">
95 <!ATTLIST office
:document
-content xmlns
:chart CDATA #FIXED
"&nChart;">
96 <!ATTLIST office
:document
-content xmlns
:number CDATA #FIXED
"&nNumber;">
97 <!ATTLIST office
:document
-content xmlns
:fo CDATA #FIXED
"&nFO;">
98 <!ATTLIST office
:document
-content xmlns
:xlink CDATA #FIXED
"&nXLink;">
99 <!ATTLIST office
:document
-content xmlns
:svg CDATA #FIXED
"&nSVG;">
100 <!ATTLIST office
:document
-content xmlns
:dc CDATA #FIXED
"&nDC;">
101 <!ATTLIST office
:document
-content xmlns
:dr3d CDATA #FIXED
"&nDr3D;">
102 <!ATTLIST office
:document
-content xmlns
:math CDATA #FIXED
"&nMath;">
103 <!ATTLIST office
:document
-content xmlns
:form CDATA #FIXED
"&nForm;">
105 <!ATTLIST office
:document
-content office
:class
107 drawing|presentation|
108 spreadsheet|chart
) #REQUIRED
>
110 <!ATTLIST office
:document
-content office
:version
%string
; #IMPLIED
>
112 <!-- document
-content
-->
114 <!ELEMENT office
:document
-meta ( office
:meta?
) >
116 <!ATTLIST office
:document
-meta xmlns
:office CDATA #FIXED
"&nOffice;">
117 <!ATTLIST office
:document
-meta xmlns
:meta CDATA #FIXED
"&nMeta;">
118 <!ATTLIST office
:document
-meta xmlns
:script CDATA #FIXED
"&nScript;">
119 <!ATTLIST office
:document
-meta xmlns
:style CDATA #FIXED
"&nStyle;">
120 <!ATTLIST office
:document
-meta xmlns
:text CDATA #FIXED
"&nText;">
121 <!ATTLIST office
:document
-meta xmlns
:table CDATA #FIXED
"&nTable;">
122 <!ATTLIST office
:document
-meta xmlns
:draw CDATA #FIXED
"&nDraw;">
123 <!ATTLIST office
:document
-meta xmlns
:chart CDATA #FIXED
"&nChart;">
124 <!ATTLIST office
:document
-meta xmlns
:number CDATA #FIXED
"&nNumber;">
125 <!ATTLIST office
:document
-meta xmlns
:fo CDATA #FIXED
"&nFO;">
126 <!ATTLIST office
:document
-meta xmlns
:xlink CDATA #FIXED
"&nXLink;">
127 <!ATTLIST office
:document
-meta xmlns
:svg CDATA #FIXED
"&nSVG;">
128 <!ATTLIST office
:document
-meta xmlns
:dc CDATA #FIXED
"&nDC;">
129 <!ATTLIST office
:document
-meta xmlns
:dr3d CDATA #FIXED
"&nDr3D;">
130 <!ATTLIST office
:document
-meta xmlns
:math CDATA #FIXED
"&nMath;">
131 <!ATTLIST office
:document
-meta xmlns
:form CDATA #FIXED
"&nForm;">
133 <!ATTLIST office
:document
-meta office
:version
%string
; #IMPLIED
>
135 <!ELEMENT office
:document
-settings (office
:settings
) >
136 <!ATTLIST office
:document
-settings xmlns
:office CDATA #FIXED
"&nOffice;">
137 <!ATTLIST office
:document
-settings xmlns
:xlink CDATA #FIXED
"&nXLink;">
138 <!ATTLIST office
:document
-settings xmlns
:config CDATA #FIXED
"&nConfig;">
140 <!ATTLIST office
:document
-settings office
:version
%string
; #IMPLIED
>
142 <!ENTITY
% meta
"(meta:generator?,
146 meta:initial-creator?,
154 meta:editing-cycles?,
155 meta:editing-duration?,
156 meta:hyperlink-behaviour?,
160 meta:document-statistic?)">
161 <!ELEMENT office
:meta
%meta
;>
163 <!ENTITY
% script
"office:script-data*,office:events?">
164 <!ELEMENT office
:script (%script
;)>
166 <!ELEMENT office
:script
-data (script
:libraries*)
>
167 <!ATTLIST office
:script
-data script
:language
%string
; #REQUIRED
>
169 <!ELEMENT office
:font
-decls (style
:font
-decl
)*>
171 <!ENTITY
% styles
"(style:default-style|style:style|text:list-style|
172 number:number-style|number:currency-style|number:percentage-style|
173 number:date-style|number:time-style|number:boolean-style|
175 draw:gradient|draw:hatch|draw:fill-image|draw:marker|draw:stroke-dash|
176 style:presentation-page-layout|draw:transparency)">
178 <!-- Validity constraint
: The elements
180 text
:footnotes
-configuration
,
181 text
:endnotes
-configuration
,
182 text
:bibliography
-configuration and
183 text
:linenumbering
-configuration
184 may appear only once
!
185 Unfortunately
, this constraint cannot be easily specified in the DTD.
187 <!ELEMENT office
:styles (%styles
;|text
:outline
-style|
188 text
:footnotes
-configuration|text
:endnotes
-configuration|
189 text
:bibliography
-configuration|text
:linenumbering
-configuration
)*>
191 <!ELEMENT office
:automatic
-styles (%styles
;|style
:page
-master
)*>
193 <!ELEMENT office
:master
-styles (draw
:layer
-set?
,style
:handout
-master?
,style
:master
-page*)
>
196 <!ENTITY
% body
"(office:forms?,(text:tracked-changes|table:tracked-changes)?,%text-decls;,table:calculation-settings?,table:content-validations?,table:label-ranges?,
197 (text:h|text:p|text:ordered-list|
198 text:unordered-list|table:table|draw:page|
199 draw:a|%shape;|text:section|text:table-of-content|
200 text:illustration-index|text:table-index|text:object-index|
201 text:user-index|text:alphabetical-index|text:bibliography|
203 table:named-expressions?,
204 table:database-ranges?,table:data-pilot-tables?,
205 table:consolidation?,
207 presentation:settings?)">
208 <!ELEMENT office
:body
%body
;>
209 <!ATTLIST office
:body table
:structure
-protected
%boolean
; "false"
210 table
:protection
-key CDATA #IMPLIED
>
212 <!ELEMENT office
:events (script
:event|presentation
:event
)*>
214 <!-- DDE source
: for text sections and tables
-->
215 <!ELEMENT office
:dde
-source EMPTY
>
216 <!ATTLIST office
:dde
-source office
:dde
-application CDATA #IMPLIED
>
217 <!ATTLIST office
:dde
-source office
:dde
-topic CDATA #IMPLIED
>
218 <!ATTLIST office
:dde
-source office
:dde
-item CDATA #IMPLIED
>
219 <!ATTLIST office
:dde
-source office
:automatic
-update
%boolean
; "false">
220 <!ATTLIST office
:dde
-source office
:name CDATA #IMPLIED
>
221 <!ATTLIST office
:dde
-source table
:conversion
-mode (into
-default
-style
-data
-style|into
-english
-number|let
-text
) "into-default-style-data-style" >
224 <!-- limitation
: in the current implementation
, only plain text inside of
225 paragraphs is supported
-->
226 <!ELEMENT office
:annotation (text
:p
)*>
227 <!ATTLIST office
:annotation office
:author
%string
; #IMPLIED
>
228 <!ATTLIST office
:annotation office
:create
-date
%date
; #IMPLIED
>
229 <!ATTLIST office
:annotation office
:create
-date
-string
%string
; #IMPLIED
>
230 <!ATTLIST office
:annotation office
:display
%boolean
; "false">
232 <!ELEMENT office
:change
-info (text
:p
)*>
233 <!ATTLIST office
:change
-info office
:chg
-author
%string
; #REQUIRED
>
234 <!ATTLIST office
:change
-info office
:chg
-date
-time
%timeInstance
; #REQUIRED
>
236 <!ELEMENT office
:binary
-data (#PCDATA
)>