tdf#154546 skip dispatch when presenter controller is not set
[LibreOffice.git] / schema / libreoffice / OpenDocument-v1.3+libreoffice-schema.rng
blobfa38694f9cfff5745f2991a0b470341373963be2
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Open Document Format for Office Applications (OpenDocument) Version 1.3
4 OASIS Standard, In progress
5 Relax-NG Schema
6 Source: https://tools.oasis-open.org/version-control/svn/office/
7 Copyright (c) OASIS Open 2002-2015. All Rights Reserved.
9 All capitalized terms in the following text have the meanings assigned to them
10 in the OASIS Intellectual Property Rights Policy (the "OASIS IPR Policy"). The
11 full Policy may be found at the OASIS website.
13 This document and translations of it may be copied and furnished to others, and
14 derivative works that comment on or otherwise explain it or assist in its
15 implementation may be prepared, copied, published, and distributed, in whole or
16 in part, without restriction of any kind, provided that the above copyright
17 notice and this section are included on all such copies and derivative works.
18 However, this document itself may not be modified in any way, including by
19 removing the copyright notice or references to OASIS, except as needed for the
20 purpose of developing any document or deliverable produced by an OASIS
21 Technical Committee (in which case the rules applicable to copyrights, as set
22 forth in the OASIS IPR Policy, must be followed) or as required to translate it
23 into languages other than English.
25 The limited permissions granted above are perpetual and will not be revoked by
26 OASIS or its successors or assigns.
28 This document and the information contained herein is provided on an "AS IS"
29 basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT
30 LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT
31 INFRINGE ANY OWNERSHIP RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
32 FITNESS FOR A PARTICULAR PURPOSE.
33 -->
34 <rng:grammar xmlns:anim="urn:oasis:names:tc:opendocument:xmlns:animation:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:db="urn:oasis:names:tc:opendocument:xmlns:database:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:smil="urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
36 xmlns:officeooo="http://openoffice.org/2009/office"
37 xmlns:tableooo="http://openoffice.org/2009/table"
38 xmlns:chartooo="http://openoffice.org/2010/chart"
39 xmlns:drawooo="http://openoffice.org/2010/draw"
40 xmlns:css3t="http://www.w3.org/TR/css3-text/"
41 xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0"
42 xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0"
44 <rng:include href="../odf1.3/OpenDocument-v1.3-schema.rng">
46 <rng:define name="office-document-common-attrs">
47 <rng:interleave>
48 <rng:attribute name="office:version">
49 <!-- FIXME remove this hack once we write 1.3 -->
50 <rng:choice>
51 <rng:value>1.3</rng:value>
52 <rng:value>1.2</rng:value>
53 </rng:choice>
54 </rng:attribute>
55 <rng:optional>
56 <rng:attribute name="grddl:transformation">
57 <rng:list>
58 <rng:zeroOrMore>
59 <rng:ref name="anyIRI"/>
60 </rng:zeroOrMore>
61 </rng:list>
62 </rng:attribute>
63 </rng:optional>
64 </rng:interleave>
65 </rng:define>
67 <rng:define name="style-graphic-properties-attlist">
68 <rng:interleave>
69 <rng:optional>
70 <rng:attribute name="draw:stroke">
71 <rng:choice>
72 <rng:value>none</rng:value>
73 <rng:value>dash</rng:value>
74 <rng:value>solid</rng:value>
75 </rng:choice>
76 </rng:attribute>
77 </rng:optional>
78 <rng:optional>
79 <rng:attribute name="draw:stroke-dash">
80 <rng:ref name="styleNameRef"/>
81 </rng:attribute>
82 </rng:optional>
83 <rng:optional>
84 <rng:attribute name="draw:stroke-dash-names">
85 <rng:ref name="styleNameRefs"/>
86 </rng:attribute>
87 </rng:optional>
88 <rng:optional>
89 <rng:attribute name="svg:stroke-width">
90 <rng:ref name="length"/>
91 </rng:attribute>
92 </rng:optional>
93 <rng:optional>
94 <rng:attribute name="svg:stroke-color">
95 <rng:ref name="color"/>
96 </rng:attribute>
97 </rng:optional>
98 <rng:optional>
99 <rng:attribute name="draw:marker-start">
100 <rng:ref name="styleNameRef"/>
101 </rng:attribute>
102 </rng:optional>
103 <rng:optional>
104 <rng:attribute name="draw:marker-end">
105 <rng:ref name="styleNameRef"/>
106 </rng:attribute>
107 </rng:optional>
108 <rng:optional>
109 <rng:attribute name="draw:marker-start-width">
110 <rng:ref name="length"/>
111 </rng:attribute>
112 </rng:optional>
113 <rng:optional>
114 <rng:attribute name="draw:marker-end-width">
115 <rng:ref name="length"/>
116 </rng:attribute>
117 </rng:optional>
118 <rng:optional>
119 <rng:attribute name="draw:marker-start-center">
120 <rng:ref name="boolean"/>
121 </rng:attribute>
122 </rng:optional>
123 <rng:optional>
124 <rng:attribute name="draw:marker-end-center">
125 <rng:ref name="boolean"/>
126 </rng:attribute>
127 </rng:optional>
128 <rng:optional>
129 <rng:attribute name="svg:stroke-opacity">
130 <rng:choice>
131 <rng:data type="double">
132 <rng:param name="minInclusive">0</rng:param>
133 <rng:param name="maxInclusive">1</rng:param>
134 </rng:data>
135 <rng:ref name="zeroToHundredPercent"/>
136 </rng:choice>
137 </rng:attribute>
138 </rng:optional>
139 <rng:optional>
140 <rng:attribute name="draw:stroke-linejoin">
141 <rng:choice>
142 <rng:value>miter</rng:value>
143 <rng:value>round</rng:value>
144 <rng:value>bevel</rng:value>
145 <rng:value>middle</rng:value>
146 <rng:value>none</rng:value>
147 </rng:choice>
148 </rng:attribute>
149 </rng:optional>
150 <rng:optional>
151 <rng:attribute name="svg:stroke-linecap">
152 <rng:choice>
153 <rng:value>butt</rng:value>
154 <rng:value>square</rng:value>
155 <rng:value>round</rng:value>
156 </rng:choice>
157 </rng:attribute>
158 </rng:optional>
159 <rng:optional>
160 <rng:attribute name="draw:symbol-color">
161 <rng:ref name="color"/>
162 </rng:attribute>
163 </rng:optional>
164 <rng:optional>
165 <rng:attribute name="text:animation">
166 <rng:choice>
167 <rng:value>none</rng:value>
168 <rng:value>scroll</rng:value>
169 <rng:value>alternate</rng:value>
170 <rng:value>slide</rng:value>
171 </rng:choice>
172 </rng:attribute>
173 </rng:optional>
174 <rng:optional>
175 <rng:attribute name="text:animation-direction">
176 <rng:choice>
177 <rng:value>left</rng:value>
178 <rng:value>right</rng:value>
179 <rng:value>up</rng:value>
180 <rng:value>down</rng:value>
181 </rng:choice>
182 </rng:attribute>
183 </rng:optional>
184 <rng:optional>
185 <rng:attribute name="text:animation-start-inside">
186 <rng:ref name="boolean"/>
187 </rng:attribute>
188 </rng:optional>
189 <rng:optional>
190 <rng:attribute name="text:animation-stop-inside">
191 <rng:ref name="boolean"/>
192 </rng:attribute>
193 </rng:optional>
194 <rng:optional>
195 <rng:attribute name="text:animation-repeat">
196 <rng:ref name="nonNegativeInteger"/>
197 </rng:attribute>
198 </rng:optional>
199 <rng:optional>
200 <rng:attribute name="text:animation-delay">
201 <rng:ref name="duration"/>
202 </rng:attribute>
203 </rng:optional>
204 <rng:optional>
205 <rng:attribute name="text:animation-steps">
206 <rng:ref name="length"/>
207 </rng:attribute>
208 </rng:optional>
209 <rng:optional>
210 <rng:attribute name="draw:auto-grow-width">
211 <rng:ref name="boolean"/>
212 </rng:attribute>
213 </rng:optional>
214 <rng:optional>
215 <rng:attribute name="draw:auto-grow-height">
216 <rng:ref name="boolean"/>
217 </rng:attribute>
218 </rng:optional>
219 <rng:optional>
220 <!-- FIXME remove this once the export bug is fixed -->
221 <rng:attribute name="draw:fit-to-size">
222 <rng:choice>
223 <rng:value>true</rng:value>
224 <rng:value>false</rng:value>
225 <rng:value>all</rng:value>
226 <rng:value>shrink-to-fit</rng:value>
227 </rng:choice>
228 </rng:attribute>
229 </rng:optional>
230 <rng:optional>
231 <rng:attribute name="draw:fit-to-contour">
232 <rng:ref name="boolean"/>
233 </rng:attribute>
234 </rng:optional>
235 <rng:optional>
236 <rng:attribute name="draw:textarea-vertical-align">
237 <rng:choice>
238 <rng:value>top</rng:value>
239 <rng:value>middle</rng:value>
240 <rng:value>bottom</rng:value>
241 <rng:value>justify</rng:value>
242 </rng:choice>
243 </rng:attribute>
244 </rng:optional>
245 <rng:optional>
246 <rng:attribute name="draw:textarea-horizontal-align">
247 <rng:choice>
248 <rng:value>left</rng:value>
249 <rng:value>center</rng:value>
250 <rng:value>right</rng:value>
251 <rng:value>justify</rng:value>
252 </rng:choice>
253 </rng:attribute>
254 </rng:optional>
255 <rng:optional>
256 <rng:attribute name="fo:wrap-option">
257 <rng:choice>
258 <rng:value>no-wrap</rng:value>
259 <rng:value>wrap</rng:value>
260 </rng:choice>
261 </rng:attribute>
262 </rng:optional>
263 <rng:optional>
264 <rng:attribute name="style:shrink-to-fit">
265 <rng:ref name="boolean"/>
266 </rng:attribute>
267 </rng:optional>
268 <rng:optional>
269 <rng:attribute name="draw:color-mode">
270 <rng:choice>
271 <rng:value>greyscale</rng:value>
272 <rng:value>mono</rng:value>
273 <rng:value>watermark</rng:value>
274 <rng:value>standard</rng:value>
275 </rng:choice>
276 </rng:attribute>
277 </rng:optional>
278 <rng:optional>
279 <rng:attribute name="draw:color-inversion">
280 <rng:ref name="boolean"/>
281 </rng:attribute>
282 </rng:optional>
283 <rng:optional>
284 <rng:attribute name="draw:luminance">
285 <rng:ref name="signedZeroToHundredPercent"/>
286 </rng:attribute>
287 <!-- https://issues.oasis-open.org/browse/OFFICE-3821 -->
288 </rng:optional>
289 <rng:optional>
290 <rng:attribute name="draw:contrast">
291 <rng:ref name="percent"/>
292 </rng:attribute>
293 </rng:optional>
294 <rng:optional>
295 <rng:attribute name="draw:gamma">
296 <rng:ref name="percent"/>
297 </rng:attribute>
298 </rng:optional>
299 <rng:optional>
300 <rng:attribute name="draw:red">
301 <rng:ref name="signedZeroToHundredPercent"/>
302 </rng:attribute>
303 </rng:optional>
304 <rng:optional>
305 <rng:attribute name="draw:green">
306 <rng:ref name="signedZeroToHundredPercent"/>
307 </rng:attribute>
308 </rng:optional>
309 <rng:optional>
310 <rng:attribute name="draw:blue">
311 <rng:ref name="signedZeroToHundredPercent"/>
312 </rng:attribute>
313 </rng:optional>
314 <rng:optional>
315 <rng:attribute name="draw:image-opacity">
316 <rng:ref name="zeroToHundredPercent"/>
317 </rng:attribute>
318 </rng:optional>
319 <rng:optional>
320 <rng:attribute name="draw:shadow">
321 <rng:choice>
322 <rng:value>visible</rng:value>
323 <rng:value>hidden</rng:value>
324 </rng:choice>
325 </rng:attribute>
326 </rng:optional>
327 <rng:optional>
328 <rng:attribute name="draw:shadow-offset-x">
329 <rng:ref name="length"/>
330 </rng:attribute>
331 </rng:optional>
332 <rng:optional>
333 <rng:attribute name="draw:shadow-offset-y">
334 <rng:ref name="length"/>
335 </rng:attribute>
336 </rng:optional>
337 <rng:optional>
338 <rng:attribute name="draw:shadow-color">
339 <rng:ref name="color"/>
340 </rng:attribute>
341 </rng:optional>
342 <rng:optional>
343 <rng:attribute name="draw:shadow-opacity">
344 <rng:ref name="zeroToHundredPercent"/>
345 </rng:attribute>
346 </rng:optional>
347 <!-- TODO: no proposal for loext:shadow-blur -->
348 <rng:optional>
349 <rng:attribute name="loext:shadow-blur">
350 <rng:ref name="length"/>
351 </rng:attribute>
352 </rng:optional>
353 <rng:optional>
354 <rng:attribute name="draw:start-line-spacing-horizontal">
355 <rng:ref name="distance"/>
356 </rng:attribute>
357 </rng:optional>
358 <rng:optional>
359 <rng:attribute name="draw:start-line-spacing-vertical">
360 <rng:ref name="distance"/>
361 </rng:attribute>
362 </rng:optional>
363 <rng:optional>
364 <rng:attribute name="draw:end-line-spacing-horizontal">
365 <rng:ref name="distance"/>
366 </rng:attribute>
367 </rng:optional>
368 <rng:optional>
369 <rng:attribute name="draw:end-line-spacing-vertical">
370 <rng:ref name="distance"/>
371 </rng:attribute>
372 </rng:optional>
373 <rng:optional>
374 <rng:attribute name="draw:line-distance">
375 <rng:ref name="distance"/>
376 </rng:attribute>
377 </rng:optional>
378 <rng:optional>
379 <rng:attribute name="draw:guide-overhang">
380 <rng:ref name="length"/>
381 </rng:attribute>
382 </rng:optional>
383 <rng:optional>
384 <rng:attribute name="draw:guide-distance">
385 <rng:ref name="distance"/>
386 </rng:attribute>
387 </rng:optional>
388 <rng:optional>
389 <rng:attribute name="draw:start-guide">
390 <rng:ref name="length"/>
391 </rng:attribute>
392 </rng:optional>
393 <rng:optional>
394 <rng:attribute name="draw:end-guide">
395 <rng:ref name="length"/>
396 </rng:attribute>
397 </rng:optional>
398 <rng:optional>
399 <rng:attribute name="draw:placing">
400 <rng:choice>
401 <rng:value>below</rng:value>
402 <rng:value>above</rng:value>
403 </rng:choice>
404 </rng:attribute>
405 </rng:optional>
406 <rng:optional>
407 <rng:attribute name="draw:parallel">
408 <rng:ref name="boolean"/>
409 </rng:attribute>
410 </rng:optional>
411 <rng:optional>
412 <rng:attribute name="draw:measure-align">
413 <rng:choice>
414 <rng:value>automatic</rng:value>
415 <rng:value>left-outside</rng:value>
416 <rng:value>inside</rng:value>
417 <rng:value>right-outside</rng:value>
418 </rng:choice>
419 </rng:attribute>
420 </rng:optional>
421 <rng:optional>
422 <rng:attribute name="draw:measure-vertical-align">
423 <rng:choice>
424 <rng:value>automatic</rng:value>
425 <rng:value>above</rng:value>
426 <rng:value>below</rng:value>
427 <rng:value>center</rng:value>
428 </rng:choice>
429 </rng:attribute>
430 </rng:optional>
431 <rng:optional>
432 <rng:attribute name="draw:unit">
433 <rng:choice>
434 <rng:value>automatic</rng:value>
435 <rng:value>mm</rng:value>
436 <rng:value>cm</rng:value>
437 <rng:value>m</rng:value>
438 <rng:value>km</rng:value>
439 <rng:value>pt</rng:value>
440 <rng:value>pc</rng:value>
441 <rng:value>inch</rng:value>
442 <rng:value>ft</rng:value>
443 <rng:value>mi</rng:value>
444 </rng:choice>
445 </rng:attribute>
446 </rng:optional>
447 <rng:optional>
448 <rng:attribute name="draw:show-unit">
449 <rng:ref name="boolean"/>
450 </rng:attribute>
451 </rng:optional>
452 <rng:optional>
453 <rng:attribute name="draw:decimal-places">
454 <rng:ref name="nonNegativeInteger"/>
455 </rng:attribute>
456 </rng:optional>
457 <rng:optional>
458 <rng:attribute name="draw:caption-type">
459 <rng:choice>
460 <rng:value>straight-line</rng:value>
461 <rng:value>angled-line</rng:value>
462 <rng:value>angled-connector-line</rng:value>
463 </rng:choice>
464 </rng:attribute>
465 </rng:optional>
466 <rng:optional>
467 <rng:attribute name="draw:caption-angle-type">
468 <rng:choice>
469 <rng:value>fixed</rng:value>
470 <rng:value>free</rng:value>
471 </rng:choice>
472 </rng:attribute>
473 </rng:optional>
474 <rng:optional>
475 <rng:attribute name="draw:caption-angle">
476 <rng:ref name="angle"/>
477 </rng:attribute>
478 </rng:optional>
479 <rng:optional>
480 <rng:attribute name="draw:caption-gap">
481 <rng:ref name="distance"/>
482 </rng:attribute>
483 </rng:optional>
484 <rng:optional>
485 <rng:attribute name="draw:caption-escape-direction">
486 <rng:choice>
487 <rng:value>horizontal</rng:value>
488 <rng:value>vertical</rng:value>
489 <rng:value>auto</rng:value>
490 </rng:choice>
491 </rng:attribute>
492 </rng:optional>
493 <rng:optional>
494 <rng:attribute name="draw:caption-escape">
495 <rng:choice>
496 <rng:ref name="length"/>
497 <rng:ref name="percent"/>
498 </rng:choice>
499 </rng:attribute>
500 </rng:optional>
501 <rng:optional>
502 <rng:attribute name="draw:caption-line-length">
503 <rng:ref name="length"/>
504 </rng:attribute>
505 </rng:optional>
506 <rng:optional>
507 <rng:attribute name="draw:caption-fit-line-length">
508 <rng:ref name="boolean"/>
509 </rng:attribute>
510 </rng:optional>
511 <rng:optional>
512 <rng:attribute name="dr3d:horizontal-segments">
513 <rng:ref name="nonNegativeInteger"/>
514 </rng:attribute>
515 </rng:optional>
516 <rng:optional>
517 <rng:attribute name="dr3d:vertical-segments">
518 <rng:ref name="nonNegativeInteger"/>
519 </rng:attribute>
520 </rng:optional>
521 <rng:optional>
522 <rng:attribute name="dr3d:edge-rounding">
523 <rng:ref name="percent"/>
524 </rng:attribute>
525 </rng:optional>
526 <rng:optional>
527 <rng:attribute name="dr3d:edge-rounding-mode">
528 <rng:choice>
529 <rng:value>correct</rng:value>
530 <rng:value>attractive</rng:value>
531 </rng:choice>
532 </rng:attribute>
533 </rng:optional>
534 <rng:optional>
535 <rng:attribute name="dr3d:back-scale">
536 <rng:ref name="percent"/>
537 </rng:attribute>
538 </rng:optional>
539 <rng:optional>
540 <rng:attribute name="dr3d:depth">
541 <rng:ref name="length"/>
542 </rng:attribute>
543 </rng:optional>
544 <rng:optional>
545 <rng:attribute name="dr3d:backface-culling">
546 <rng:choice>
547 <rng:value>enabled</rng:value>
548 <rng:value>disabled</rng:value>
549 </rng:choice>
550 </rng:attribute>
551 </rng:optional>
552 <rng:optional>
553 <rng:attribute name="dr3d:end-angle">
554 <rng:ref name="angle"/>
555 </rng:attribute>
556 </rng:optional>
557 <rng:optional>
558 <rng:attribute name="dr3d:close-front">
559 <rng:ref name="boolean"/>
560 </rng:attribute>
561 </rng:optional>
562 <rng:optional>
563 <rng:attribute name="dr3d:close-back">
564 <rng:ref name="boolean"/>
565 </rng:attribute>
566 </rng:optional>
567 <rng:optional>
568 <rng:attribute name="dr3d:lighting-mode">
569 <rng:choice>
570 <rng:value>standard</rng:value>
571 <rng:value>double-sided</rng:value>
572 </rng:choice>
573 </rng:attribute>
574 </rng:optional>
575 <rng:optional>
576 <rng:attribute name="dr3d:normals-kind">
577 <rng:choice>
578 <rng:value>object</rng:value>
579 <rng:value>flat</rng:value>
580 <rng:value>sphere</rng:value>
581 </rng:choice>
582 </rng:attribute>
583 </rng:optional>
584 <rng:optional>
585 <rng:attribute name="dr3d:normals-direction">
586 <rng:choice>
587 <rng:value>normal</rng:value>
588 <rng:value>inverse</rng:value>
589 </rng:choice>
590 </rng:attribute>
591 </rng:optional>
592 <rng:optional>
593 <rng:attribute name="dr3d:texture-generation-mode-x">
594 <rng:choice>
595 <rng:value>object</rng:value>
596 <rng:value>parallel</rng:value>
597 <rng:value>sphere</rng:value>
598 </rng:choice>
599 </rng:attribute>
600 </rng:optional>
601 <rng:optional>
602 <rng:attribute name="dr3d:texture-generation-mode-y">
603 <rng:choice>
604 <rng:value>object</rng:value>
605 <rng:value>parallel</rng:value>
606 <rng:value>sphere</rng:value>
607 </rng:choice>
608 </rng:attribute>
609 </rng:optional>
610 <rng:optional>
611 <rng:attribute name="dr3d:texture-kind">
612 <rng:choice>
613 <rng:value>luminance</rng:value>
614 <rng:value>intensity</rng:value>
615 <rng:value>color</rng:value>
616 </rng:choice>
617 </rng:attribute>
618 </rng:optional>
619 <rng:optional>
620 <rng:attribute name="dr3d:texture-filter">
621 <rng:choice>
622 <rng:value>enabled</rng:value>
623 <rng:value>disabled</rng:value>
624 </rng:choice>
625 </rng:attribute>
626 </rng:optional>
627 <rng:optional>
628 <rng:attribute name="dr3d:texture-mode">
629 <rng:choice>
630 <rng:value>replace</rng:value>
631 <rng:value>modulate</rng:value>
632 <rng:value>blend</rng:value>
633 </rng:choice>
634 </rng:attribute>
635 </rng:optional>
636 <rng:optional>
637 <rng:attribute name="dr3d:ambient-color">
638 <rng:ref name="color"/>
639 </rng:attribute>
640 </rng:optional>
641 <rng:optional>
642 <rng:attribute name="dr3d:emissive-color">
643 <rng:ref name="color"/>
644 </rng:attribute>
645 </rng:optional>
646 <rng:optional>
647 <rng:attribute name="dr3d:specular-color">
648 <rng:ref name="color"/>
649 </rng:attribute>
650 </rng:optional>
651 <rng:optional>
652 <rng:attribute name="dr3d:diffuse-color">
653 <rng:ref name="color"/>
654 </rng:attribute>
655 </rng:optional>
656 <rng:optional>
657 <rng:attribute name="dr3d:shininess">
658 <rng:ref name="percent"/>
659 </rng:attribute>
660 </rng:optional>
661 <rng:optional>
662 <rng:attribute name="dr3d:shadow">
663 <rng:choice>
664 <rng:value>visible</rng:value>
665 <rng:value>hidden</rng:value>
666 </rng:choice>
667 </rng:attribute>
668 </rng:optional>
669 <rng:ref name="common-draw-rel-size-attlist"/>
670 <rng:optional>
671 <rng:attribute name="fo:min-width">
672 <rng:choice>
673 <rng:ref name="length"/>
674 <rng:ref name="percent"/>
675 </rng:choice>
676 </rng:attribute>
677 </rng:optional>
678 <rng:optional>
679 <rng:attribute name="fo:min-height">
680 <rng:choice>
681 <rng:ref name="length"/>
682 <rng:ref name="percent"/>
683 </rng:choice>
684 </rng:attribute>
685 </rng:optional>
686 <rng:optional>
687 <rng:attribute name="fo:max-height">
688 <rng:choice>
689 <rng:ref name="length"/>
690 <rng:ref name="percent"/>
691 </rng:choice>
692 </rng:attribute>
693 </rng:optional>
694 <rng:optional>
695 <rng:attribute name="fo:max-width">
696 <rng:choice>
697 <rng:ref name="length"/>
698 <rng:ref name="percent"/>
699 </rng:choice>
700 </rng:attribute>
701 </rng:optional>
702 <rng:ref name="common-horizontal-margin-attlist"/>
703 <rng:ref name="common-vertical-margin-attlist"/>
704 <rng:ref name="common-margin-attlist"/>
705 <rng:optional>
706 <rng:attribute name="style:print-content">
707 <rng:ref name="boolean"/>
708 </rng:attribute>
709 </rng:optional>
710 <rng:optional>
711 <rng:attribute name="style:protect">
712 <rng:choice>
713 <rng:value>none</rng:value>
714 <rng:list>
715 <rng:oneOrMore>
716 <rng:choice>
717 <rng:value>content</rng:value>
718 <rng:value>position</rng:value>
719 <rng:value>size</rng:value>
720 </rng:choice>
721 </rng:oneOrMore>
722 </rng:list>
723 </rng:choice>
724 </rng:attribute>
725 </rng:optional>
726 <rng:optional>
727 <rng:attribute name="style:horizontal-pos">
728 <rng:choice>
729 <rng:value>left</rng:value>
730 <rng:value>center</rng:value>
731 <rng:value>right</rng:value>
732 <rng:value>from-left</rng:value>
733 <rng:value>inside</rng:value>
734 <rng:value>outside</rng:value>
735 <rng:value>from-inside</rng:value>
736 </rng:choice>
737 </rng:attribute>
738 </rng:optional>
739 <rng:optional>
740 <rng:attribute name="svg:x">
741 <rng:ref name="coordinate"/>
742 </rng:attribute>
743 </rng:optional>
744 <rng:optional>
745 <rng:attribute name="style:horizontal-rel">
746 <rng:choice>
747 <rng:value>page</rng:value>
748 <rng:value>page-content</rng:value>
749 <rng:value>page-start-margin</rng:value>
750 <rng:value>page-end-margin</rng:value>
751 <rng:value>frame</rng:value>
752 <rng:value>frame-content</rng:value>
753 <rng:value>frame-start-margin</rng:value>
754 <rng:value>frame-end-margin</rng:value>
755 <rng:value>paragraph</rng:value>
756 <rng:value>paragraph-content</rng:value>
757 <rng:value>paragraph-start-margin</rng:value>
758 <rng:value>paragraph-end-margin</rng:value>
759 <rng:value>char</rng:value>
760 </rng:choice>
761 </rng:attribute>
762 </rng:optional>
763 <rng:ref name="common-vertical-pos-attlist"/>
764 <rng:ref name="common-vertical-rel-attlist"/>
765 <rng:ref name="common-text-anchor-attlist"/>
766 <rng:ref name="common-border-attlist"/>
767 <rng:ref name="common-border-line-width-attlist"/>
768 <rng:ref name="common-padding-attlist"/>
769 <rng:ref name="common-shadow-attlist"/>
770 <rng:ref name="common-background-color-attlist"/>
771 <rng:ref name="common-background-transparency-attlist"/>
772 <rng:ref name="common-editable-attlist"/>
773 <rng:optional>
774 <rng:attribute name="style:wrap">
775 <rng:choice>
776 <rng:value>none</rng:value>
777 <rng:value>left</rng:value>
778 <rng:value>right</rng:value>
779 <rng:value>parallel</rng:value>
780 <rng:value>dynamic</rng:value>
781 <rng:value>run-through</rng:value>
782 <rng:value>biggest</rng:value>
783 </rng:choice>
784 </rng:attribute>
785 </rng:optional>
786 <rng:optional>
787 <rng:attribute name="style:wrap-dynamic-threshold">
788 <rng:ref name="nonNegativeLength"/>
789 </rng:attribute>
790 </rng:optional>
791 <rng:optional>
792 <rng:attribute name="style:number-wrapped-paragraphs">
793 <rng:choice>
794 <rng:value>no-limit</rng:value>
795 <rng:ref name="positiveInteger"/>
796 </rng:choice>
797 </rng:attribute>
798 </rng:optional>
799 <rng:optional>
800 <rng:attribute name="style:wrap-contour">
801 <rng:ref name="boolean"/>
802 </rng:attribute>
803 </rng:optional>
804 <rng:optional>
805 <rng:attribute name="style:wrap-contour-mode">
806 <rng:choice>
807 <rng:value>full</rng:value>
808 <rng:value>outside</rng:value>
809 </rng:choice>
810 </rng:attribute>
811 </rng:optional>
812 <rng:optional>
813 <rng:attribute name="style:run-through">
814 <rng:choice>
815 <rng:value>foreground</rng:value>
816 <rng:value>background</rng:value>
817 </rng:choice>
818 </rng:attribute>
819 </rng:optional>
820 <rng:optional>
821 <rng:attribute name="style:flow-with-text">
822 <rng:ref name="boolean"/>
823 </rng:attribute>
824 </rng:optional>
825 <rng:optional>
826 <rng:attribute name="style:overflow-behavior">
827 <rng:choice>
828 <rng:value>clip</rng:value>
829 <rng:value>auto-create-new-frame</rng:value>
830 </rng:choice>
831 </rng:attribute>
832 </rng:optional>
833 <rng:optional>
834 <rng:attribute name="style:mirror">
835 <rng:choice>
836 <rng:value>none</rng:value>
837 <rng:value>vertical</rng:value>
838 <rng:ref name="horizontal-mirror"/>
839 <rng:list>
840 <rng:value>vertical</rng:value>
841 <rng:ref name="horizontal-mirror"/>
842 </rng:list>
843 <rng:list>
844 <rng:ref name="horizontal-mirror"/>
845 <rng:value>vertical</rng:value>
846 </rng:list>
847 </rng:choice>
848 </rng:attribute>
849 </rng:optional>
850 <rng:optional>
851 <rng:attribute name="fo:clip">
852 <rng:choice>
853 <rng:value>auto</rng:value>
854 <rng:ref name="clipShape"/>
855 </rng:choice>
856 </rng:attribute>
857 </rng:optional>
858 <rng:optional>
859 <rng:attribute name="draw:wrap-influence-on-position">
860 <rng:choice>
861 <rng:value>iterative</rng:value>
862 <rng:value>once-concurrent</rng:value>
863 <rng:value>once-successive</rng:value>
864 </rng:choice>
865 </rng:attribute>
866 </rng:optional>
867 <rng:ref name="common-writing-mode-attlist"/>
868 <rng:optional>
869 <rng:attribute name="draw:frame-display-scrollbar">
870 <rng:ref name="boolean"/>
871 </rng:attribute>
872 </rng:optional>
873 <rng:optional>
874 <rng:attribute name="draw:frame-display-border">
875 <rng:ref name="boolean"/>
876 </rng:attribute>
877 </rng:optional>
878 <rng:optional>
879 <rng:attribute name="draw:frame-margin-horizontal">
880 <rng:ref name="nonNegativePixelLength"/>
881 </rng:attribute>
882 </rng:optional>
883 <rng:optional>
884 <rng:attribute name="draw:frame-margin-vertical">
885 <rng:ref name="nonNegativePixelLength"/>
886 </rng:attribute>
887 </rng:optional>
888 <rng:optional>
889 <rng:attribute name="draw:visible-area-left">
890 <rng:ref name="nonNegativeLength"/>
891 </rng:attribute>
892 </rng:optional>
893 <rng:optional>
894 <rng:attribute name="draw:visible-area-top">
895 <rng:ref name="nonNegativeLength"/>
896 </rng:attribute>
897 </rng:optional>
898 <rng:optional>
899 <rng:attribute name="draw:visible-area-width">
900 <rng:ref name="positiveLength"/>
901 </rng:attribute>
902 </rng:optional>
903 <rng:optional>
904 <rng:attribute name="draw:visible-area-height">
905 <rng:ref name="positiveLength"/>
906 </rng:attribute>
907 </rng:optional>
908 <rng:optional>
909 <rng:attribute name="draw:draw-aspect">
910 <rng:choice>
911 <rng:value>content</rng:value>
912 <rng:value>thumbnail</rng:value>
913 <rng:value>icon</rng:value>
914 <rng:value>print-view</rng:value>
915 </rng:choice>
916 </rng:attribute>
917 </rng:optional>
918 <rng:optional>
919 <rng:attribute name="draw:ole-draw-aspect">
920 <rng:ref name="nonNegativeInteger"/>
921 </rng:attribute>
922 </rng:optional>
923 <!-- https://issues.oasis-open.org/browse/OFFICE-4047 -->
924 <rng:optional>
925 <rng:attribute name="loext:allow-overlap">
926 <rng:ref name="boolean"/>
927 </rng:attribute>
928 </rng:optional>
929 <!-- TODO: no proposal for loext:glow* -->
930 <rng:optional>
931 <rng:attribute name="loext:glow-radius">
932 <rng:ref name="length"/>
933 </rng:attribute>
934 </rng:optional>
935 <rng:optional>
936 <rng:attribute name="loext:glow-color">
937 <rng:ref name="color"/>
938 </rng:attribute>
939 </rng:optional>
940 <rng:optional>
941 <rng:attribute name="loext:glow-transparency">
942 <rng:ref name="zeroToHundredPercent"/>
943 </rng:attribute>
944 </rng:optional>
945 <!-- TODO: no proposal for loext:softedge-radius -->
946 <rng:optional>
947 <rng:attribute name="loext:softedge-radius">
948 <rng:ref name="length"/>
949 </rng:attribute>
950 </rng:optional>
951 </rng:interleave>
952 </rng:define>
954 <rng:define name="draw-text">
955 <rng:zeroOrMore>
956 <rng:choice>
957 <rng:ref name="text-p"/>
958 <rng:ref name="text-list"/>
959 <!-- https://issues.oasis-open.org/browse/OFFICE-3761 -->
960 <rng:ref name="loext-table"/>
961 </rng:choice>
962 </rng:zeroOrMore>
963 </rng:define>
965 <rng:define name="office-annotation-attlist" combine="interleave">
966 <rng:interleave>
967 <rng:optional>
968 <rng:attribute name="office:display">
969 <rng:ref name="boolean"/>
970 </rng:attribute>
971 </rng:optional>
972 <rng:optional>
973 <rng:ref name="common-office-annotation-name-attlist"/>
974 </rng:optional>
975 <rng:optional>
976 <rng:attribute name="loext:resolved">
977 <rng:ref name="boolean"/>
978 </rng:attribute>
979 </rng:optional>
980 </rng:interleave>
981 </rng:define>
983 <rng:define name="style-style-content">
984 <rng:choice>
985 <rng:group>
986 <rng:attribute name="style:family">
987 <rng:value>text</rng:value>
988 </rng:attribute>
989 <rng:optional>
990 <rng:ref name="style-text-properties"/>
991 </rng:optional>
992 </rng:group>
993 <rng:group>
994 <rng:attribute name="style:family">
995 <rng:value>paragraph</rng:value>
996 </rng:attribute>
997 <!-- TODO no proposal -->
998 <rng:optional>
999 <rng:ref name="loext-graphic-properties"/>
1000 </rng:optional>
1001 <rng:optional>
1002 <rng:ref name="style-paragraph-properties"/>
1003 </rng:optional>
1004 <rng:optional>
1005 <rng:ref name="style-text-properties"/>
1006 </rng:optional>
1007 </rng:group>
1008 <rng:group>
1009 <rng:attribute name="style:family">
1010 <rng:value>section</rng:value>
1011 </rng:attribute>
1012 <rng:optional>
1013 <rng:ref name="style-section-properties"/>
1014 </rng:optional>
1015 </rng:group>
1016 <rng:group>
1017 <rng:attribute name="style:family">
1018 <rng:value>ruby</rng:value>
1019 </rng:attribute>
1020 <rng:optional>
1021 <rng:ref name="style-ruby-properties"/>
1022 </rng:optional>
1023 </rng:group>
1024 <rng:group>
1025 <rng:attribute name="style:family">
1026 <rng:value>table</rng:value>
1027 </rng:attribute>
1028 <rng:optional>
1029 <rng:ref name="style-table-properties"/>
1030 </rng:optional>
1031 </rng:group>
1032 <rng:group>
1033 <rng:attribute name="style:family">
1034 <rng:value>table-column</rng:value>
1035 </rng:attribute>
1036 <rng:optional>
1037 <rng:ref name="style-table-column-properties"/>
1038 </rng:optional>
1039 </rng:group>
1040 <rng:group>
1041 <rng:attribute name="style:family">
1042 <rng:value>table-row</rng:value>
1043 </rng:attribute>
1044 <rng:optional>
1045 <rng:ref name="style-table-row-properties"/>
1046 </rng:optional>
1047 </rng:group>
1048 <rng:group>
1049 <rng:attribute name="style:family">
1050 <rng:value>table-cell</rng:value>
1051 </rng:attribute>
1052 <!-- TODO no proposal -->
1053 <rng:optional>
1054 <rng:ref name="loext-graphic-properties"/>
1055 </rng:optional>
1056 <rng:optional>
1057 <rng:ref name="style-table-cell-properties"/>
1058 </rng:optional>
1059 <rng:optional>
1060 <rng:ref name="style-paragraph-properties"/>
1061 </rng:optional>
1062 <rng:optional>
1063 <rng:ref name="style-text-properties"/>
1064 </rng:optional>
1065 </rng:group>
1066 <rng:group>
1067 <rng:attribute name="style:family">
1068 <rng:choice>
1069 <rng:value>graphic</rng:value>
1070 <rng:value>presentation</rng:value>
1071 </rng:choice>
1072 </rng:attribute>
1073 <rng:optional>
1074 <rng:ref name="style-graphic-properties"/>
1075 </rng:optional>
1076 <rng:optional>
1077 <rng:ref name="style-paragraph-properties"/>
1078 </rng:optional>
1079 <rng:optional>
1080 <rng:ref name="style-text-properties"/>
1081 </rng:optional>
1082 </rng:group>
1083 <rng:group>
1084 <rng:attribute name="style:family">
1085 <rng:value>drawing-page</rng:value>
1086 </rng:attribute>
1087 <rng:optional>
1088 <rng:ref name="style-drawing-page-properties"/>
1089 </rng:optional>
1090 </rng:group>
1091 <rng:group>
1092 <rng:attribute name="style:family">
1093 <rng:value>chart</rng:value>
1094 </rng:attribute>
1095 <rng:optional>
1096 <rng:ref name="style-chart-properties"/>
1097 </rng:optional>
1098 <rng:optional>
1099 <rng:ref name="style-graphic-properties"/>
1100 </rng:optional>
1101 <rng:optional>
1102 <rng:ref name="style-paragraph-properties"/>
1103 </rng:optional>
1104 <rng:optional>
1105 <rng:ref name="style-text-properties"/>
1106 </rng:optional>
1107 </rng:group>
1108 </rng:choice>
1109 </rng:define>
1111 <rng:define name="table-table-template">
1112 <rng:element name="table:table-template">
1113 <rng:ref name="table-table-template-attlist"/>
1114 <rng:optional>
1115 <rng:ref name="table-first-row"/>
1116 </rng:optional>
1117 <rng:optional>
1118 <rng:ref name="table-last-row"/>
1119 </rng:optional>
1120 <rng:optional>
1121 <rng:ref name="table-first-column"/>
1122 </rng:optional>
1123 <rng:optional>
1124 <rng:ref name="table-last-column"/>
1125 </rng:optional>
1126 <rng:ref name="table-body"/>
1127 <rng:optional>
1128 <rng:ref name="table-even-rows"/>
1129 </rng:optional>
1130 <rng:optional>
1131 <rng:ref name="table-odd-rows"/>
1132 </rng:optional>
1133 <rng:optional>
1134 <rng:ref name="table-even-columns"/>
1135 </rng:optional>
1136 <rng:optional>
1137 <rng:ref name="table-odd-columns"/>
1138 </rng:optional>
1139 <rng:optional>
1140 <rng:ref name="table-background"/>
1141 </rng:optional>
1143 <!-- TODO no proposal -->
1144 <rng:optional>
1145 <rng:ref name="table-first-row-even-column"/>
1146 </rng:optional>
1147 <rng:optional>
1148 <rng:ref name="table-last-row-even-column"/>
1149 </rng:optional>
1150 <rng:optional>
1151 <rng:ref name="table-first-row-end-column"/>
1152 </rng:optional>
1153 <rng:optional>
1154 <rng:ref name="table-first-row-start-column"/>
1155 </rng:optional>
1156 <rng:optional>
1157 <rng:ref name="table-last-row-end-column"/>
1158 </rng:optional>
1159 <rng:optional>
1160 <rng:ref name="table-last-row-start-column"/>
1161 </rng:optional>
1163 </rng:element>
1164 </rng:define>
1166 <rng:define name="draw-frame">
1167 <rng:element name="draw:frame">
1168 <rng:ref name="common-draw-shape-with-text-and-styles-attlist"/>
1169 <rng:ref name="common-draw-position-attlist"/>
1170 <rng:ref name="common-draw-rel-size-attlist"/>
1171 <rng:ref name="common-draw-caption-id-attlist"/>
1172 <rng:ref name="presentation-shape-attlist"/>
1173 <rng:ref name="draw-frame-attlist"/>
1174 <rng:zeroOrMore>
1175 <rng:choice>
1176 <rng:ref name="draw-text-box"/>
1177 <rng:ref name="draw-image"/>
1178 <rng:ref name="draw-object"/>
1179 <rng:ref name="draw-object-ole"/>
1180 <rng:ref name="draw-applet"/>
1181 <rng:ref name="draw-floating-frame"/>
1182 <rng:ref name="draw-plugin"/>
1183 <rng:ref name="table-table"/>
1184 </rng:choice>
1185 </rng:zeroOrMore>
1186 <rng:optional>
1187 <rng:ref name="office-event-listeners"/>
1188 </rng:optional>
1189 <rng:zeroOrMore>
1190 <rng:ref name="draw-glue-point"/>
1191 </rng:zeroOrMore>
1192 <rng:optional>
1193 <rng:ref name="draw-image-map"/>
1194 </rng:optional>
1195 <rng:optional>
1196 <rng:ref name="svg-title"/>
1197 </rng:optional>
1198 <rng:optional>
1199 <rng:ref name="svg-desc"/>
1200 </rng:optional>
1201 <rng:optional>
1202 <rng:choice>
1203 <rng:ref name="draw-contour-polygon"/>
1204 <rng:ref name="draw-contour-path"/>
1205 </rng:choice>
1206 </rng:optional>
1208 <!-- TODO no proposal -->
1209 <rng:optional>
1210 <rng:ref name="loext-signatureline"/>
1211 </rng:optional>
1212 <rng:optional>
1213 <rng:ref name="loext-qrcode"/>
1214 </rng:optional>
1216 </rng:element>
1217 </rng:define>
1219 <rng:define name="common-value-and-type-attlist">
1220 <rng:choice>
1221 <rng:group>
1222 <rng:attribute name="office:value-type">
1223 <rng:value>float</rng:value>
1224 </rng:attribute>
1225 <rng:optional>
1226 <rng:attribute name="calcext:value-type">
1227 <rng:value>float</rng:value>
1228 </rng:attribute>
1229 </rng:optional>
1230 <rng:attribute name="office:value">
1231 <rng:ref name="double"/>
1232 </rng:attribute>
1233 </rng:group>
1234 <rng:group>
1235 <rng:attribute name="office:value-type">
1236 <rng:value>percentage</rng:value>
1237 </rng:attribute>
1238 <rng:optional>
1239 <rng:attribute name="calcext:value-type">
1240 <rng:value>percentage</rng:value>
1241 </rng:attribute>
1242 </rng:optional>
1243 <rng:attribute name="office:value">
1244 <rng:ref name="double"/>
1245 </rng:attribute>
1246 </rng:group>
1247 <rng:group>
1248 <rng:attribute name="office:value-type">
1249 <rng:value>currency</rng:value>
1250 </rng:attribute>
1251 <rng:optional>
1252 <rng:attribute name="calcext:value-type">
1253 <rng:value>currency</rng:value>
1254 </rng:attribute>
1255 </rng:optional>
1256 <rng:attribute name="office:value">
1257 <rng:ref name="double"/>
1258 </rng:attribute>
1259 <rng:optional>
1260 <rng:attribute name="office:currency">
1261 <rng:ref name="string"/>
1262 </rng:attribute>
1263 </rng:optional>
1264 </rng:group>
1265 <rng:group>
1266 <rng:attribute name="office:value-type">
1267 <rng:value>date</rng:value>
1268 </rng:attribute>
1269 <rng:optional>
1270 <rng:attribute name="calcext:value-type">
1271 <rng:value>date</rng:value>
1272 </rng:attribute>
1273 </rng:optional>
1274 <rng:attribute name="office:date-value">
1275 <rng:ref name="dateOrDateTime"/>
1276 </rng:attribute>
1277 </rng:group>
1278 <rng:group>
1279 <rng:attribute name="office:value-type">
1280 <rng:value>time</rng:value>
1281 </rng:attribute>
1282 <rng:optional>
1283 <rng:attribute name="calcext:value-type">
1284 <rng:value>time</rng:value>
1285 </rng:attribute>
1286 </rng:optional>
1287 <rng:attribute name="office:time-value">
1288 <rng:ref name="duration"/>
1289 </rng:attribute>
1290 </rng:group>
1291 <rng:group>
1292 <rng:attribute name="office:value-type">
1293 <rng:value>boolean</rng:value>
1294 </rng:attribute>
1295 <rng:optional>
1296 <rng:attribute name="calcext:value-type">
1297 <rng:value>boolean</rng:value>
1298 </rng:attribute>
1299 </rng:optional>
1300 <rng:attribute name="office:boolean-value">
1301 <rng:ref name="boolean"/>
1302 </rng:attribute>
1303 </rng:group>
1304 <rng:group>
1305 <rng:attribute name="office:value-type">
1306 <rng:value>string</rng:value>
1307 </rng:attribute>
1308 <rng:optional>
1309 <!-- OFFICE-3759 -->
1310 <rng:attribute name="calcext:value-type">
1311 <rng:choice>
1312 <rng:value>string</rng:value>
1313 <rng:value>error</rng:value>
1314 </rng:choice>
1315 </rng:attribute>
1316 </rng:optional>
1317 <rng:optional>
1318 <rng:attribute name="office:string-value">
1319 <rng:ref name="string"/>
1320 </rng:attribute>
1321 </rng:optional>
1322 </rng:group>
1323 </rng:choice>
1324 </rng:define>
1326 <rng:define name="chart-chart">
1327 <rng:element name="chart:chart">
1328 <rng:ref name="chart-chart-attlist"/>
1329 <rng:optional>
1330 <rng:ref name="chart-title"/>
1331 </rng:optional>
1332 <rng:optional>
1333 <rng:ref name="chart-subtitle"/>
1334 </rng:optional>
1335 <rng:optional>
1336 <rng:ref name="chart-footer"/>
1337 </rng:optional>
1338 <rng:optional>
1339 <rng:ref name="chart-legend"/>
1340 </rng:optional>
1341 <!-- Chart Data Table - TODO no proposal -->
1342 <rng:optional>
1343 <rng:ref name="chart-data-table"/>
1344 </rng:optional>
1345 <rng:ref name="chart-plot-area"/>
1346 <rng:zeroOrMore>
1347 <rng:ref name="shape"/>
1348 </rng:zeroOrMore>
1349 <!-- https://issues.oasis-open.org/browse/OFFICE-2123 -->
1350 <rng:optional>
1351 <rng:ref name="table-table"/>
1352 </rng:optional>
1353 </rng:element>
1354 </rng:define>
1356 <rng:define name="chart-axis">
1357 <rng:element name="chart:axis">
1358 <rng:ref name="chart-axis-attlist"/>
1359 <!-- OFFICE-2119 -->
1360 <rng:optional>
1361 <rng:choice>
1362 <rng:group>
1363 <rng:attribute name="chartooo:axis-type">
1364 <rng:value>auto</rng:value>
1365 </rng:attribute>
1366 <rng:optional>
1367 <rng:ref name="chartooo-date-scale"/>
1368 </rng:optional>
1369 </rng:group>
1370 <rng:group>
1371 <rng:attribute name="chartooo:axis-type">
1372 <rng:value>date</rng:value>
1373 </rng:attribute>
1374 <rng:ref name="chartooo-date-scale"/>
1375 </rng:group>
1376 <rng:group>
1377 <rng:attribute name="chartooo:axis-type">
1378 <rng:value>text</rng:value>
1379 </rng:attribute>
1380 </rng:group>
1381 </rng:choice>
1382 </rng:optional>
1383 <rng:optional>
1384 <rng:ref name="chart-title"/>
1385 </rng:optional>
1386 <rng:optional>
1387 <rng:ref name="chart-categories"/>
1388 </rng:optional>
1389 <rng:zeroOrMore>
1390 <rng:ref name="chart-grid"/>
1391 </rng:zeroOrMore>
1392 </rng:element>
1393 </rng:define>
1395 <rng:define name="table-table">
1396 <rng:element name="table:table">
1397 <rng:ref name="table-table-attlist"/>
1398 <rng:optional>
1399 <rng:ref name="table-title"/>
1400 </rng:optional>
1401 <rng:optional>
1402 <rng:ref name="table-desc"/>
1403 </rng:optional>
1404 <!-- TODO add to proposal, OFFICE-2112 -->
1405 <rng:optional>
1406 <rng:ref name="table-table-protection"/>
1407 </rng:optional>
1408 <rng:optional>
1409 <rng:ref name="table-table-source"/>
1410 </rng:optional>
1411 <rng:optional>
1412 <rng:ref name="office-dde-source"/>
1413 </rng:optional>
1414 <rng:optional>
1415 <rng:ref name="table-scenario"/>
1416 </rng:optional>
1417 <rng:optional>
1418 <rng:ref name="office-forms"/>
1419 </rng:optional>
1420 <rng:optional>
1421 <rng:ref name="table-shapes"/>
1422 </rng:optional>
1423 <rng:ref name="table-columns-and-groups"/>
1424 <rng:ref name="table-rows-and-groups"/>
1425 <rng:optional>
1426 <rng:ref name="table-named-expressions"/>
1427 </rng:optional>
1428 <!-- TODO no proposal, this is wild guessing, OFFICE-3785 -->
1429 <rng:optional>
1430 <rng:element name="calcext:conditional-formats">
1431 <rng:oneOrMore>
1432 <rng:element name="calcext:conditional-format">
1433 <rng:attribute name="calcext:target-range-address">
1434 <rng:ref name="cellRangeAddress"/>
1435 </rng:attribute>
1436 <rng:choice>
1437 <rng:oneOrMore>
1438 <rng:element name="calcext:condition">
1439 <rng:attribute name="calcext:apply-style-name">
1440 <rng:ref name="styleNameRef"/>
1441 </rng:attribute>
1442 <rng:attribute name="calcext:value">
1443 <rng:ref name="string"/>
1444 </rng:attribute>
1445 <rng:attribute name="calcext:base-cell-address">
1446 <rng:ref name="cellAddress"/>
1447 </rng:attribute>
1448 </rng:element>
1449 </rng:oneOrMore>
1450 <rng:element name="calcext:data-bar">
1451 <rng:attribute name="calcext:max-length">
1452 <rng:ref name="string"/>
1453 </rng:attribute>
1454 <rng:attribute name="calcext:negative-color">
1455 <rng:ref name="color"/>
1456 </rng:attribute>
1457 <rng:attribute name="calcext:positive-color">
1458 <rng:ref name="color"/>
1459 </rng:attribute>
1460 <rng:attribute name="calcext:axis-color">
1461 <rng:ref name="color"/>
1462 </rng:attribute>
1463 <rng:optional>
1464 <rng:attribute name="calcext:axis-position">
1465 <rng:choice>
1466 <rng:value>middle</rng:value>
1467 </rng:choice>
1468 </rng:attribute>
1469 </rng:optional>
1470 <rng:element name="calcext:formatting-entry">
1471 <rng:attribute name="calcext:value">
1472 <rng:ref name="string"/>
1473 </rng:attribute>
1474 <rng:attribute name="calcext:type">
1475 <rng:choice>
1476 <rng:value>auto-minimum</rng:value>
1477 <rng:value>auto-maximum</rng:value>
1478 <rng:value>minimum</rng:value>
1479 <rng:value>maximum</rng:value>
1480 <rng:value>percent</rng:value>
1481 <rng:value>percentile</rng:value>
1482 <rng:value>number</rng:value>
1483 <rng:value>formula</rng:value>
1484 </rng:choice>
1485 </rng:attribute>
1486 </rng:element>
1487 <rng:element name="calcext:formatting-entry">
1488 <rng:attribute name="calcext:value">
1489 <rng:ref name="string"/>
1490 </rng:attribute>
1491 <rng:attribute name="calcext:type">
1492 <rng:choice>
1493 <rng:value>auto-minimum</rng:value>
1494 <rng:value>auto-maximum</rng:value>
1495 <rng:value>minimum</rng:value>
1496 <rng:value>maximum</rng:value>
1497 <rng:value>percent</rng:value>
1498 <rng:value>percentile</rng:value>
1499 <rng:value>number</rng:value>
1500 <rng:value>formula</rng:value>
1501 </rng:choice>
1502 </rng:attribute>
1503 </rng:element>
1504 </rng:element>
1505 <rng:element name="calcext:color-scale">
1506 <rng:element name="calcext:color-scale-entry">
1507 <rng:attribute name="calcext:value">
1508 <rng:ref name="string"/>
1509 </rng:attribute>
1510 <rng:attribute name="calcext:type">
1511 <rng:choice>
1512 <rng:value>minimum</rng:value>
1513 <rng:value>maximum</rng:value>
1514 <rng:value>percent</rng:value>
1515 <rng:value>percentile</rng:value>
1516 <rng:value>number</rng:value>
1517 <rng:value>formula</rng:value>
1518 </rng:choice>
1519 </rng:attribute>
1520 <rng:attribute name="calcext:color">
1521 <rng:ref name="color"/>
1522 </rng:attribute>
1523 </rng:element>
1524 <rng:element name="calcext:color-scale-entry">
1525 <rng:attribute name="calcext:value">
1526 <rng:ref name="string"/>
1527 </rng:attribute>
1528 <rng:attribute name="calcext:type">
1529 <rng:choice>
1530 <rng:value>minimum</rng:value>
1531 <rng:value>maximum</rng:value>
1532 <rng:value>percent</rng:value>
1533 <rng:value>percentile</rng:value>
1534 <rng:value>number</rng:value>
1535 <rng:value>formula</rng:value>
1536 </rng:choice>
1537 </rng:attribute>
1538 <rng:attribute name="calcext:color">
1539 <rng:ref name="color"/>
1540 </rng:attribute>
1541 </rng:element>
1542 <rng:optional>
1543 <rng:element name="calcext:color-scale-entry">
1544 <rng:attribute name="calcext:value">
1545 <rng:ref name="string"/>
1546 </rng:attribute>
1547 <rng:attribute name="calcext:type">
1548 <rng:choice>
1549 <rng:value>minimum</rng:value>
1550 <rng:value>maximum</rng:value>
1551 <rng:value>percent</rng:value>
1552 <rng:value>percentile</rng:value>
1553 <rng:value>number</rng:value>
1554 <rng:value>formula</rng:value>
1555 </rng:choice>
1556 </rng:attribute>
1557 <rng:attribute name="calcext:color">
1558 <rng:ref name="color"/>
1559 </rng:attribute>
1560 </rng:element>
1561 </rng:optional>
1562 </rng:element>
1563 </rng:choice>
1564 </rng:element>
1565 </rng:oneOrMore>
1566 </rng:element>
1567 </rng:optional>
1568 <!-- Sparklines-->
1569 <rng:optional>
1570 <rng:element name="calcext:sparkline-groups">
1571 <rng:oneOrMore>
1572 <rng:element name="calcext:sparkline-group">
1573 <rng:attribute name="calcext:id">
1574 <rng:ref name="string"/>
1575 </rng:attribute>
1576 <rng:optional>
1577 <rng:attribute name="calcext:type">
1578 <rng:choice>
1579 <rng:value>line</rng:value>
1580 <rng:value>column</rng:value>
1581 <rng:value>stacked</rng:value>
1582 </rng:choice>
1583 </rng:attribute>
1584 </rng:optional>
1585 <rng:optional>
1586 <rng:attribute name="calcext:line-width">
1587 <rng:ref name="length"/>
1588 </rng:attribute>
1589 </rng:optional>
1590 <rng:optional>
1591 <rng:attribute name="calcext:date-axis">
1592 <rng:ref name="boolean"/>
1593 </rng:attribute>
1594 </rng:optional>
1595 <rng:optional>
1596 <rng:attribute name="calcext:display-empty-cells-as">
1597 <rng:choice>
1598 <rng:value>zero</rng:value>
1599 <rng:value>gap</rng:value>
1600 <rng:value>span</rng:value>
1601 </rng:choice>
1602 </rng:attribute>
1603 </rng:optional>
1604 <rng:optional>
1605 <rng:attribute name="calcext:markers">
1606 <rng:ref name="boolean"/>
1607 </rng:attribute>
1608 </rng:optional>
1609 <rng:optional>
1610 <rng:attribute name="calcext:high">
1611 <rng:ref name="boolean"/>
1612 </rng:attribute>
1613 </rng:optional>
1614 <rng:optional>
1615 <rng:attribute name="calcext:low">
1616 <rng:ref name="boolean"/>
1617 </rng:attribute>
1618 </rng:optional>
1619 <rng:optional>
1620 <rng:attribute name="calcext:first">
1621 <rng:ref name="boolean"/>
1622 </rng:attribute>
1623 </rng:optional>
1624 <rng:optional>
1625 <rng:attribute name="calcext:last">
1626 <rng:ref name="boolean"/>
1627 </rng:attribute>
1628 </rng:optional>
1629 <rng:optional>
1630 <rng:attribute name="calcext:negative">
1631 <rng:ref name="boolean"/>
1632 </rng:attribute>
1633 </rng:optional>
1634 <rng:optional>
1635 <rng:attribute name="calcext:display-x-axis">
1636 <rng:ref name="boolean"/>
1637 </rng:attribute>
1638 </rng:optional>
1639 <rng:optional>
1640 <rng:attribute name="calcext:display-hidden">
1641 <rng:ref name="boolean"/>
1642 </rng:attribute>
1643 </rng:optional>
1644 <rng:optional>
1645 <rng:attribute name="calcext:min-axis-type">
1646 <rng:choice>
1647 <rng:value>individual</rng:value>
1648 <rng:value>group</rng:value>
1649 <rng:value>custom</rng:value>
1650 </rng:choice>
1651 </rng:attribute>
1652 </rng:optional>
1653 <rng:optional>
1654 <rng:attribute name="calcext:max-axis-type">
1655 <rng:choice>
1656 <rng:value>individual</rng:value>
1657 <rng:value>group</rng:value>
1658 <rng:value>custom</rng:value>
1659 </rng:choice>
1660 </rng:attribute>
1661 </rng:optional>
1662 <rng:optional>
1663 <rng:attribute name="calcext:right-to-left">
1664 <rng:ref name="boolean"/>
1665 </rng:attribute>
1666 </rng:optional>
1667 <rng:optional>
1668 <rng:attribute name="calcext:manual-max">
1669 <rng:ref name="double"/>
1670 </rng:attribute>
1671 </rng:optional>
1672 <rng:optional>
1673 <rng:attribute name="calcext:manual-min">
1674 <rng:ref name="double"/>
1675 </rng:attribute>
1676 </rng:optional>
1677 <rng:optional>
1678 <rng:attribute name="calcext:color-series">
1679 <rng:ref name="color"/>
1680 </rng:attribute>
1681 </rng:optional>
1682 <rng:optional>
1683 <rng:attribute name="calcext:color-negative">
1684 <rng:ref name="color"/>
1685 </rng:attribute>
1686 </rng:optional>
1687 <rng:optional>
1688 <rng:attribute name="calcext:color-axis">
1689 <rng:ref name="color"/>
1690 </rng:attribute>
1691 </rng:optional>
1692 <rng:optional>
1693 <rng:attribute name="calcext:color-markers">
1694 <rng:ref name="color"/>
1695 </rng:attribute>
1696 </rng:optional>
1697 <rng:optional>
1698 <rng:attribute name="calcext:color-first">
1699 <rng:ref name="color"/>
1700 </rng:attribute>
1701 </rng:optional>
1702 <rng:optional>
1703 <rng:attribute name="calcext:color-last">
1704 <rng:ref name="color"/>
1705 </rng:attribute>
1706 </rng:optional>
1707 <rng:optional>
1708 <rng:attribute name="calcext:color-high">
1709 <rng:ref name="color"/>
1710 </rng:attribute>
1711 </rng:optional>
1712 <rng:optional>
1713 <rng:attribute name="calcext:color-low">
1714 <rng:ref name="color"/>
1715 </rng:attribute>
1716 </rng:optional>
1717 <rng:element name="calcext:sparklines">
1718 <rng:oneOrMore>
1719 <rng:element name="calcext:sparkline">
1720 <rng:attribute name="calcext:cell-address">
1721 <rng:ref name="cellAddress"/>
1722 </rng:attribute>
1723 <rng:attribute name="calcext:data-range">
1724 <rng:ref name="cellRangeAddressList"/>
1725 </rng:attribute>
1726 </rng:element>
1727 </rng:oneOrMore>
1728 </rng:element>
1729 </rng:element>
1730 </rng:oneOrMore>
1731 </rng:element>
1732 </rng:optional>
1733 </rng:element>
1734 </rng:define>
1736 <!-- TODO no proposal -->
1737 <rng:define name="draw-object">
1738 <rng:element name="draw:object">
1739 <rng:ref name="draw-object-attlist"/>
1740 <rng:ref name="loext-text"/>
1741 <rng:choice>
1742 <rng:ref name="common-draw-data-attlist"/>
1743 <rng:ref name="office-document"/>
1744 <rng:ref name="math-math"/>
1745 </rng:choice>
1746 </rng:element>
1747 </rng:define>
1748 <rng:define name="draw-object-ole">
1749 <rng:element name="draw:object-ole">
1750 <rng:ref name="draw-object-ole-attlist"/>
1751 <rng:ref name="loext-text"/>
1752 <rng:choice>
1753 <rng:ref name="common-draw-data-attlist"/>
1754 <rng:ref name="office-binary-data"/>
1755 </rng:choice>
1756 </rng:element>
1757 </rng:define>
1759 <!-- FIXME: one test exports 250 here, which is probably a bug -->
1760 <rng:define name="fontWeight">
1761 <rng:choice>
1762 <rng:value>normal</rng:value>
1763 <rng:value>bold</rng:value>
1764 <rng:value>100</rng:value>
1765 <rng:value>200</rng:value>
1766 <rng:value>250</rng:value>
1767 <rng:value>300</rng:value>
1768 <rng:value>400</rng:value>
1769 <rng:value>500</rng:value>
1770 <rng:value>600</rng:value>
1771 <rng:value>700</rng:value>
1772 <rng:value>800</rng:value>
1773 <rng:value>900</rng:value>
1774 </rng:choice>
1775 </rng:define>
1777 <rng:define name="style-graphic-fill-properties-attlist">
1778 <rng:interleave>
1779 <rng:optional>
1780 <rng:attribute name="draw:fill">
1781 <rng:choice>
1782 <rng:value>none</rng:value>
1783 <rng:value>solid</rng:value>
1784 <rng:value>bitmap</rng:value>
1785 <rng:value>gradient</rng:value>
1786 <rng:value>hatch</rng:value>
1787 </rng:choice>
1788 </rng:attribute>
1789 </rng:optional>
1790 <!-- TODO no proposal for fill-use-slide-background - should perhaps be added as draw:fill value -->
1791 <rng:optional>
1792 <rng:attribute name="loext:fill-use-slide-background">
1793 <rng:ref name="boolean"/>
1794 </rng:attribute>
1795 </rng:optional>
1796 <rng:optional>
1797 <rng:attribute name="draw:fill-color">
1798 <rng:ref name="color"/>
1799 </rng:attribute>
1800 </rng:optional>
1801 <rng:optional>
1802 <rng:attribute name="draw:secondary-fill-color">
1803 <rng:ref name="color"/>
1804 </rng:attribute>
1805 </rng:optional>
1806 <rng:optional>
1807 <rng:attribute name="draw:fill-gradient-name">
1808 <rng:ref name="styleNameRef"/>
1809 </rng:attribute>
1810 </rng:optional>
1811 <rng:optional>
1812 <rng:attribute name="draw:gradient-step-count">
1813 <rng:ref name="nonNegativeInteger"/>
1814 </rng:attribute>
1815 </rng:optional>
1816 <rng:optional>
1817 <rng:attribute name="draw:fill-hatch-name">
1818 <rng:ref name="styleNameRef"/>
1819 </rng:attribute>
1820 </rng:optional>
1821 <rng:optional>
1822 <rng:attribute name="draw:fill-hatch-solid">
1823 <rng:ref name="boolean"/>
1824 </rng:attribute>
1825 </rng:optional>
1826 <rng:optional>
1827 <rng:attribute name="draw:fill-image-name">
1828 <rng:ref name="styleNameRef"/>
1829 </rng:attribute>
1830 </rng:optional>
1831 <rng:optional>
1832 <rng:attribute name="style:repeat">
1833 <rng:choice>
1834 <rng:value>no-repeat</rng:value>
1835 <rng:value>repeat</rng:value>
1836 <rng:value>stretch</rng:value>
1837 <!-- OFFICE-4106 7a5d79f2297a43d0a854e304b0792164272edfe0 in xmloff/source/forms/formenums.cxx -->
1838 <rng:value>scale</rng:value>
1839 </rng:choice>
1840 </rng:attribute>
1841 </rng:optional>
1842 <rng:optional>
1843 <rng:attribute name="draw:fill-image-width">
1844 <rng:choice>
1845 <rng:ref name="length"/>
1846 <rng:ref name="percent"/>
1847 </rng:choice>
1848 </rng:attribute>
1849 </rng:optional>
1850 <rng:optional>
1851 <rng:attribute name="draw:fill-image-height">
1852 <rng:choice>
1853 <rng:ref name="length"/>
1854 <rng:ref name="percent"/>
1855 </rng:choice>
1856 </rng:attribute>
1857 </rng:optional>
1858 <rng:optional>
1859 <rng:attribute name="draw:fill-image-ref-point-x">
1860 <rng:ref name="percent"/>
1861 </rng:attribute>
1862 </rng:optional>
1863 <rng:optional>
1864 <rng:attribute name="draw:fill-image-ref-point-y">
1865 <rng:ref name="percent"/>
1866 </rng:attribute>
1867 </rng:optional>
1868 <rng:optional>
1869 <rng:attribute name="draw:fill-image-ref-point">
1870 <rng:choice>
1871 <rng:value>top-left</rng:value>
1872 <rng:value>top</rng:value>
1873 <rng:value>top-right</rng:value>
1874 <rng:value>left</rng:value>
1875 <rng:value>center</rng:value>
1876 <rng:value>right</rng:value>
1877 <rng:value>bottom-left</rng:value>
1878 <rng:value>bottom</rng:value>
1879 <rng:value>bottom-right</rng:value>
1880 </rng:choice>
1881 </rng:attribute>
1882 </rng:optional>
1883 <rng:optional>
1884 <rng:attribute name="draw:tile-repeat-offset">
1885 <rng:list>
1886 <rng:ref name="zeroToHundredPercent"/>
1887 <rng:choice>
1888 <rng:value>horizontal</rng:value>
1889 <rng:value>vertical</rng:value>
1890 </rng:choice>
1891 </rng:list>
1892 </rng:attribute>
1893 </rng:optional>
1894 <rng:optional>
1895 <rng:attribute name="draw:opacity">
1896 <rng:ref name="zeroToHundredPercent"/>
1897 </rng:attribute>
1898 </rng:optional>
1899 <rng:optional>
1900 <rng:attribute name="draw:opacity-name">
1901 <rng:ref name="styleNameRef"/>
1902 </rng:attribute>
1903 </rng:optional>
1904 <rng:optional>
1905 <rng:attribute name="svg:fill-rule">
1906 <rng:choice>
1907 <rng:value>nonzero</rng:value>
1908 <rng:value>evenodd</rng:value>
1909 </rng:choice>
1910 </rng:attribute>
1911 </rng:optional>
1912 </rng:interleave>
1913 </rng:define>
1915 <!-- TODO no proposal -->
1916 <rng:define name="text-illustration-index-source">
1917 <rng:element name="text:illustration-index-source">
1918 <rng:ref name="text-illustration-index-source-attrs"/>
1919 <rng:optional>
1920 <rng:ref name="text-index-title-template"/>
1921 </rng:optional>
1922 <rng:optional>
1923 <rng:ref name="text-illustration-index-entry-template"/>
1924 </rng:optional>
1925 <rng:optional>
1926 <!-- <rng:ref name="text-index-source-style"/> -->
1927 <rng:element name="loext:index-source-style">
1928 <rng:attribute name="text:style-name">
1929 <rng:ref name="styleNameRef"/>
1930 </rng:attribute>
1931 <rng:empty/>
1932 </rng:element>
1933 </rng:optional>
1934 </rng:element>
1935 </rng:define>
1936 <rng:define name="text-object-index-source">
1937 <rng:element name="text:object-index-source">
1938 <rng:ref name="text-object-index-source-attrs"/>
1939 <rng:optional>
1940 <rng:ref name="text-index-title-template"/>
1941 </rng:optional>
1942 <rng:optional>
1943 <rng:ref name="text-object-index-entry-template"/>
1944 </rng:optional>
1945 <rng:optional>
1946 <!-- <rng:ref name="text-index-source-style"/> -->
1947 <rng:element name="loext:index-source-style">
1948 <rng:attribute name="text:style-name">
1949 <rng:ref name="styleNameRef"/>
1950 </rng:attribute>
1951 <rng:empty/>
1952 </rng:element>
1953 </rng:optional>
1954 </rng:element>
1955 </rng:define>
1956 <rng:define name="text-table-index-source">
1957 <rng:element name="text:table-index-source">
1958 <rng:ref name="text-illustration-index-source-attrs"/>
1959 <rng:optional>
1960 <rng:ref name="text-index-title-template"/>
1961 </rng:optional>
1962 <rng:optional>
1963 <rng:ref name="text-table-index-entry-template"/>
1964 </rng:optional>
1965 <rng:optional>
1966 <!-- <rng:ref name="text-index-source-style"/> -->
1967 <rng:element name="loext:index-source-style">
1968 <rng:attribute name="text:style-name">
1969 <rng:ref name="styleNameRef"/>
1970 </rng:attribute>
1971 <rng:empty/>
1972 </rng:element>
1973 </rng:optional>
1974 </rng:element>
1975 </rng:define>
1977 </rng:include>
1979 <!-- TODO no proposal -->
1980 <rng:define name="loext-p">
1981 <rng:element name="loext:p">
1982 <rng:ref name="paragraph-attrs"/>
1983 <rng:zeroOrMore>
1984 <rng:ref name="paragraph-content-or-hyperlink"/>
1985 </rng:zeroOrMore>
1986 </rng:element>
1987 </rng:define>
1988 <rng:define name="loext-text">
1989 <rng:zeroOrMore>
1990 <rng:choice>
1991 <rng:ref name="loext-p"/>
1992 <rng:ref name="text-list"/>
1993 <rng:ref name="loext-table"/>
1994 </rng:choice>
1995 </rng:zeroOrMore>
1996 </rng:define>
1998 <!-- OFFICE-2119 -->
1999 <rng:define name="chartooo-date-scale">
2000 <rng:element name="chartooo:date-scale">
2001 <rng:interleave>
2002 <rng:optional>
2003 <rng:attribute name="chart:base-time-unit">
2004 <rng:ref name="chart-time-unit"/>
2005 </rng:attribute>
2006 </rng:optional>
2007 <rng:optional>
2008 <rng:attribute name="chart:major-interval-value">
2009 <rng:ref name="positiveInteger"/>
2010 </rng:attribute>
2011 <rng:attribute name="chart:major-interval-unit">
2012 <rng:ref name="chart-time-unit"/>
2013 </rng:attribute>
2014 </rng:optional>
2015 <rng:optional>
2016 <rng:attribute name="chart:minor-interval-value">
2017 <rng:ref name="positiveInteger"/>
2018 </rng:attribute>
2019 <rng:attribute name="chart:minor-interval-unit">
2020 <rng:ref name="chart-time-unit"/>
2021 </rng:attribute>
2022 </rng:optional>
2023 </rng:interleave>
2024 </rng:element>
2025 </rng:define>
2026 <rng:define name="chart-time-unit">
2027 <rng:choice>
2028 <rng:value>days</rng:value>
2029 <rng:value>months</rng:value>
2030 <rng:value>years</rng:value>
2031 </rng:choice>
2032 </rng:define>
2034 <!-- TODO no proposal -->
2035 <rng:define name="loext-signatureline">
2036 <rng:element name="loext:signatureline">
2037 <rng:attribute name="loext:id">
2038 <rng:ref name="string"/>
2039 </rng:attribute>
2040 <rng:attribute name="loext:suggested-signer-name">
2041 <rng:ref name="string"/>
2042 </rng:attribute>
2043 <rng:attribute name="loext:suggested-signer-title">
2044 <rng:ref name="string"/>
2045 </rng:attribute>
2046 <rng:attribute name="loext:suggested-signer-email">
2047 <rng:ref name="string"/>
2048 </rng:attribute>
2049 <rng:attribute name="loext:signing-instructions">
2050 <rng:ref name="string"/>
2051 </rng:attribute>
2052 <rng:attribute name="loext:show-sign-date">
2053 <rng:ref name="boolean"/>
2054 </rng:attribute>
2055 <rng:attribute name="loext:can-add-comment">
2056 <rng:ref name="boolean"/>
2057 </rng:attribute>
2058 </rng:element>
2059 </rng:define>
2061 <rng:define name="loext-qrcode">
2062 <rng:element name="loext:qrcode">
2063 <rng:attribute name="office:string-value">
2064 <rng:ref name="string"/>
2065 </rng:attribute>
2066 <rng:attribute name="loext:qrcode-errorcorrection">
2067 <rng:choice>
2068 <rng:value>low</rng:value>
2069 <rng:value>medium</rng:value>
2070 <rng:value>quartile</rng:value>
2071 <rng:value>high</rng:value>
2072 </rng:choice>
2073 </rng:attribute>
2074 <rng:attribute name="loext:qrcode-border">
2075 <rng:ref name="nonNegativeInteger"/>
2076 </rng:attribute>
2077 <rng:attribute name="loext:qrcode-type">
2078 <rng:ref name="nonNegativeInteger"/>
2079 </rng:attribute>
2080 </rng:element>
2081 </rng:define>
2083 <!-- https://issues.oasis-open.org/browse/OFFICE-3761 -->
2084 <rng:define name="loext-table">
2085 <rng:element name="loext:table">
2086 <rng:ref name="table-table-attlist"/>
2087 <rng:optional>
2088 <rng:ref name="table-title"/>
2089 </rng:optional>
2090 <rng:optional>
2091 <rng:ref name="table-desc"/>
2092 </rng:optional>
2093 <rng:optional>
2094 <rng:ref name="table-table-source"/>
2095 </rng:optional>
2096 <rng:optional>
2097 <rng:ref name="office-dde-source"/>
2098 </rng:optional>
2099 <rng:optional>
2100 <rng:ref name="table-scenario"/>
2101 </rng:optional>
2102 <rng:optional>
2103 <rng:ref name="office-forms"/>
2104 </rng:optional>
2105 <rng:optional>
2106 <rng:ref name="table-shapes"/>
2107 </rng:optional>
2108 <rng:ref name="loext-columns-and-groups"/>
2109 <rng:ref name="loext-rows-and-groups"/>
2110 <rng:optional>
2111 <rng:ref name="table-named-expressions"/>
2112 </rng:optional>
2113 </rng:element>
2114 </rng:define>
2115 <rng:define name="loext-rows-and-groups">
2116 <rng:oneOrMore>
2117 <rng:choice>
2118 <rng:ref name="table-table-row-group"/>
2119 <rng:ref name="loext-rows-no-group"/>
2120 </rng:choice>
2121 </rng:oneOrMore>
2122 </rng:define>
2123 <rng:define name="loext-rows-no-group">
2124 <rng:choice>
2125 <rng:group>
2126 <rng:ref name="loext-rows"/>
2127 <rng:optional>
2128 <rng:ref name="table-table-header-rows"/>
2129 <rng:optional>
2130 <rng:ref name="loext-rows"/>
2131 </rng:optional>
2132 </rng:optional>
2133 </rng:group>
2134 <rng:group>
2135 <rng:ref name="table-table-header-rows"/>
2136 <rng:optional>
2137 <rng:ref name="loext-rows"/>
2138 </rng:optional>
2139 </rng:group>
2140 </rng:choice>
2141 </rng:define>
2142 <rng:define name="loext-rows">
2143 <rng:choice>
2144 <rng:ref name="table-table-rows"/>
2145 <rng:oneOrMore>
2146 <rng:optional>
2147 <rng:ref name="text-soft-page-break"/>
2148 </rng:optional>
2149 <rng:ref name="loext-table-row"/>
2150 </rng:oneOrMore>
2151 </rng:choice>
2152 </rng:define>
2153 <rng:define name="loext-table-row">
2154 <rng:element name="loext:table-row">
2155 <rng:ref name="table-table-row-attlist"/>
2156 <rng:oneOrMore>
2157 <rng:choice>
2158 <rng:ref name="loext-table-cell"/>
2159 <rng:ref name="loext-covered-table-cell"/>
2160 </rng:choice>
2161 </rng:oneOrMore>
2162 </rng:element>
2163 </rng:define>
2164 <rng:define name="loext-table-cell">
2165 <rng:element name="loext:table-cell">
2166 <rng:ref name="table-table-cell-attlist"/>
2167 <rng:ref name="table-table-cell-attlist-extra"/>
2168 <rng:ref name="table-table-cell-content"/>
2169 </rng:element>
2170 </rng:define>
2171 <rng:define name="loext-covered-table-cell">
2172 <rng:element name="loext:covered-table-cell">
2173 <rng:ref name="table-table-cell-attlist"/>
2174 <rng:ref name="table-table-cell-content"/>
2175 </rng:element>
2176 </rng:define>
2177 <rng:define name="loext-columns-and-groups">
2178 <rng:oneOrMore>
2179 <rng:choice>
2180 <rng:ref name="table-table-column-group"/>
2181 <rng:ref name="loext-columns-no-group"/>
2182 </rng:choice>
2183 </rng:oneOrMore>
2184 </rng:define>
2185 <rng:define name="loext-columns-no-group">
2186 <rng:choice>
2187 <rng:group>
2188 <rng:ref name="loext-columns"/>
2189 <rng:optional>
2190 <rng:ref name="table-table-header-columns"/>
2191 <rng:optional>
2192 <rng:ref name="loext-columns"/>
2193 </rng:optional>
2194 </rng:optional>
2195 </rng:group>
2196 <rng:group>
2197 <rng:ref name="table-table-header-columns"/>
2198 <rng:optional>
2199 <rng:ref name="loext-columns"/>
2200 </rng:optional>
2201 </rng:group>
2202 </rng:choice>
2203 </rng:define>
2204 <rng:define name="loext-columns">
2205 <rng:choice>
2206 <rng:ref name="loext-table-columns"/>
2207 <rng:oneOrMore>
2208 <rng:ref name="loext-table-column"/>
2209 </rng:oneOrMore>
2210 </rng:choice>
2211 </rng:define>
2212 <rng:define name="loext-table-columns">
2213 <rng:element name="loext:table-columns">
2214 <rng:oneOrMore>
2215 <rng:ref name="loext-table-column"/>
2216 </rng:oneOrMore>
2217 </rng:element>
2218 </rng:define>
2219 <rng:define name="loext-table-column">
2220 <rng:element name="loext:table-column">
2221 <rng:ref name="table-table-column-attlist"/>
2222 <rng:empty/>
2223 </rng:element>
2224 </rng:define>
2226 <rng:define name="loext-graphic-properties">
2227 <rng:element name="loext:graphic-properties">
2228 <rng:ref name="style-graphic-properties-content-strict"/>
2229 </rng:element>
2230 </rng:define>
2232 <rng:define name="table-first-row-even-column">
2233 <rng:element name="loext:first-row-even-column">
2234 <rng:ref name="common-table-template-attlist"/>
2235 <rng:empty/>
2236 </rng:element>
2237 </rng:define>
2238 <rng:define name="table-last-row-even-column">
2239 <rng:element name="loext:last-row-even-column">
2240 <rng:ref name="common-table-template-attlist"/>
2241 <rng:empty/>
2242 </rng:element>
2243 </rng:define>
2244 <rng:define name="table-first-row-end-column">
2245 <rng:element name="loext:first-row-end-column">
2246 <rng:ref name="common-table-template-attlist"/>
2247 <rng:empty/>
2248 </rng:element>
2249 </rng:define>
2250 <rng:define name="table-first-row-start-column">
2251 <rng:element name="loext:first-row-start-column">
2252 <rng:ref name="common-table-template-attlist"/>
2253 <rng:empty/>
2254 </rng:element>
2255 </rng:define>
2256 <rng:define name="table-last-row-end-column">
2257 <rng:element name="loext:last-row-end-column">
2258 <rng:ref name="common-table-template-attlist"/>
2259 <rng:empty/>
2260 </rng:element>
2261 </rng:define>
2262 <rng:define name="table-last-row-start-column">
2263 <rng:element name="loext:last-row-start-column">
2264 <rng:ref name="common-table-template-attlist"/>
2265 <rng:empty/>
2266 </rng:element>
2267 </rng:define>
2269 <rng:define name="common-draw-rel-size-attlist" combine="interleave">
2270 <!-- OFFICE-3854 -->
2271 <rng:optional>
2272 <rng:attribute name="loext:rel-width-rel">
2273 <rng:choice>
2274 <rng:value>page</rng:value>
2275 <rng:value>paragraph</rng:value>
2276 <!-- TODO layout-environment ? -->
2277 </rng:choice>
2278 </rng:attribute>
2279 </rng:optional>
2280 <rng:optional>
2281 <rng:attribute name="loext:rel-height-rel">
2282 <rng:choice>
2283 <rng:value>page</rng:value>
2284 <rng:value>paragraph</rng:value>
2285 </rng:choice>
2286 </rng:attribute>
2287 </rng:optional>
2288 </rng:define>
2290 <rng:define name="common-svg-font-face-xlink-attlist" combine="interleave">
2291 <!-- TODO no proposal -->
2292 <rng:optional>
2293 <rng:attribute name="loext:font-style">
2294 <rng:ref name="fontStyle"/>
2295 </rng:attribute>
2296 </rng:optional>
2297 <rng:optional>
2298 <rng:attribute name="loext:font-weight">
2299 <rng:ref name="fontWeight"/>
2300 </rng:attribute>
2301 </rng:optional>
2302 </rng:define>
2304 <!-- TODO no proposal -->
2305 <!-- there's no ref-attrs so add it here -->
2306 <rng:define name="text-common-ref-content" combine="interleave">
2307 <rng:optional>
2308 <rng:attribute name="loext:reference-language">
2309 <rng:ref name="language"/>
2310 </rng:attribute>
2311 </rng:optional>
2312 </rng:define>
2314 <rng:define name="style-list-level-label-alignment-attlist" combine="interleave">
2315 <rng:optional>
2316 <!-- TODO no proposal -->
2317 <rng:attribute name="loext:label-followed-by">
2318 <rng:choice>
2319 <rng:value>listtab</rng:value>
2320 <rng:value>space</rng:value>
2321 <rng:value>nothing</rng:value>
2322 <rng:value>newline</rng:value>
2323 </rng:choice>
2324 </rng:attribute>
2325 </rng:optional>
2326 </rng:define>
2328 <rng:define name="style-ruby-properties-attlist" combine="interleave">
2329 <rng:optional>
2330 <!-- TODO proposal, OFFICE-3944 -->
2331 <rng:attribute name="loext:ruby-position">
2332 <rng:choice>
2333 <rng:value>above</rng:value>
2334 <rng:value>below</rng:value>
2335 <rng:value>inter-character</rng:value>
2336 </rng:choice>
2337 </rng:attribute>
2338 </rng:optional>
2339 </rng:define>
2341 <rng:define name="style-text-properties-attlist" combine="interleave">
2342 <rng:optional>
2343 <!-- TODO no proposal -->
2344 <rng:attribute name="officeooo:rsid">
2345 <rng:ref name="string"/>
2346 </rng:attribute>
2347 </rng:optional>
2348 <rng:optional>
2349 <rng:attribute name="officeooo:paragraph-rsid">
2350 <rng:ref name="string"/>
2351 </rng:attribute>
2352 </rng:optional>
2353 <!-- https://issues.oasis-open.org/browse/OFFICE-4049 -->
2354 <rng:optional>
2355 <rng:attribute name="loext:opacity">
2356 <rng:ref name="zeroToHundredPercent"/>
2357 </rng:attribute>
2358 </rng:optional>
2359 </rng:define>
2361 <rng:define name="style-text-properties-attlist" combine="interleave">
2362 <!-- OFFICE-3843 -->
2363 <rng:optional>
2364 <rng:attribute name="loext:padding">
2365 <rng:ref name="nonNegativeLength"/>
2366 </rng:attribute>
2367 </rng:optional>
2368 <rng:optional>
2369 <rng:attribute name="loext:padding-left">
2370 <rng:ref name="nonNegativeLength"/>
2371 </rng:attribute>
2372 </rng:optional>
2373 <rng:optional>
2374 <rng:attribute name="loext:padding-right">
2375 <rng:ref name="nonNegativeLength"/>
2376 </rng:attribute>
2377 </rng:optional>
2378 <rng:optional>
2379 <rng:attribute name="loext:padding-top">
2380 <rng:ref name="nonNegativeLength"/>
2381 </rng:attribute>
2382 </rng:optional>
2383 <rng:optional>
2384 <rng:attribute name="loext:padding-bottom">
2385 <rng:ref name="nonNegativeLength"/>
2386 </rng:attribute>
2387 </rng:optional>
2388 <rng:optional>
2389 <rng:attribute name="loext:border">
2390 <rng:ref name="string"/>
2391 </rng:attribute>
2392 </rng:optional>
2393 <rng:optional>
2394 <rng:attribute name="loext:border-left">
2395 <rng:ref name="string"/>
2396 </rng:attribute>
2397 </rng:optional>
2398 <rng:optional>
2399 <rng:attribute name="loext:border-right">
2400 <rng:ref name="string"/>
2401 </rng:attribute>
2402 </rng:optional>
2403 <rng:optional>
2404 <rng:attribute name="loext:border-top">
2405 <rng:ref name="string"/>
2406 </rng:attribute>
2407 </rng:optional>
2408 <rng:optional>
2409 <rng:attribute name="loext:border-bottom">
2410 <rng:ref name="string"/>
2411 </rng:attribute>
2412 </rng:optional>
2413 <rng:optional>
2414 <rng:attribute name="loext:shadow">
2415 <rng:ref name="shadowType"/>
2416 </rng:attribute>
2417 </rng:optional>
2418 </rng:define>
2420 <!-- TODO no proposal -->
2421 <rng:define name="style-chart-properties-attlist" combine="interleave">
2422 <rng:optional>
2423 <rng:attribute name="loext:try-staggering-first">
2424 <rng:ref name="boolean"/>
2425 </rng:attribute>
2426 </rng:optional>
2427 </rng:define>
2429 <!-- TODO no proposal -->
2430 <rng:define name="style-chart-properties-attlist" combine="interleave">
2431 <rng:optional>
2432 <rng:attribute name="loext:std-weight">
2433 <rng:ref name="string"/>
2434 </rng:attribute>
2435 </rng:optional>
2436 </rng:define>
2438 <!-- TODO no proposal -->
2439 <rng:define name="chart-series-attlist" combine="interleave">
2440 <rng:optional>
2441 <rng:attribute name="loext:label-string">
2442 <rng:ref name="string"/>
2443 </rng:attribute>
2444 </rng:optional>
2445 </rng:define>
2447 <!-- OFFICE-1148 -->
2448 <rng:define name="style-chart-properties-attlist" combine="interleave">
2449 <rng:optional>
2450 <rng:attribute name="loext:regression-max-degree">
2451 <rng:ref name="positiveInteger"/>
2452 </rng:attribute>
2453 </rng:optional>
2454 <rng:optional>
2455 <rng:attribute name="loext:regression-force-intercept">
2456 <rng:ref name="boolean"/>
2457 </rng:attribute>
2458 </rng:optional>
2459 <rng:optional>
2460 <rng:attribute name="loext:regression-intercept-value">
2461 <rng:ref name="double"/>
2462 </rng:attribute>
2463 </rng:optional>
2464 <rng:optional>
2465 <rng:attribute name="loext:regression-name">
2466 <rng:ref name="string"/>
2467 </rng:attribute>
2468 </rng:optional>
2469 <rng:optional>
2470 <rng:attribute name="loext:regression-period">
2471 <rng:ref name="string"/>
2472 </rng:attribute>
2473 </rng:optional>
2474 <rng:optional>
2475 <rng:attribute name="loext:regression-extrapolate-forward">
2476 <rng:ref name="string"/>
2477 </rng:attribute>
2478 </rng:optional>
2479 <rng:optional>
2480 <rng:attribute name="loext:regression-extrapolate-backward">
2481 <rng:ref name="string"/>
2482 </rng:attribute>
2483 </rng:optional>
2484 </rng:define>
2486 <!-- Chart Data Table - TODO no proposal -->
2487 <rng:define name="chart-data-table">
2488 <rng:element name="loext:data-table">
2489 <rng:attribute name="chart:style-name">
2490 <rng:ref name="styleNameRef"/>
2491 </rng:attribute>
2492 </rng:element>
2493 </rng:define>
2495 <!-- Chart Data Table Style Attributes - TODO no proposal -->
2496 <rng:define name="style-chart-properties-attlist" combine="interleave">
2497 <rng:optional>
2498 <rng:attribute name="loext:show-horizontal-border">
2499 <rng:ref name="boolean"/>
2500 </rng:attribute>
2501 </rng:optional>
2502 <rng:optional>
2503 <rng:attribute name="loext:show-vertical-border">
2504 <rng:ref name="boolean"/>
2505 </rng:attribute>
2506 </rng:optional>
2507 <rng:optional>
2508 <rng:attribute name="loext:show-outline">
2509 <rng:ref name="boolean"/>
2510 </rng:attribute>
2511 </rng:optional>
2512 <rng:optional>
2513 <rng:attribute name="loext:show-keys">
2514 <rng:ref name="boolean"/>
2515 </rng:attribute>
2516 </rng:optional>
2517 </rng:define>
2519 <!-- TODO no proposal -->
2520 <rng:define name="table-data-pilot-field-attlist" combine="interleave">
2521 <rng:optional>
2522 <rng:attribute name="tableooo:display-name">
2523 <rng:ref name="string"/>
2524 </rng:attribute>
2525 </rng:optional>
2526 </rng:define>
2528 <!-- TODO no proposal, 9009663d -->
2529 <rng:define name="chart-chart-attlist" combine="interleave">
2530 <rng:optional>
2531 <rng:attribute name="loext:data-pilot-source">
2532 <rng:ref name="string"/>
2533 </rng:attribute>
2534 </rng:optional>
2535 </rng:define>
2537 <!-- OFFICE-2112, TODO half of this missing in proposal -->
2538 <rng:define name="table-table-protection">
2539 <rng:element name="loext:table-protection">
2540 <rng:optional>
2541 <rng:attribute name="loext:select-protected-cells">
2542 <rng:ref name="boolean"/>
2543 </rng:attribute>
2544 </rng:optional>
2545 <rng:optional>
2546 <rng:attribute name="loext:select-unprotected-cells">
2547 <rng:ref name="boolean"/>
2548 </rng:attribute>
2549 </rng:optional>
2550 <rng:optional>
2551 <rng:attribute name="loext:insert-columns">
2552 <rng:ref name="boolean"/>
2553 </rng:attribute>
2554 </rng:optional>
2555 <rng:optional>
2556 <rng:attribute name="loext:insert-rows">
2557 <rng:ref name="boolean"/>
2558 </rng:attribute>
2559 </rng:optional>
2560 <rng:optional>
2561 <rng:attribute name="loext:delete-columns">
2562 <rng:ref name="boolean"/>
2563 </rng:attribute>
2564 </rng:optional>
2565 <rng:optional>
2566 <rng:attribute name="loext:delete-rows">
2567 <rng:ref name="boolean"/>
2568 </rng:attribute>
2569 </rng:optional>
2570 </rng:element>
2571 </rng:define>
2572 <rng:define name="office-spreadsheet-attlist" combine="interleave">
2573 <rng:optional>
2574 <rng:attribute name="loext:protection-key-digest-algorithm-2">
2575 <rng:ref name="anyURI"/>
2576 </rng:attribute>
2577 </rng:optional>
2578 </rng:define>
2579 <rng:define name="table-table-attlist" combine="interleave">
2580 <rng:optional>
2581 <rng:attribute name="loext:protection-key-digest-algorithm-2">
2582 <rng:ref name="anyURI"/>
2583 </rng:attribute>
2584 </rng:optional>
2585 </rng:define>
2587 <!-- https://issues.oasis-open.org/browse/OFFICE-2317 -->
2588 <rng:define name="vertJustifyValues">
2589 <rng:choice>
2590 <rng:value>auto</rng:value>
2591 <rng:value>distribute</rng:value>
2592 </rng:choice>
2593 </rng:define>
2594 <rng:define name="common-text-justify">
2595 <rng:optional>
2596 <rng:attribute name="css3t:text-justify">
2597 <rng:ref name="vertJustifyValues"/>
2598 </rng:attribute>
2599 </rng:optional>
2600 </rng:define>
2601 <rng:define name="style-vertical-justify">
2602 <rng:optional>
2603 <rng:attribute name="loext:vertical-justify">
2604 <rng:ref name="vertJustifyValues"/>
2605 </rng:attribute>
2606 </rng:optional>
2607 <rng:optional>
2608 <rng:attribute name="style:vertical-justify">
2609 <rng:ref name="vertJustifyValues"/>
2610 </rng:attribute>
2611 </rng:optional>
2612 </rng:define>
2613 <rng:define name="style-paragraph-properties-attlist" combine="interleave">
2614 <rng:optional>
2615 <rng:ref name="common-text-justify"/>
2616 <rng:ref name="style-vertical-justify"/>
2617 </rng:optional>
2618 <!-- TODO no proposal to allow tab-stop-distance in arbitrary paragraph style properties -->
2619 <rng:optional>
2620 <rng:attribute name="loext:tab-stop-distance">
2621 <rng:ref name="nonNegativeLength"/>
2622 </rng:attribute>
2623 </rng:optional>
2624 </rng:define>
2625 <rng:define name="style-table-cell-properties-attlist" combine="interleave">
2626 <rng:optional>
2627 <rng:ref name="common-text-justify"/>
2628 <rng:ref name="style-vertical-justify"/>
2629 </rng:optional>
2630 </rng:define>
2632 <rng:define name="number-fraction-attlist" combine="interleave">
2633 <!-- OFFICE-3695 -->
2634 <!-- TODO no proposal, 1544a26ac9f7dd60605dd21e9cbe29d490aafdce -->
2635 <rng:optional>
2636 <rng:attribute name="loext:max-numerator-digits">
2637 <rng:ref name="positiveInteger"/>
2638 </rng:attribute>
2639 </rng:optional>
2640 </rng:define>
2642 <rng:define name="common-number-attlist" combine="interleave">
2643 <!-- TODO no proposal, -->
2644 <rng:optional>
2645 <rng:attribute name="loext:max-blank-integer-digits">
2646 <rng:ref name="positiveInteger"/>
2647 </rng:attribute>
2648 </rng:optional>
2649 </rng:define>
2651 <!-- TODO no proposal -->
2652 <rng:define name="table-data-pilot-level-attlist" combine="interleave">
2653 <rng:optional>
2654 <rng:attribute name="calcext:repeat-item-labels">
2655 <rng:ref name="boolean"/>
2656 </rng:attribute>
2657 </rng:optional>
2658 </rng:define>
2660 <!-- TODO no proposal -->
2661 <rng:define name="draw-enhanced-geometry-attlist" combine="interleave">
2662 <rng:optional>
2663 <rng:attribute name="drawooo:sub-view-size">
2664 <rng:ref name="string"/>
2665 </rng:attribute>
2666 </rng:optional>
2667 <rng:optional>
2668 <rng:attribute name="drawooo:enhanced-path">
2669 <rng:ref name="string"/>
2670 </rng:attribute>
2671 </rng:optional>
2672 </rng:define>
2674 <!-- https://issues.oasis-open.org/browse/OFFICE-4123 -->
2675 <rng:define name="draw-enhanced-geometry-attlist" combine="interleave">
2676 <rng:optional>
2677 <rng:attribute name="loext:extrusion-metal-type">
2678 <rng:ref name="namespacedToken"/>
2679 </rng:attribute>
2680 </rng:optional>
2681 </rng:define>
2683 <!-- https://issues.oasis-open.org/browse/OFFICE-4122 -->
2684 <rng:define name="draw-enhanced-geometry-attlist" combine="interleave">
2685 <rng:optional>
2686 <rng:attribute name="loext:extrusion-specularity-loext">
2687 <rng:ref name="percent"/>
2688 </rng:attribute>
2689 </rng:optional>
2690 </rng:define>
2692 <!-- TODO no proposal -->
2693 <rng:define name="draw-custom-shape-attlist" combine="interleave">
2694 <rng:ref name="common-draw-rel-size-attlist"/>
2695 </rng:define>
2697 <!-- TODO no proposal -->
2698 <rng:define name="style-page-layout-properties-attlist" combine="interleave">
2699 <rng:ref name="style-graphic-fill-properties-attlist"/>
2700 </rng:define>
2701 <rng:define name="style-header-footer-properties-attlist" combine="interleave">
2702 <rng:ref name="style-graphic-fill-properties-attlist"/>
2703 </rng:define>
2705 <!-- TODO no proposal -->
2706 <rng:define name="text-index-entry-tab-stop-attrs" combine="interleave">
2707 <rng:optional>
2708 <rng:attribute name="style:with-tab">
2709 <rng:ref name="boolean"/>
2710 </rng:attribute>
2711 </rng:optional>
2712 </rng:define>
2714 <!-- TODO no proposal -->
2715 <rng:define name="style-text-properties-attlist" combine="interleave">
2716 <rng:optional>
2717 <rng:attribute name="loext:char-shading-value">
2718 <rng:ref name="string"/>
2719 </rng:attribute>
2720 </rng:optional>
2721 </rng:define>
2723 <!-- TODO no proposal -->
2724 <rng:define name="text-bookmark-start-attlist" combine="interleave">
2725 <rng:optional>
2726 <rng:attribute name="loext:hidden">
2727 <rng:ref name="boolean"/>
2728 </rng:attribute>
2729 <rng:optional>
2730 <rng:attribute name="loext:condition">
2731 <rng:ref name="string"/>
2732 </rng:attribute>
2733 </rng:optional>
2734 </rng:optional>
2735 </rng:define>
2737 <!-- TODO no proposal; see 7a5d79f2297a43d0a854e304b0792164272edfe0 -->
2738 <!-- FIXME this is almost certainly incomplete: need to figure out which elements can have this and which named pattern can be extended with it to get exactly these elements -->
2739 <rng:define name="form-checkbox-attlist" combine="interleave">
2740 <rng:optional>
2741 <rng:attribute name="form:input-required">
2742 <rng:ref name="boolean"/>
2743 </rng:attribute>
2744 </rng:optional>
2745 </rng:define>
2746 <rng:define name="form-image-frame-attlist" combine="interleave">
2747 <rng:optional>
2748 <rng:attribute name="form:input-required">
2749 <rng:ref name="boolean"/>
2750 </rng:attribute>
2751 </rng:optional>
2752 </rng:define>
2753 <rng:define name="form-listbox-attlist" combine="interleave">
2754 <rng:optional>
2755 <rng:attribute name="form:input-required">
2756 <rng:ref name="boolean"/>
2757 </rng:attribute>
2758 </rng:optional>
2759 </rng:define>
2761 <!-- https://issues.oasis-open.org/browse/OFFICE-4030 -->
2762 <rng:define name="common-writing-mode-attlist" combine="interleave">
2763 <rng:optional>
2764 <rng:attribute name="loext:writing-mode">
2765 <rng:choice>
2766 <rng:value>bt-lr</rng:value>
2767 <rng:value>tb-rl90</rng:value>
2768 </rng:choice>
2769 </rng:attribute>
2770 </rng:optional>
2771 </rng:define>
2773 <!-- https://issues.oasis-open.org/browse/OFFICE-4073 -->
2774 <rng:define name="common-vertical-rel-attlist" combine="interleave">
2775 <rng:optional>
2776 <rng:attribute name="loext:vertical-rel">
2777 <rng:choice>
2778 <rng:value>page-content-top</rng:value>
2779 <rng:value>page-content-bottom</rng:value>
2780 </rng:choice>
2781 </rng:attribute>
2782 </rng:optional>
2783 </rng:define>
2785 <!-- https://issues.oasis-open.org/browse/OFFICE-4105 -->
2786 <rng:define name="style-page-layout-properties-attlist" combine="interleave">
2787 <rng:optional>
2788 <rng:attribute name="loext:margin-gutter">
2789 <rng:choice>
2790 <rng:ref name="length"/>
2791 </rng:choice>
2792 </rng:attribute>
2793 </rng:optional>
2794 </rng:define>
2796 <!-- just a test-case for user-defined attributes, move along, nothing to see here... -->
2797 <rng:define name="style-table-cell-properties-attlist" combine="interleave">
2798 <rng:optional>
2799 <rng:attribute name="proName">
2800 <rng:ref name="string"/>
2801 </rng:attribute>
2802 </rng:optional>
2803 </rng:define>
2805 <!-- TODO no proposal -->
2806 <rng:define name="chart-data-point-attlist" combine="interleave">
2807 <rng:optional>
2808 <rng:attribute name="loext:custom-label-field">
2809 <rng:ref name="string"/>
2810 </rng:attribute>
2811 </rng:optional>
2812 </rng:define>
2814 <!-- TODO no proposal -->
2815 <rng:define name="style-text-properties-attlist" combine="interleave">
2816 <rng:optional>
2817 <rng:attribute name="loext:hyphenation-no-caps">
2818 <rng:ref name="boolean"/>
2819 </rng:attribute>
2820 </rng:optional>
2821 </rng:define>
2823 <!-- TODO no proposal -->
2824 <rng:define name="style-text-properties-attlist" combine="interleave">
2825 <rng:optional>
2826 <rng:attribute name="loext:hyphenation-no-last-word">
2827 <rng:ref name="boolean"/>
2828 </rng:attribute>
2829 </rng:optional>
2830 </rng:define>
2832 <!-- TODO no proposal -->
2833 <rng:define name="style-text-properties-attlist" combine="interleave">
2834 <rng:optional>
2835 <rng:attribute name="loext:hyphenation-word-char-count">
2836 <rng:choice>
2837 <rng:value>no-limit</rng:value>
2838 <rng:ref name="positiveInteger"/>
2839 </rng:choice>
2840 </rng:attribute>
2841 </rng:optional>
2842 </rng:define>
2844 <!-- TODO no proposal -->
2845 <rng:define name="style-text-properties-attlist" combine="interleave">
2846 <rng:optional>
2847 <rng:attribute name="loext:hyphenation-zone">
2848 <rng:choice>
2849 <rng:value>no-limit</rng:value>
2850 <rng:ref name="positiveInteger"/>
2851 </rng:choice>
2852 </rng:attribute>
2853 </rng:optional>
2854 </rng:define>
2856 <!-- TODO no proposal -->
2857 <rng:define name="chart-data-point-attlist" combine="interleave">
2858 <rng:optional>
2859 <rng:attribute name="loext:custom-label-pos-x">
2860 <rng:ref name="double"/>
2861 </rng:attribute>
2862 <rng:attribute name="loext:custom-label-pos-y">
2863 <rng:ref name="double"/>
2864 </rng:attribute>
2865 </rng:optional>
2866 </rng:define>
2868 <!-- TODO no proposal -->
2869 <rng:define name="chart-legend-attlist" combine="interleave">
2870 <rng:optional>
2871 <rng:attribute name="loext:overlay">
2872 <rng:ref name="boolean"/>
2873 </rng:attribute>
2874 </rng:optional>
2875 </rng:define>
2877 <!-- https://issues.oasis-open.org/browse/OFFICE-3936 -->
2878 <rng:define name="style-chart-properties-attlist" combine="interleave">
2879 <rng:optional>
2880 <rng:attribute name="loext:major-origin">
2881 <rng:ref name="double"/>
2882 </rng:attribute>
2883 </rng:optional>
2884 </rng:define>
2886 <!-- TODO no proposal -->
2887 <rng:define name="text-index-entry-chapter-attrs" combine="interleave">
2888 <rng:optional>
2889 <rng:attribute name="loext:outline-content-visible">
2890 <rng:ref name="boolean"/>
2891 </rng:attribute>
2892 </rng:optional>
2893 </rng:define>
2895 <!-- https://issues.oasis-open.org/browse/OFFICE-2096 -->
2896 <rng:define name="paragraph-content" combine="choice"
2897 xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0">
2898 <rng:element name="field:fieldmark-start">
2899 <rng:attribute name="text:name">
2900 <rng:ref name="string"/>
2901 </rng:attribute>
2902 <rng:attribute name="field:type">
2903 <!-- TODO <rng:ref name="namespacedToken"/> -->
2904 <rng:ref name="string"/>
2905 </rng:attribute>
2906 <rng:zeroOrMore>
2907 <rng:element name="field:param">
2908 <rng:attribute name="field:name">
2909 <rng:ref name="string"/>
2910 </rng:attribute>
2911 <rng:attribute name="field:value">
2912 <rng:ref name="string"/>
2913 </rng:attribute>
2914 </rng:element>
2915 </rng:zeroOrMore>
2916 </rng:element>
2917 </rng:define>
2918 <rng:define name="paragraph-content" combine="choice"
2919 xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0">
2920 <rng:element name="field:fieldmark-separator">
2921 <rng:empty/>
2922 </rng:element>
2923 </rng:define>
2924 <rng:define name="paragraph-content" combine="choice"
2925 xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0">
2926 <rng:element name="field:fieldmark-end">
2927 <rng:empty/>
2928 </rng:element>
2929 </rng:define>
2930 <rng:define name="paragraph-content" combine="choice"
2931 xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0">
2932 <rng:element name="field:fieldmark">
2933 <rng:attribute name="text:name">
2934 <rng:ref name="string"/>
2935 </rng:attribute>
2936 <rng:attribute name="field:type">
2937 <!-- TODO <rng:ref name="namespacedToken"/> -->
2938 <rng:ref name="string"/>
2939 </rng:attribute>
2940 <rng:zeroOrMore>
2941 <rng:element name="field:param">
2942 <rng:attribute name="field:name">
2943 <rng:ref name="string"/>
2944 </rng:attribute>
2945 <rng:attribute name="field:value">
2946 <rng:ref name="string"/>
2947 </rng:attribute>
2948 </rng:element>
2949 </rng:zeroOrMore>
2950 </rng:element>
2951 </rng:define>
2953 <!-- https://issues.oasis-open.org/browse/OFFICE-4124 -->
2954 <rng:define name="paragraph-content" combine="choice">
2955 <rng:element name="text:line-break">
2956 <rng:optional>
2957 <!-- default value: none -->
2958 <rng:attribute name="loext:clear">
2959 <rng:choice>
2960 <rng:value>none</rng:value>
2961 <rng:value>left</rng:value>
2962 <rng:value>right</rng:value>
2963 <rng:value>all</rng:value>
2964 </rng:choice>
2965 </rng:attribute>
2966 </rng:optional>
2967 </rng:element>
2968 </rng:define>
2970 <!-- https://issues.oasis-open.org/browse/OFFICE-4131 Inline content controls for text documents -->
2971 <rng:define name="paragraph-content" combine="choice">
2972 <rng:element name="loext:content-control">
2973 <rng:optional>
2974 <!-- default value: false -->
2975 <rng:attribute name="loext:showing-place-holder">
2976 <rng:ref name="boolean"/>
2977 </rng:attribute>
2978 </rng:optional>
2979 <rng:optional>
2980 <!-- default value: false -->
2981 <rng:attribute name="loext:checkbox">
2982 <rng:ref name="boolean"/>
2983 </rng:attribute>
2984 </rng:optional>
2985 <rng:optional>
2986 <!-- default value: false -->
2987 <rng:attribute name="loext:checked">
2988 <rng:ref name="boolean"/>
2989 </rng:attribute>
2990 </rng:optional>
2991 <rng:optional>
2992 <rng:attribute name="loext:checked-state">
2993 <rng:ref name="string"/>
2994 </rng:attribute>
2995 </rng:optional>
2996 <rng:optional>
2997 <rng:attribute name="loext:unchecked-state">
2998 <rng:ref name="string"/>
2999 </rng:attribute>
3000 </rng:optional>
3001 <rng:optional>
3002 <!-- default value: false -->
3003 <rng:attribute name="loext:picture">
3004 <rng:ref name="boolean"/>
3005 </rng:attribute>
3006 </rng:optional>
3007 <rng:optional>
3008 <!-- default value: false -->
3009 <rng:attribute name="loext:date">
3010 <rng:ref name="boolean"/>
3011 </rng:attribute>
3012 </rng:optional>
3013 <rng:optional>
3014 <rng:attribute name="loext:date-format">
3015 <rng:ref name="string"/>
3016 </rng:attribute>
3017 </rng:optional>
3018 <rng:optional>
3019 <rng:attribute name="loext:date-rfc-language-tag">
3020 <rng:ref name="language"/>
3021 </rng:attribute>
3022 </rng:optional>
3023 <rng:optional>
3024 <rng:attribute name="loext:current-date">
3025 <rng:ref name="string"/>
3026 </rng:attribute>
3027 </rng:optional>
3028 <rng:optional>
3029 <!-- default value: false -->
3030 <rng:attribute name="loext:plain-text">
3031 <rng:ref name="boolean"/>
3032 </rng:attribute>
3033 </rng:optional>
3034 <rng:optional>
3035 <!-- default value: false -->
3036 <rng:attribute name="loext:combobox">
3037 <rng:ref name="boolean"/>
3038 </rng:attribute>
3039 </rng:optional>
3040 <rng:optional>
3041 <!-- default value: false -->
3042 <rng:attribute name="loext:dropdown">
3043 <rng:ref name="boolean"/>
3044 </rng:attribute>
3045 </rng:optional>
3046 <rng:optional>
3047 <rng:attribute name="loext:alias">
3048 <rng:ref name="string"/>
3049 </rng:attribute>
3050 </rng:optional>
3051 <rng:optional>
3052 <rng:attribute name="loext:tag">
3053 <rng:ref name="string"/>
3054 </rng:attribute>
3055 </rng:optional>
3056 <rng:optional>
3057 <rng:attribute name="loext:id">
3058 <rng:ref name="integer"/>
3059 </rng:attribute>
3060 </rng:optional>
3061 <rng:optional>
3062 <rng:attribute name="loext:tab-index">
3063 <rng:ref name="nonNegativeInteger"/>
3064 </rng:attribute>
3065 </rng:optional>
3066 <rng:optional>
3067 <rng:attribute name="loext:lock">
3068 <rng:ref name="string"/>
3069 </rng:attribute>
3070 </rng:optional>
3071 <rng:zeroOrMore>
3072 <rng:element name="loext:list-item">
3073 <rng:attribute name="loext:display-text">
3074 <rng:ref name="string"/>
3075 </rng:attribute>
3076 <rng:attribute name="loext:value">
3077 <rng:ref name="string"/>
3078 </rng:attribute>
3079 </rng:element>
3080 </rng:zeroOrMore>
3081 <rng:zeroOrMore>
3082 <rng:ref name="paragraph-content-or-hyperlink"/>
3083 </rng:zeroOrMore>
3084 </rng:element>
3085 </rng:define>
3087 <!-- TODO no proposal -->
3088 <rng:define name="animation-element" combine="choice">
3089 <rng:choice>
3090 <rng:element name="loext:animatePhysics">
3091 <rng:ref name="common-anim-target-attlist"/>
3092 <rng:ref name="common-timing-attlist"/>
3093 <rng:ref name="animate-physics-attlist"/>
3094 </rng:element>
3095 </rng:choice>
3096 </rng:define>
3098 <rng:define name="animate-physics-attlist">
3099 <rng:optional>
3100 <!-- default value: 0 -->
3101 <rng:attribute name="loext:velocity-x">
3102 <rng:ref name="double"/>
3103 </rng:attribute>
3104 </rng:optional>
3105 <rng:optional>
3106 <!-- default value: 0 -->
3107 <rng:attribute name="loext:velocity-y">
3108 <rng:ref name="double"/>
3109 </rng:attribute>
3110 </rng:optional>
3111 <rng:optional>
3112 <!-- default value: 0.1 -->
3113 <rng:attribute name="loext:bounciness">
3114 <rng:data type="double">
3115 <rng:param name="minInclusive">0</rng:param>
3116 <rng:param name="maxInclusive">1</rng:param>
3117 </rng:data>
3118 </rng:attribute>
3119 </rng:optional>
3120 <rng:optional>
3121 <!-- default value: 1 -->
3122 <rng:attribute name="loext:density">
3123 <rng:data type="double">
3124 <rng:param name="minInclusive">0</rng:param>
3125 </rng:data>
3126 </rng:attribute>
3127 </rng:optional>
3128 </rng:define>
3130 <!-- TODO no proposal -->
3131 <rng:define name="style-chart-properties-attlist" combine="interleave">
3132 <rng:optional>
3133 <rng:attribute name="loext:custom-leader-lines">
3134 <rng:ref name="boolean"/>
3135 </rng:attribute>
3136 </rng:optional>
3137 </rng:define>
3139 <!-- TODO no proposal -->
3140 <rng:define name="style-chart-properties-attlist" combine="interleave">
3141 <rng:optional>
3142 <rng:attribute name="loext:external-data">
3143 <rng:ref name="string"/>
3144 </rng:attribute>
3145 </rng:optional>
3146 </rng:define>
3148 <!-- https://issues.oasis-open.org/browse/OFFICE-4107 -->
3149 <rng:define name="table-filter-condition-attlist" combine="interleave">
3150 <rng:optional>
3151 <rng:attribute name="loext:data-type">
3152 <rng:choice>
3153 <rng:value>background-color</rng:value>
3154 <rng:value>text-color</rng:value>
3155 </rng:choice>
3156 </rng:attribute>
3157 </rng:optional>
3158 </rng:define>
3160 <!-- TODO no proposal -->
3161 <rng:define name="style-table-row-properties-attlist" combine="interleave">
3162 <rng:optional>
3163 <rng:attribute name="loext:text-changes-only">
3164 <rng:ref name="boolean"/>
3165 </rng:attribute>
3166 </rng:optional>
3167 </rng:define>
3169 <!-- https://issues.oasis-open.org/browse/OFFICE-4108 -->
3170 <rng:define name="common-num-format-prefix-suffix-attlist" combine="interleave">
3171 <rng:optional>
3172 <rng:attribute name="loext:num-list-format">
3173 <rng:ref name="string"/>
3174 </rng:attribute>
3175 </rng:optional>
3176 </rng:define>
3178 <!-- TODO no proposal -->
3179 <rng:define name="paragraph-content" combine="choice"
3180 xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0">
3181 <rng:element name="text:bibliography-mark">
3182 <rng:attribute name="text:bibliography-type">
3183 <rng:ref name="text-bibliography-types"/>
3184 </rng:attribute>
3185 <rng:zeroOrMore>
3186 <rng:attribute>
3187 <rng:choice>
3188 <rng:name>text:identifier</rng:name>
3189 <rng:name>text:address</rng:name>
3190 <rng:name>text:annote</rng:name>
3191 <rng:name>text:author</rng:name>
3192 <rng:name>text:booktitle</rng:name>
3193 <rng:name>text:chapter</rng:name>
3194 <rng:name>text:edition</rng:name>
3195 <rng:name>text:editor</rng:name>
3196 <rng:name>text:howpublished</rng:name>
3197 <rng:name>text:institution</rng:name>
3198 <rng:name>text:journal</rng:name>
3199 <rng:name>text:month</rng:name>
3200 <rng:name>text:note</rng:name>
3201 <rng:name>text:number</rng:name>
3202 <rng:name>text:organizations</rng:name>
3203 <rng:name>text:pages</rng:name>
3204 <rng:name>text:publisher</rng:name>
3205 <rng:name>text:school</rng:name>
3206 <rng:name>text:series</rng:name>
3207 <rng:name>text:title</rng:name>
3208 <rng:name>text:report-type</rng:name>
3209 <rng:name>text:volume</rng:name>
3210 <rng:name>text:year</rng:name>
3211 <rng:name>text:url</rng:name>
3212 <rng:name>text:custom1</rng:name>
3213 <rng:name>text:custom2</rng:name>
3214 <rng:name>text:custom3</rng:name>
3215 <rng:name>text:custom4</rng:name>
3216 <rng:name>text:custom5</rng:name>
3217 <rng:name>text:isbn</rng:name>
3218 <rng:name>text:issn</rng:name>
3219 <rng:name>loext:local-url</rng:name>
3220 <!-- TODO no proposal -->
3221 <rng:name>loext:target-url</rng:name>
3222 <rng:name>loext:use-target-url</rng:name>
3223 </rng:choice>
3224 <rng:ref name="string"/>
3225 </rng:attribute>
3226 </rng:zeroOrMore>
3227 <rng:text/>
3228 </rng:element>
3229 </rng:define>
3231 <!-- TODO no proposal -->
3232 <rng:define name="chart-data-label-attlist" combine="interleave">
3233 <rng:optional>
3234 <rng:attribute name="loext:data-label-guid">
3235 <rng:ref name="string"/>
3236 </rng:attribute>
3237 <rng:attribute name="loext:data-labels-cell-range">
3238 <rng:ref name="cellRangeAddress"/>
3239 </rng:attribute>
3240 </rng:optional>
3241 </rng:define>
3243 <!-- TODO no proposal -->
3244 <rng:define name="style-style-attlist" combine="interleave">
3245 <rng:optional>
3246 <rng:attribute name="loext:linked-style-name">
3247 <rng:ref name="styleNameRef"/>
3248 </rng:attribute>
3249 </rng:optional>
3250 </rng:define>
3252 <rng:define name="loext-color-attlist">
3253 <rng:interleave>
3254 <rng:optional>
3255 <rng:attribute name="loext:name">
3256 <rng:ref name="string"/>
3257 </rng:attribute>
3258 </rng:optional>
3259 <rng:optional>
3260 <rng:attribute name="loext:color">
3261 <rng:ref name="color"/>
3262 </rng:attribute>
3263 </rng:optional>
3264 </rng:interleave>
3265 </rng:define>
3266 <rng:define name="loext-color">
3267 <rng:element name="loext:color">
3268 <rng:ref name="loext-color-attlist"/>
3269 <rng:empty/>
3270 </rng:element>
3271 </rng:define>
3272 <rng:define name="loext-color-table-attlist">
3273 <rng:interleave>
3274 <rng:optional>
3275 <rng:attribute name="loext:name">
3276 <rng:ref name="string"/>
3277 </rng:attribute>
3278 </rng:optional>
3279 </rng:interleave>
3280 </rng:define>
3281 <rng:define name="loext-color-table">
3282 <rng:element name="loext:color-table">
3283 <rng:ref name="loext-color-table-attlist"/>
3284 <rng:zeroOrMore>
3285 <rng:ref name="loext-color"/>
3286 </rng:zeroOrMore>
3287 </rng:element>
3288 </rng:define>
3289 <rng:define name="loext-theme-attlist">
3290 <rng:interleave>
3291 <rng:optional>
3292 <rng:attribute name="loext:name">
3293 <rng:ref name="string"/>
3294 </rng:attribute>
3295 </rng:optional>
3296 </rng:interleave>
3297 </rng:define>
3298 <rng:define name="loext-theme">
3299 <rng:element name="loext:theme">
3300 <rng:ref name="loext-theme-attlist"/>
3301 <rng:optional>
3302 <rng:ref name="loext-color-table"/>
3303 </rng:optional>
3304 </rng:element>
3305 </rng:define>
3307 <rng:define name="office-styles" combine="choice">
3308 <rng:optional>
3309 <rng:element name="office:styles">
3310 <rng:interleave>
3311 <rng:ref name="styles"/>
3312 <rng:zeroOrMore>
3313 <rng:ref name="style-default-style"/>
3314 </rng:zeroOrMore>
3315 <rng:optional>
3316 <rng:ref name="style-default-page-layout"/>
3317 </rng:optional>
3318 <rng:optional>
3319 <rng:ref name="text-outline-style"/>
3320 </rng:optional>
3321 <rng:zeroOrMore>
3322 <rng:ref name="text-notes-configuration"/>
3323 </rng:zeroOrMore>
3324 <rng:optional>
3325 <rng:ref name="text-bibliography-configuration"/>
3326 </rng:optional>
3327 <rng:optional>
3328 <rng:ref name="text-linenumbering-configuration"/>
3329 </rng:optional>
3330 <rng:optional>
3331 <!-- TODO no proposal for defining a theme -->
3332 <rng:ref name="loext-theme"/>
3333 </rng:optional>
3334 <rng:zeroOrMore>
3335 <rng:ref name="draw-gradient"/>
3336 </rng:zeroOrMore>
3337 <rng:zeroOrMore>
3338 <rng:ref name="svg-linearGradient"/>
3339 </rng:zeroOrMore>
3340 <rng:zeroOrMore>
3341 <rng:ref name="svg-radialGradient"/>
3342 </rng:zeroOrMore>
3343 <rng:zeroOrMore>
3344 <rng:ref name="draw-hatch"/>
3345 </rng:zeroOrMore>
3346 <rng:zeroOrMore>
3347 <rng:ref name="draw-fill-image"/>
3348 </rng:zeroOrMore>
3349 <rng:zeroOrMore>
3350 <rng:ref name="draw-marker"/>
3351 </rng:zeroOrMore>
3352 <rng:zeroOrMore>
3353 <rng:ref name="draw-stroke-dash"/>
3354 </rng:zeroOrMore>
3355 <rng:zeroOrMore>
3356 <rng:ref name="draw-opacity"/>
3357 </rng:zeroOrMore>
3358 <rng:zeroOrMore>
3359 <rng:ref name="style-presentation-page-layout"/>
3360 </rng:zeroOrMore>
3361 <rng:zeroOrMore>
3362 <rng:ref name="table-table-template"/>
3363 </rng:zeroOrMore>
3364 </rng:interleave>
3365 </rng:element>
3366 </rng:optional>
3367 </rng:define>
3369 <rng:define name="style-master-page" combine="choice">
3370 <rng:element name="style:master-page">
3371 <rng:ref name="style-master-page-attlist"/>
3372 <rng:optional>
3373 <rng:ref name="style-header"/>
3374 <rng:optional>
3375 <rng:ref name="style-header-left"/>
3376 </rng:optional>
3377 <rng:optional>
3378 <rng:ref name="style-header-first"/>
3379 </rng:optional>
3380 </rng:optional>
3381 <rng:optional>
3382 <rng:ref name="style-footer"/>
3383 <rng:optional>
3384 <rng:ref name="style-footer-left"/>
3385 </rng:optional>
3386 <rng:optional>
3387 <rng:ref name="style-footer-first"/>
3388 </rng:optional>
3389 </rng:optional>
3390 <rng:optional>
3391 <rng:ref name="draw-layer-set"/>
3392 </rng:optional>
3393 <rng:optional>
3394 <rng:ref name="office-forms"/>
3395 </rng:optional>
3396 <rng:optional>
3397 <!-- TODO no proposal for defining a theme -->
3398 <rng:ref name="loext-theme"/>
3399 </rng:optional>
3400 <rng:zeroOrMore>
3401 <rng:ref name="shape"/>
3402 </rng:zeroOrMore>
3403 <rng:optional>
3404 <rng:ref name="animation-element"/>
3405 </rng:optional>
3406 <rng:optional>
3407 <rng:ref name="presentation-notes"/>
3408 </rng:optional>
3409 </rng:element>
3410 </rng:define>
3412 <!-- Theme Elements -->
3413 <rng:define name="theme-color">
3414 <rng:choice>
3415 <!-- Background 1 -->
3416 <rng:value>dk1</rng:value>
3417 <!-- Text 1 -->
3418 <rng:value>lt1</rng:value>
3419 <!-- Background 2 -->
3420 <rng:value>dk2</rng:value>
3421 <!-- Text 2 -->
3422 <rng:value>lt2</rng:value>
3423 <rng:value>accent1</rng:value>
3424 <rng:value>accent2</rng:value>
3425 <rng:value>accent3</rng:value>
3426 <rng:value>accent4</rng:value>
3427 <rng:value>accent5</rng:value>
3428 <rng:value>accent6</rng:value>
3429 <!-- Hyperlink -->
3430 <rng:value>hlink</rng:value>
3431 <!-- Followed hyperlink -->
3432 <rng:value>folHlink</rng:value>
3433 </rng:choice>
3434 </rng:define>
3436 <rng:define name="loext-transformation">
3437 <rng:element name="loext:transformation">
3438 <rng:attribute name="loext:type">
3439 <rng:ref name="string"/>
3440 </rng:attribute>
3441 <rng:attribute name="loext:value">
3442 <rng:ref name="integer"/>
3443 </rng:attribute>
3444 </rng:element>
3445 </rng:define>
3447 <rng:define name="loext-theme-color-reference-attlist">
3448 <rng:interleave>
3449 <rng:optional>
3450 <rng:attribute name="loext:type">
3451 <rng:ref name="theme-color"/>
3452 </rng:attribute>
3453 </rng:optional>
3454 </rng:interleave>
3455 </rng:define>
3457 <rng:define name="loext-char-color-theme-reference">
3458 <rng:element name="loext:char-color-theme-reference">
3459 <rng:ref name="loext-theme-color-reference-attlist"/>
3460 <rng:zeroOrMore>
3461 <rng:ref name="loext-transformation"/>
3462 </rng:zeroOrMore>
3463 </rng:element>
3464 </rng:define>
3466 <rng:define name="loext-fill-color-theme-reference">
3467 <rng:element name="loext:fill-color-theme-reference">
3468 <rng:ref name="loext-theme-color-reference-attlist"/>
3469 <rng:zeroOrMore>
3470 <rng:ref name="loext-transformation"/>
3471 </rng:zeroOrMore>
3472 </rng:element>
3473 </rng:define>
3475 <!-- TODO no proposal -->
3476 <rng:define name="style-text-properties-elements" combine="interleave">
3477 <rng:optional>
3478 <rng:ref name="loext-char-color-theme-reference"/>
3479 </rng:optional>
3480 </rng:define>
3482 <!-- TODO no proposal -->
3483 <rng:define name="style-graphic-properties-elements" combine="interleave">
3484 <rng:optional>
3485 <rng:ref name="loext-fill-color-theme-reference"/>
3486 </rng:optional>
3487 </rng:define>
3489 <rng:define name="draw-frame-attlist" combine="interleave">
3490 <!-- https://issues.oasis-open.org/browse/OFFICE-4136 -->
3491 <rng:optional>
3492 <rng:attribute name="loext:decorative">
3493 <rng:ref name="boolean"/>
3494 </rng:attribute>
3495 </rng:optional>
3496 <!-- TODO(vmiklos) no proposal for multi-page floating tables -->
3497 <rng:optional>
3498 <rng:attribute name="loext:may-break-between-pages">
3499 <rng:ref name="boolean"/>
3500 </rng:attribute>
3501 </rng:optional>
3502 </rng:define>
3504 <rng:define name="style-graphic-properties-attlist" combine="interleave">
3505 <rng:optional>
3506 <rng:attribute name="loext:decorative">
3507 <rng:ref name="boolean"/>
3508 </rng:attribute>
3509 </rng:optional>
3510 </rng:define>
3512 </rng:grammar>