1*b1cdbd2cSJim Jagielski<!--***********************************************************
2*b1cdbd2cSJim Jagielski *
3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
5*b1cdbd2cSJim Jagielski * distributed with this work for additional information
6*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski *
11*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski *
13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski * under the License.
19*b1cdbd2cSJim Jagielski *
20*b1cdbd2cSJim Jagielski ***********************************************************-->
21*b1cdbd2cSJim Jagielski
22*b1cdbd2cSJim Jagielski
23*b1cdbd2cSJim Jagielski
24*b1cdbd2cSJim Jagielski<!ELEMENT table:calculation-settings (table:null-date?, table:iteration?)>
25*b1cdbd2cSJim Jagielski<!ATTLIST table:calculation-settings
26*b1cdbd2cSJim Jagielski	table:case-sensitive %boolean; "true"
27*b1cdbd2cSJim Jagielski	table:precision-as-shown %boolean; "false"
28*b1cdbd2cSJim Jagielski	table:search-criteria-must-apply-to-whole-cell %boolean; "true"
29*b1cdbd2cSJim Jagielski	table:automatic-find-labels %boolean; "true"
30*b1cdbd2cSJim Jagielski	table:use-regular-expressions %boolean; "true"
31*b1cdbd2cSJim Jagielski	table:null-year %positiveInteger; "1930"
32*b1cdbd2cSJim Jagielski>
33*b1cdbd2cSJim Jagielski<!ELEMENT table:null-date EMPTY>
34*b1cdbd2cSJim Jagielski<!ATTLIST table:null-date
35*b1cdbd2cSJim Jagielski	table:value-type %valueType; #FIXED "date"
36*b1cdbd2cSJim Jagielski	table:date-value %date; "1899-12-30"
37*b1cdbd2cSJim Jagielski>
38*b1cdbd2cSJim Jagielski<!ELEMENT table:iteration EMPTY>
39*b1cdbd2cSJim Jagielski<!ATTLIST table:iteration
40*b1cdbd2cSJim Jagielski	table:status (enable | disable) "disable"
41*b1cdbd2cSJim Jagielski	table:steps %positiveInteger; "100"
42*b1cdbd2cSJim Jagielski	table:maximum-difference %float; "0.001"
43*b1cdbd2cSJim Jagielski>
44*b1cdbd2cSJim Jagielski
45*b1cdbd2cSJim Jagielski<!ELEMENT table:tracked-changes (table:cell-content-change | table:insertion | table:deletion | table:movement | table:rejection)*>
46*b1cdbd2cSJim Jagielski<!ATTLIST table:tracked-changes table:track-changes %boolean; "true"
47*b1cdbd2cSJim Jagielski				table:protected %boolean; "false"
48*b1cdbd2cSJim Jagielski				table:protection-key CDATA #IMPLIED
49*b1cdbd2cSJim Jagielski>
50*b1cdbd2cSJim Jagielski
51*b1cdbd2cSJim Jagielski<!ELEMENT table:dependences (table:dependence)+>
52*b1cdbd2cSJim Jagielski<!ELEMENT table:dependence EMPTY>
53*b1cdbd2cSJim Jagielski<!ATTLIST table:dependence
54*b1cdbd2cSJim Jagielski	table:id CDATA #REQUIRED
55*b1cdbd2cSJim Jagielski>
56*b1cdbd2cSJim Jagielski<!ELEMENT table:deletions (table:cell-content-deletion | table:change-deletion)+>
57*b1cdbd2cSJim Jagielski<!ELEMENT table:cell-content-deletion (table:cell-address?, table:change-track-table-cell?)>
58*b1cdbd2cSJim Jagielski<!ATTLIST table:cell-content-deletion
59*b1cdbd2cSJim Jagielski	table:id CDATA #IMPLIED
60*b1cdbd2cSJim Jagielski>
61*b1cdbd2cSJim Jagielski<!ELEMENT table:change-deletion EMPTY>
62*b1cdbd2cSJim Jagielski<!ATTLIST table:change-deletion
63*b1cdbd2cSJim Jagielski	table:id CDATA #IMPLIED
64*b1cdbd2cSJim Jagielski>
65*b1cdbd2cSJim Jagielski<!ELEMENT table:insertion (office:change-info, table:dependences?, table:deletions?)>
66*b1cdbd2cSJim Jagielski<!ATTLIST table:insertion
67*b1cdbd2cSJim Jagielski	table:id CDATA #REQUIRED
68*b1cdbd2cSJim Jagielski	table:acceptance-state (accepted | rejected | pending) "pending"
69*b1cdbd2cSJim Jagielski	table:rejecting-change-id %positiveInteger; #IMPLIED
70*b1cdbd2cSJim Jagielski	table:type (row | column | table) #REQUIRED
71*b1cdbd2cSJim Jagielski	table:position %integer; #REQUIRED
72*b1cdbd2cSJim Jagielski	table:count %positiveInteger; "1"
73*b1cdbd2cSJim Jagielski	table:table %integer; #IMPLIED
74*b1cdbd2cSJim Jagielski>
75*b1cdbd2cSJim Jagielski<!ELEMENT table:deletion (office:change-info, table:dependences?, table:deletions?, table:cut-offs?)>
76*b1cdbd2cSJim Jagielski<!ATTLIST table:deletion
77*b1cdbd2cSJim Jagielski	table:id CDATA #REQUIRED
78*b1cdbd2cSJim Jagielski	table:acceptance-state (accepted | rejected | pending) "pending"
79*b1cdbd2cSJim Jagielski	table:rejecting-change-id %positiveInteger; #IMPLIED
80*b1cdbd2cSJim Jagielski	table:type (row | column | table) #REQUIRED
81*b1cdbd2cSJim Jagielski	table:position %integer; #REQUIRED
82*b1cdbd2cSJim Jagielski	table:count %positiveInteger; "1"
83*b1cdbd2cSJim Jagielski	table:table %integer; #IMPLIED
84*b1cdbd2cSJim Jagielski	table:multi-deletion-spanned %integer; #IMPLIED
85*b1cdbd2cSJim Jagielski>
86*b1cdbd2cSJim Jagielski<!ELEMENT table:cut-offs (table:movement-cut-off+ | (table:insertion-cut-off, table:movement-cut-off*))>
87*b1cdbd2cSJim Jagielski<!ELEMENT table:insertion-cut-off EMPTY>
88*b1cdbd2cSJim Jagielski<!ATTLIST table:insertion-cut-off
89*b1cdbd2cSJim Jagielski	table:id CDATA #REQUIRED
90*b1cdbd2cSJim Jagielski	table:position %integer; #REQUIRED
91*b1cdbd2cSJim Jagielski>
92*b1cdbd2cSJim Jagielski<!ELEMENT table:movement-cut-off EMPTY>
93*b1cdbd2cSJim Jagielski<!ATTLIST table:movement-cut-off
94*b1cdbd2cSJim Jagielski	table:id CDATA #REQUIRED
95*b1cdbd2cSJim Jagielski	table:start-position %integer; #IMPLIED
96*b1cdbd2cSJim Jagielski	table:end-position %integer; #IMPLIED
97*b1cdbd2cSJim Jagielski	table:position %integer; #IMPLIED
98*b1cdbd2cSJim Jagielski>
99*b1cdbd2cSJim Jagielski<!ELEMENT table:movement (table:source-range-address, table:target-range-address, office:change-info, table:dependences?, table:deletions?)>
100*b1cdbd2cSJim Jagielski<!ATTLIST table:movement
101*b1cdbd2cSJim Jagielski	table:id CDATA #REQUIRED
102*b1cdbd2cSJim Jagielski	table:acceptance-state (accepted | rejected | pending) "pending"
103*b1cdbd2cSJim Jagielski	table:rejecting-change-id %positiveInteger; #IMPLIED
104*b1cdbd2cSJim Jagielski>
105*b1cdbd2cSJim Jagielski<!ELEMENT table:target-range-address EMPTY>
106*b1cdbd2cSJim Jagielski<!ATTLIST table:target-range-address
107*b1cdbd2cSJim Jagielski	table:column %integer; #IMPLIED
108*b1cdbd2cSJim Jagielski	table:row %integer; #IMPLIED
109*b1cdbd2cSJim Jagielski	table:table %integer; #IMPLIED
110*b1cdbd2cSJim Jagielski	table:start-column %integer; #IMPLIED
111*b1cdbd2cSJim Jagielski	table:start-row %integer; #IMPLIED
112*b1cdbd2cSJim Jagielski	table:start-table %integer; #IMPLIED
113*b1cdbd2cSJim Jagielski	table:end-column %integer; #IMPLIED
114*b1cdbd2cSJim Jagielski	table:end-row %integer; #IMPLIED
115*b1cdbd2cSJim Jagielski	table:end-table %integer; #IMPLIED
116*b1cdbd2cSJim Jagielski>
117*b1cdbd2cSJim Jagielski<!ELEMENT table:source-range-address EMPTY>
118*b1cdbd2cSJim Jagielski<!ATTLIST table:source-range-address
119*b1cdbd2cSJim Jagielski	table:column %integer; #IMPLIED
120*b1cdbd2cSJim Jagielski	table:row %integer; #IMPLIED
121*b1cdbd2cSJim Jagielski	table:table %integer; #IMPLIED
122*b1cdbd2cSJim Jagielski	table:start-column %integer; #IMPLIED
123*b1cdbd2cSJim Jagielski	table:start-row %integer; #IMPLIED
124*b1cdbd2cSJim Jagielski	table:start-table %integer; #IMPLIED
125*b1cdbd2cSJim Jagielski	table:end-column %integer; #IMPLIED
126*b1cdbd2cSJim Jagielski	table:end-row %integer; #IMPLIED
127*b1cdbd2cSJim Jagielski	table:end-table %integer; #IMPLIED
128*b1cdbd2cSJim Jagielski>
129*b1cdbd2cSJim Jagielski<!ELEMENT table:change-track-table-cell (text:p*)>
130*b1cdbd2cSJim Jagielski<!ATTLIST table:change-track-table-cell
131*b1cdbd2cSJim Jagielski	table:cell-address %cell-address; #IMPLIED
132*b1cdbd2cSJim Jagielski	table:matrix-covered (true | false) "false"
133*b1cdbd2cSJim Jagielski	table:formula %string; #IMPLIED
134*b1cdbd2cSJim Jagielski	table:number-matrix-rows-spanned %positiveInteger; #IMPLIED
135*b1cdbd2cSJim Jagielski	table:number-matrix-columns-spanned %positiveInteger; #IMPLIED
136*b1cdbd2cSJim Jagielski	table:value-type %valueType; "string"
137*b1cdbd2cSJim Jagielski	table:value %float; #IMPLIED
138*b1cdbd2cSJim Jagielski	table:date-value %date; #IMPLIED
139*b1cdbd2cSJim Jagielski	table:time-value %timeInstance; #IMPLIED
140*b1cdbd2cSJim Jagielski	table:string-value %string; #IMPLIED
141*b1cdbd2cSJim Jagielski>
142*b1cdbd2cSJim Jagielski<!ELEMENT table:cell-content-change (table:cell-address, office:change-info, table:dependences?, table:deletions?, table:previous)>
143*b1cdbd2cSJim Jagielski<!ATTLIST table:cell-content-change
144*b1cdbd2cSJim Jagielski	table:id CDATA #REQUIRED
145*b1cdbd2cSJim Jagielski	table:acceptance-state (accepted | rejected | pending) "pending"
146*b1cdbd2cSJim Jagielski	table:rejecting-change-id %positiveInteger; #IMPLIED
147*b1cdbd2cSJim Jagielski>
148*b1cdbd2cSJim Jagielski<!ELEMENT table:cell-address EMPTY>
149*b1cdbd2cSJim Jagielski<!ATTLIST table:cell-address
150*b1cdbd2cSJim Jagielski	table:column %integer; #IMPLIED
151*b1cdbd2cSJim Jagielski	table:row %integer; #IMPLIED
152*b1cdbd2cSJim Jagielski	table:table %integer; #IMPLIED
153*b1cdbd2cSJim Jagielski>
154*b1cdbd2cSJim Jagielski<!ELEMENT table:previous (table:change-track-table-cell)>
155*b1cdbd2cSJim Jagielski<!ATTLIST table:previous
156*b1cdbd2cSJim Jagielski	table:id CDATA #IMPLIED
157*b1cdbd2cSJim Jagielski>
158*b1cdbd2cSJim Jagielski<!ELEMENT table:rejection (office:change-info, table:dependences?, table:deletions?)>
159*b1cdbd2cSJim Jagielski<!ATTLIST table:rejection
160*b1cdbd2cSJim Jagielski	table:id CDATA #REQUIRED
161*b1cdbd2cSJim Jagielski	table:acceptance-state (accepted | rejected | pending) "pending"
162*b1cdbd2cSJim Jagielski	table:rejecting-change-id %positiveInteger; #IMPLIED
163*b1cdbd2cSJim Jagielski>
164*b1cdbd2cSJim Jagielski
165*b1cdbd2cSJim Jagielski<!ENTITY % table-columns "table:table-columns | ( table:table-column | table:table-column-group )+">
166*b1cdbd2cSJim Jagielski<!ENTITY % table-header-columns "table:table-header-columns">
167*b1cdbd2cSJim Jagielski<!ENTITY % table-rows "table:table-rows | ( table:table-row | table:table-row-group )+">
168*b1cdbd2cSJim Jagielski<!ENTITY % table-header-rows "table:table-header-rows">
169*b1cdbd2cSJim Jagielski<!ENTITY % table-column-groups "((%table-columns;),(%table-header-columns;,(%table-columns;)?)?) | (%table-header-columns;,(%table-columns;)?)">
170*b1cdbd2cSJim Jagielski<!ENTITY % table-row-groups "((%table-rows;),(%table-header-rows;,(%table-rows;)?)?) | (%table-header-rows;,(%table-rows;)?)">
171*b1cdbd2cSJim Jagielski<!ELEMENT table:table (table:table-source?, table:scenario?, office:forms?, table:shapes?, (%table-column-groups;), (%table-row-groups;))>
172*b1cdbd2cSJim Jagielski<!ATTLIST table:table
173*b1cdbd2cSJim Jagielski	table:name %string; #IMPLIED
174*b1cdbd2cSJim Jagielski	table:style-name %styleName; #IMPLIED
175*b1cdbd2cSJim Jagielski	table:protected %boolean; "false"
176*b1cdbd2cSJim Jagielski	table:protection-key CDATA #IMPLIED
177*b1cdbd2cSJim Jagielski	table:print-ranges %cell-range-address-list; #IMPLIED
178*b1cdbd2cSJim Jagielski>
179*b1cdbd2cSJim Jagielski<!ELEMENT table:table-source EMPTY>
180*b1cdbd2cSJim Jagielski<!ATTLIST table:table-source
181*b1cdbd2cSJim Jagielski	table:mode (copy-all | copy-results-only) "copy-all"
182*b1cdbd2cSJim Jagielski	xlink:type (simple) #FIXED "simple"
183*b1cdbd2cSJim Jagielski	xlink:actuate (onRequest) "onRequest"
184*b1cdbd2cSJim Jagielski	xlink:href %uriReference; #REQUIRED
185*b1cdbd2cSJim Jagielski	table:filter-name CDATA #IMPLIED
186*b1cdbd2cSJim Jagielski	table:table-name CDATA #IMPLIED
187*b1cdbd2cSJim Jagielski	table:filter-options CDATA #IMPLIED
188*b1cdbd2cSJim Jagielski	table:refresh-delay %timeDuration; #IMPLIED
189*b1cdbd2cSJim Jagielski>
190*b1cdbd2cSJim Jagielski<!ELEMENT table:scenario EMPTY>
191*b1cdbd2cSJim Jagielski<!ATTLIST table:scenario
192*b1cdbd2cSJim Jagielski	table:display-border %boolean; "true"
193*b1cdbd2cSJim Jagielski	table:border-color %color; #IMPLIED
194*b1cdbd2cSJim Jagielski	table:copy-back %boolean; "true"
195*b1cdbd2cSJim Jagielski	table:copy-styles %boolean; "true"
196*b1cdbd2cSJim Jagielski	table:copy-formulas %boolean; "true"
197*b1cdbd2cSJim Jagielski	table:is-active %boolean; #REQUIRED
198*b1cdbd2cSJim Jagielski	table:scenario-ranges %cell-range-address-list; #REQUIRED
199*b1cdbd2cSJim Jagielski	table:comment CDATA #IMPLIED
200*b1cdbd2cSJim Jagielski>
201*b1cdbd2cSJim Jagielski<!ELEMENT table:shapes %shapes;>
202*b1cdbd2cSJim Jagielski<!ELEMENT table:table-column-group (table:table-header-columns | table:table-column | table:table-column-group)+>
203*b1cdbd2cSJim Jagielski<!ATTLIST table:table-column-group
204*b1cdbd2cSJim Jagielski	table:display %boolean; "true"
205*b1cdbd2cSJim Jagielski>
206*b1cdbd2cSJim Jagielski<!ELEMENT table:table-header-columns (table:table-column | table:table-column-group)+>
207*b1cdbd2cSJim Jagielski<!ELEMENT table:table-columns (table:table-column | table:table-column-group)+>
208*b1cdbd2cSJim Jagielski<!ELEMENT table:table-column EMPTY>
209*b1cdbd2cSJim Jagielski<!ATTLIST table:table-column
210*b1cdbd2cSJim Jagielski	table:number-columns-repeated %positiveInteger; "1"
211*b1cdbd2cSJim Jagielski	table:style-name %styleName; #IMPLIED
212*b1cdbd2cSJim Jagielski	table:visibility (visible | collapse | filter) "visible"
213*b1cdbd2cSJim Jagielski	table:default-cell-style-name %styleName; #IMPLIED
214*b1cdbd2cSJim Jagielski>
215*b1cdbd2cSJim Jagielski<!ELEMENT table:table-row-group (table:table-header-rows | table:table-row | table:table-row-group)+>
216*b1cdbd2cSJim Jagielski<!ATTLIST table:table-row-group
217*b1cdbd2cSJim Jagielski	table:display %boolean; "true"
218*b1cdbd2cSJim Jagielski>
219*b1cdbd2cSJim Jagielski<!ELEMENT table:table-header-rows (table:table-row | table:table-row-group)+>
220*b1cdbd2cSJim Jagielski<!ELEMENT table:table-rows (table:table-row | table:table-row-group)+>
221*b1cdbd2cSJim Jagielski<!ENTITY % table-cells "(table:table-cell|table:covered-table-cell)+">
222*b1cdbd2cSJim Jagielski<!ELEMENT table:table-row %table-cells;>
223*b1cdbd2cSJim Jagielski<!ATTLIST table:table-row
224*b1cdbd2cSJim Jagielski	table:number-rows-repeated %positiveInteger; "1"
225*b1cdbd2cSJim Jagielski	table:style-name %styleName; #IMPLIED
226*b1cdbd2cSJim Jagielski	table:visibility (visible | collapse | filter) "visible"
227*b1cdbd2cSJim Jagielski	table:default-cell-style-name %styleName; #IMPLIED
228*b1cdbd2cSJim Jagielski>
229*b1cdbd2cSJim Jagielski
230*b1cdbd2cSJim Jagielski<!ENTITY % text-wo-table "(text:h|text:p|text:ordered-list|text:unordered-list|%shapes;)*">
231*b1cdbd2cSJim Jagielski<!ENTITY % cell-content "(table:cell-range-source?,office:annotation?,table:detective?,(table:sub-table|%text-wo-table;))">
232*b1cdbd2cSJim Jagielski<!ELEMENT table:table-cell %cell-content;>
233*b1cdbd2cSJim Jagielski<!ELEMENT table:covered-table-cell %cell-content;>
234*b1cdbd2cSJim Jagielski<!ATTLIST table:table-cell
235*b1cdbd2cSJim Jagielski	table:number-columns-repeated %positiveInteger; "1"
236*b1cdbd2cSJim Jagielski	table:number-rows-spanned %positiveInteger; "1"
237*b1cdbd2cSJim Jagielski	table:number-columns-spanned %positiveInteger; "1"
238*b1cdbd2cSJim Jagielski	table:style-name %styleName; #IMPLIED
239*b1cdbd2cSJim Jagielski	table:validation-name CDATA #IMPLIED
240*b1cdbd2cSJim Jagielski	table:formula %string; #IMPLIED
241*b1cdbd2cSJim Jagielski	table:number-matrix-rows-spanned %positiveInteger; #IMPLIED
242*b1cdbd2cSJim Jagielski	table:number-matrix-columns-spanned %positiveInteger; #IMPLIED
243*b1cdbd2cSJim Jagielski	table:value-type %valueType; "string"
244*b1cdbd2cSJim Jagielski	table:value %float; #IMPLIED
245*b1cdbd2cSJim Jagielski	table:date-value %date; #IMPLIED
246*b1cdbd2cSJim Jagielski	table:time-value %timeInstance; #IMPLIED
247*b1cdbd2cSJim Jagielski	table:boolean-value %boolean; #IMPLIED
248*b1cdbd2cSJim Jagielski	table:string-value %string; #IMPLIED
249*b1cdbd2cSJim Jagielski	table:currency %string; #IMPLIED
250*b1cdbd2cSJim Jagielski>
251*b1cdbd2cSJim Jagielski<!ATTLIST table:covered-table-cell
252*b1cdbd2cSJim Jagielski	table:number-columns-repeated %positiveInteger; "1"
253*b1cdbd2cSJim Jagielski	table:style-name %styleName; #IMPLIED
254*b1cdbd2cSJim Jagielski	table:validation-name CDATA #IMPLIED
255*b1cdbd2cSJim Jagielski	table:formula %string; #IMPLIED
256*b1cdbd2cSJim Jagielski	table:number-matrix-rows-spanned %positiveInteger; #IMPLIED
257*b1cdbd2cSJim Jagielski	table:number-matrix-columns-spanned %positiveInteger; #IMPLIED
258*b1cdbd2cSJim Jagielski	table:value-type %valueType; "string"
259*b1cdbd2cSJim Jagielski	table:value %float; #IMPLIED
260*b1cdbd2cSJim Jagielski	table:date-value %date; #IMPLIED
261*b1cdbd2cSJim Jagielski	table:time-value %timeInstance; #IMPLIED
262*b1cdbd2cSJim Jagielski	table:boolean-value %boolean; #IMPLIED
263*b1cdbd2cSJim Jagielski	table:string-value %string; #IMPLIED
264*b1cdbd2cSJim Jagielski	table:currency %string; #IMPLIED
265*b1cdbd2cSJim Jagielski>
266*b1cdbd2cSJim Jagielski<!-- cell protection in writer: cell attribute; calc uses format -->
267*b1cdbd2cSJim Jagielski<!ATTLIST table:table-cell table:protected %boolean; "false">
268*b1cdbd2cSJim Jagielski
269*b1cdbd2cSJim Jagielski<!ELEMENT table:cell-range-source EMPTY>
270*b1cdbd2cSJim Jagielski<!ATTLIST table:cell-range-source
271*b1cdbd2cSJim Jagielski	table:name %string; #REQUIRED
272*b1cdbd2cSJim Jagielski	xlink:type (simple) #FIXED "simple"
273*b1cdbd2cSJim Jagielski	xlink:actuate (onRequest) #FIXED "onRequest"
274*b1cdbd2cSJim Jagielski	xlink:href %uriReference; #REQUIRED
275*b1cdbd2cSJim Jagielski	table:filter-name %string; #REQUIRED
276*b1cdbd2cSJim Jagielski	table:filter-options %string; #IMPLIED
277*b1cdbd2cSJim Jagielski	table:last-column-spanned %positiveInteger; #REQUIRED
278*b1cdbd2cSJim Jagielski	table:last-row-spanned %positiveInteger; #REQUIRED
279*b1cdbd2cSJim Jagielski	table:refresh-delay %timeDuration; #IMPLIED
280*b1cdbd2cSJim Jagielski>
281*b1cdbd2cSJim Jagielski
282*b1cdbd2cSJim Jagielski<!ELEMENT table:detective (table:highlighted-range*, table:operation*)>
283*b1cdbd2cSJim Jagielski<!ELEMENT table:highlighted-range EMPTY>
284*b1cdbd2cSJim Jagielski<!ATTLIST table:highlighted-range
285*b1cdbd2cSJim Jagielski	table:cell-range-address %cell-range-address; #IMPLIED
286*b1cdbd2cSJim Jagielski	table:direction (from-another-table | to-another-table | from-same-table | to-same-table) #REQUIRED
287*b1cdbd2cSJim Jagielski	table:contains-error %boolean; "false"
288*b1cdbd2cSJim Jagielski>
289*b1cdbd2cSJim Jagielski<!ELEMENT table:operation EMPTY>
290*b1cdbd2cSJim Jagielski<!ATTLIST table:operation
291*b1cdbd2cSJim Jagielski	table:name (trace-dependents | remove-dependents | trace-precedents | remove-precedents | trace-errors) #REQUIRED
292*b1cdbd2cSJim Jagielski	table:index %nonNegativeInteger; #REQUIRED
293*b1cdbd2cSJim Jagielski>
294*b1cdbd2cSJim Jagielski
295*b1cdbd2cSJim Jagielski<!ELEMENT table:content-validations (table:content-validation)+>
296*b1cdbd2cSJim Jagielski<!ELEMENT table:content-validation (table:help-message?, (table:error-message | (table:error-macro, office:events?))?)>
297*b1cdbd2cSJim Jagielski<!ATTLIST table:content-validation
298*b1cdbd2cSJim Jagielski	table:name CDATA #REQUIRED
299*b1cdbd2cSJim Jagielski	table:condition CDATA #IMPLIED
300*b1cdbd2cSJim Jagielski	table:base-cell-address %cell-address; #IMPLIED
301*b1cdbd2cSJim Jagielski	table:allow-empty-cell %boolean; #IMPLIED
302*b1cdbd2cSJim Jagielski>
303*b1cdbd2cSJim Jagielski<!ELEMENT table:help-message (text:p*)>
304*b1cdbd2cSJim Jagielski<!ATTLIST table:help-message
305*b1cdbd2cSJim Jagielski	table:title CDATA #IMPLIED
306*b1cdbd2cSJim Jagielski	table:display %boolean; #IMPLIED
307*b1cdbd2cSJim Jagielski>
308*b1cdbd2cSJim Jagielski<!ELEMENT table:error-message (text:p*)>
309*b1cdbd2cSJim Jagielski<!ATTLIST table:error-message
310*b1cdbd2cSJim Jagielski	table:title CDATA #IMPLIED
311*b1cdbd2cSJim Jagielski	table:message-type (stop | warning | information) #IMPLIED
312*b1cdbd2cSJim Jagielski	table:display %boolean; #IMPLIED
313*b1cdbd2cSJim Jagielski>
314*b1cdbd2cSJim Jagielski<!ELEMENT table:error-macro EMPTY>
315*b1cdbd2cSJim Jagielski<!ATTLIST table:error-macro
316*b1cdbd2cSJim Jagielski	table:name CDATA #IMPLIED
317*b1cdbd2cSJim Jagielski	table:execute %boolean; #IMPLIED
318*b1cdbd2cSJim Jagielski>
319*b1cdbd2cSJim Jagielski
320*b1cdbd2cSJim Jagielski<!ELEMENT table:sub-table ((%table-column-groups;) , (%table-row-groups;))>
321*b1cdbd2cSJim Jagielski
322*b1cdbd2cSJim Jagielski<!ELEMENT table:label-ranges (table:label-range)*>
323*b1cdbd2cSJim Jagielski<!ELEMENT table:label-range EMPTY>
324*b1cdbd2cSJim Jagielski<!ATTLIST table:label-range
325*b1cdbd2cSJim Jagielski	table:label-cell-range-address %cell-range-address; #REQUIRED
326*b1cdbd2cSJim Jagielski	table:data-cell-range-address %cell-range-address; #REQUIRED
327*b1cdbd2cSJim Jagielski	table:orientation (column | row) #REQUIRED
328*b1cdbd2cSJim Jagielski>
329*b1cdbd2cSJim Jagielski
330*b1cdbd2cSJim Jagielski<!ELEMENT table:named-expressions (table:named-range | table:named-expression)*>
331*b1cdbd2cSJim Jagielski<!ELEMENT table:named-range EMPTY>
332*b1cdbd2cSJim Jagielski<!ATTLIST table:named-range
333*b1cdbd2cSJim Jagielski	table:name CDATA #REQUIRED
334*b1cdbd2cSJim Jagielski	table:cell-range-address %cell-range-address; #REQUIRED
335*b1cdbd2cSJim Jagielski	table:base-cell-address %cell-address; #IMPLIED
336*b1cdbd2cSJim Jagielski	table:range-usable-as CDATA "none"
337*b1cdbd2cSJim Jagielski>
338*b1cdbd2cSJim Jagielski<!ELEMENT table:named-expression EMPTY>
339*b1cdbd2cSJim Jagielski<!ATTLIST table:named-expression
340*b1cdbd2cSJim Jagielski	table:name CDATA #REQUIRED
341*b1cdbd2cSJim Jagielski	table:expression CDATA #REQUIRED
342*b1cdbd2cSJim Jagielski	table:base-cell-address %cell-address; #IMPLIED
343*b1cdbd2cSJim Jagielski>
344*b1cdbd2cSJim Jagielski
345*b1cdbd2cSJim Jagielski<!ELEMENT table:filter (table:filter-condition | table:filter-and | table:filter-or)>
346*b1cdbd2cSJim Jagielski<!ATTLIST table:filter
347*b1cdbd2cSJim Jagielski	table:target-range-address %cell-range-address; #IMPLIED
348*b1cdbd2cSJim Jagielski	table:condition-source-range-address %cell-range-address; #IMPLIED
349*b1cdbd2cSJim Jagielski	table:condition-source (self | cell-range) "self"
350*b1cdbd2cSJim Jagielski	table:display-duplicates %boolean; "true"
351*b1cdbd2cSJim Jagielski>
352*b1cdbd2cSJim Jagielski<!ELEMENT table:filter-and (table:filter-or | table:filter-condition)+>
353*b1cdbd2cSJim Jagielski<!ELEMENT table:filter-or (table:filter-and | table:filter-condition)+>
354*b1cdbd2cSJim Jagielski<!ELEMENT table:filter-condition EMPTY>
355*b1cdbd2cSJim Jagielski<!ATTLIST table:filter-condition
356*b1cdbd2cSJim Jagielski	table:field-number %nonNegativeInteger; #REQUIRED
357*b1cdbd2cSJim Jagielski	table:case-sensitive %boolean; "false"
358*b1cdbd2cSJim Jagielski	table:data-type (text | number) "text"
359*b1cdbd2cSJim Jagielski	table:value CDATA #REQUIRED
360*b1cdbd2cSJim Jagielski	table:operator CDATA #REQUIRED
361*b1cdbd2cSJim Jagielski>
362*b1cdbd2cSJim Jagielski
363*b1cdbd2cSJim Jagielski<!ELEMENT table:database-ranges (table:database-range)*>
364*b1cdbd2cSJim Jagielski<!ELEMENT table:database-range ((table:database-source-sql | table:database-source-table | table:database-source-query)?, table:filter?, table:sort?, table:subtotal-rules?)>
365*b1cdbd2cSJim Jagielski<!ATTLIST table:database-range
366*b1cdbd2cSJim Jagielski	table:name CDATA #IMPLIED
367*b1cdbd2cSJim Jagielski	table:is-selection %boolean; "false"
368*b1cdbd2cSJim Jagielski	table:on-update-keep-styles %boolean; "false"
369*b1cdbd2cSJim Jagielski	table:on-update-keep-size %boolean; "true"
370*b1cdbd2cSJim Jagielski	table:has-persistant-data %boolean; "true"
371*b1cdbd2cSJim Jagielski	table:orientation (row | column) "row"
372*b1cdbd2cSJim Jagielski	table:contains-header %boolean; "true"
373*b1cdbd2cSJim Jagielski	table:display-filter-buttons %boolean; "false"
374*b1cdbd2cSJim Jagielski	table:target-range-address %cell-range-address; #REQUIRED
375*b1cdbd2cSJim Jagielski	table:refresh-delay %timeDuration; #IMPLIED
376*b1cdbd2cSJim Jagielski>
377*b1cdbd2cSJim Jagielski<!ELEMENT table:database-source-sql EMPTY>
378*b1cdbd2cSJim Jagielski<!ATTLIST table:database-source-sql
379*b1cdbd2cSJim Jagielski	table:database-name CDATA #REQUIRED
380*b1cdbd2cSJim Jagielski	table:sql-statement CDATA #REQUIRED
381*b1cdbd2cSJim Jagielski	table:parse-sql-statements %boolean; "false"
382*b1cdbd2cSJim Jagielski>
383*b1cdbd2cSJim Jagielski<!ELEMENT table:database-source-table EMPTY>
384*b1cdbd2cSJim Jagielski<!ATTLIST table:database-source-table
385*b1cdbd2cSJim Jagielski	table:database-name CDATA #REQUIRED
386*b1cdbd2cSJim Jagielski	table:table-name CDATA #REQUIRED
387*b1cdbd2cSJim Jagielski>
388*b1cdbd2cSJim Jagielski<!ELEMENT table:database-source-query EMPTY>
389*b1cdbd2cSJim Jagielski<!ATTLIST table:database-source-query
390*b1cdbd2cSJim Jagielski	table:database-name CDATA #REQUIRED
391*b1cdbd2cSJim Jagielski	table:query-name CDATA #REQUIRED
392*b1cdbd2cSJim Jagielski>
393*b1cdbd2cSJim Jagielski
394*b1cdbd2cSJim Jagielski<!ELEMENT table:sort (table:sort-by)+>
395*b1cdbd2cSJim Jagielski<!ATTLIST table:sort
396*b1cdbd2cSJim Jagielski	table:bind-styles-to-content %boolean; "true"
397*b1cdbd2cSJim Jagielski	table:target-range-address %cell-range-address; #IMPLIED
398*b1cdbd2cSJim Jagielski	table:case-sensitive %boolean; "false"
399*b1cdbd2cSJim Jagielski	table:language CDATA #IMPLIED
400*b1cdbd2cSJim Jagielski	table:country CDATA #IMPLIED
401*b1cdbd2cSJim Jagielski	table:algorithm CDATA #IMPLIED
402*b1cdbd2cSJim Jagielski>
403*b1cdbd2cSJim Jagielski<!ELEMENT table:sort-by EMPTY>
404*b1cdbd2cSJim Jagielski<!ATTLIST table:sort-by
405*b1cdbd2cSJim Jagielski	table:field-number %nonNegativeInteger; #REQUIRED
406*b1cdbd2cSJim Jagielski	table:data-type (text | number | automatic | qname-but-not-ncname) "automatic"
407*b1cdbd2cSJim Jagielski	table:order (ascending | descending) "ascending"
408*b1cdbd2cSJim Jagielski>
409*b1cdbd2cSJim Jagielski
410*b1cdbd2cSJim Jagielski<!ELEMENT table:subtotal-rules (table:sort-groups? | table:subtotal-rule*)?>
411*b1cdbd2cSJim Jagielski<!ATTLIST table:subtotal-rules
412*b1cdbd2cSJim Jagielski	table:bind-styles-to-content %boolean; "true"
413*b1cdbd2cSJim Jagielski	table:case-sensitive %boolean; "false"
414*b1cdbd2cSJim Jagielski	table:page-breaks-on-group-change %boolean; "false"
415*b1cdbd2cSJim Jagielski>
416*b1cdbd2cSJim Jagielski<!ELEMENT table:sort-groups EMPTY>
417*b1cdbd2cSJim Jagielski<!ATTLIST table:sort-groups
418*b1cdbd2cSJim Jagielski	table:data-type (text | number | automatic | qname-but-not-ncname) "automatic"
419*b1cdbd2cSJim Jagielski	table:order (ascending | descending) "ascending"
420*b1cdbd2cSJim Jagielski>
421*b1cdbd2cSJim Jagielski<!ELEMENT table:subtotal-rule (table:subtotal-field)*>
422*b1cdbd2cSJim Jagielski<!ATTLIST table:subtotal-rule
423*b1cdbd2cSJim Jagielski	table:group-by-field-number %nonNegativeInteger; #REQUIRED
424*b1cdbd2cSJim Jagielski>
425*b1cdbd2cSJim Jagielski<!ELEMENT table:subtotal-field EMPTY>
426*b1cdbd2cSJim Jagielski<!ATTLIST table:subtotal-field
427*b1cdbd2cSJim Jagielski	table:field-number %nonNegativeInteger; #REQUIRED
428*b1cdbd2cSJim Jagielski	table:function CDATA #REQUIRED
429*b1cdbd2cSJim Jagielski>
430*b1cdbd2cSJim Jagielski
431*b1cdbd2cSJim Jagielski<!ELEMENT table:data-pilot-tables (table:data-pilot-table)*>
432*b1cdbd2cSJim Jagielski<!ELEMENT table:data-pilot-table ((table:database-source-sql | table:database-source-table | table:database-source-query | table:source-service | table:source-cell-range)?, table:data-pilot-field+)>
433*b1cdbd2cSJim Jagielski<!ATTLIST table:data-pilot-table
434*b1cdbd2cSJim Jagielski	table:name CDATA #REQUIRED
435*b1cdbd2cSJim Jagielski	table:application-data CDATA #IMPLIED
436*b1cdbd2cSJim Jagielski	table:grand-total (none | row | column | both) "both"
437*b1cdbd2cSJim Jagielski	table:ignore-empty-rows %boolean; "false"
438*b1cdbd2cSJim Jagielski	table:identify-categories %boolean; "false"
439*b1cdbd2cSJim Jagielski	table:target-range-address %cell-range-address; #REQUIRED
440*b1cdbd2cSJim Jagielski	table:buttons %cell-range-address-list; #REQUIRED
441*b1cdbd2cSJim Jagielski>
442*b1cdbd2cSJim Jagielski<!ELEMENT table:source-service EMPTY>
443*b1cdbd2cSJim Jagielski<!ATTLIST table:source-service
444*b1cdbd2cSJim Jagielski	table:name CDATA #REQUIRED
445*b1cdbd2cSJim Jagielski	table:source-name CDATA #REQUIRED
446*b1cdbd2cSJim Jagielski	table:object-name CDATA #REQUIRED
447*b1cdbd2cSJim Jagielski	table:username CDATA #IMPLIED
448*b1cdbd2cSJim Jagielski	table:password CDATA #IMPLIED
449*b1cdbd2cSJim Jagielski>
450*b1cdbd2cSJim Jagielski<!ELEMENT table:source-cell-range (table:filter)?>
451*b1cdbd2cSJim Jagielski<!ATTLIST table:source-cell-range
452*b1cdbd2cSJim Jagielski	table:cell-range-address %cell-range-address; #REQUIRED
453*b1cdbd2cSJim Jagielski>
454*b1cdbd2cSJim Jagielski<!ELEMENT table:data-pilot-field (table:data-pilot-level)?>
455*b1cdbd2cSJim Jagielski<!ATTLIST table:data-pilot-field
456*b1cdbd2cSJim Jagielski	table:source-field-name CDATA #REQUIRED
457*b1cdbd2cSJim Jagielski	table:is-data-layout-field %boolean; "false"
458*b1cdbd2cSJim Jagielski	table:function CDATA #REQUIRED
459*b1cdbd2cSJim Jagielski	table:orientation (row | column | data | page | hidden) #REQUIRED
460*b1cdbd2cSJim Jagielski	table:used-hierarchy %positiveInteger; "1"
461*b1cdbd2cSJim Jagielski>
462*b1cdbd2cSJim Jagielski<!ELEMENT table:data-pilot-level (table:data-pilot-subtotals?, table:data-pilot-members?)>
463*b1cdbd2cSJim Jagielski<!ATTLIST table:data-pilot-level
464*b1cdbd2cSJim Jagielski	table:display-empty %boolean; #IMPLIED
465*b1cdbd2cSJim Jagielski>
466*b1cdbd2cSJim Jagielski<!ELEMENT table:data-pilot-subtotals (table:data-pilot-subtotal)*>
467*b1cdbd2cSJim Jagielski<!ELEMENT table:data-pilot-subtotal EMPTY>
468*b1cdbd2cSJim Jagielski<!ATTLIST table:data-pilot-subtotal
469*b1cdbd2cSJim Jagielski	table:function CDATA #REQUIRED
470*b1cdbd2cSJim Jagielski>
471*b1cdbd2cSJim Jagielski<!ELEMENT table:data-pilot-members (table:data-pilot-member)*>
472*b1cdbd2cSJim Jagielski<!ELEMENT table:data-pilot-member EMPTY>
473*b1cdbd2cSJim Jagielski<!ATTLIST table:data-pilot-member
474*b1cdbd2cSJim Jagielski	table:name CDATA #REQUIRED
475*b1cdbd2cSJim Jagielski	table:display %boolean; #IMPLIED
476*b1cdbd2cSJim Jagielski	table:display-details %boolean; #IMPLIED
477*b1cdbd2cSJim Jagielski>
478*b1cdbd2cSJim Jagielski
479*b1cdbd2cSJim Jagielski<!ELEMENT table:consolidation EMPTY>
480*b1cdbd2cSJim Jagielski<!ATTLIST table:consolidation
481*b1cdbd2cSJim Jagielski	table:function CDATA #REQUIRED
482*b1cdbd2cSJim Jagielski	table:source-cell-range-addresses %cell-range-address-list; #REQUIRED
483*b1cdbd2cSJim Jagielski	table:target-cell-address %cell-address; #REQUIRED
484*b1cdbd2cSJim Jagielski	table:use-label (none | column | row | both) "none"
485*b1cdbd2cSJim Jagielski	table:link-to-source-data %boolean; "false"
486*b1cdbd2cSJim Jagielski>
487*b1cdbd2cSJim Jagielski
488*b1cdbd2cSJim Jagielski<!ELEMENT table:dde-links (table:dde-link)+>
489*b1cdbd2cSJim Jagielski<!ELEMENT table:dde-link (office:dde-source, table:table)>
490