1<?xml version="1.0" encoding="UTF-8"?>
2<!--***********************************************************
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements.  See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership.  The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License.  You may obtain a copy of the License at
11 *
12 *   http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied.  See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 *
21 ***********************************************************-->
22
23<grammar
24	xmlns="http://relaxng.org/ns/structure/1.0"
25    xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
26
27    xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
28    xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
29    xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
30>
31<include href="office-strict-schema-1.0-cd-2.rng">
32
33<!-- ==================== -->
34<!-- replaced definitions -->
35<!-- ==================== -->
36
37<!-- list styles contained in graphic styles currently have no name (i36217) -->
38<define name="text-list-style-attr" combine="interleave">
39    <optional>
40		<attribute name="style:name">
41			<ref name="styleName"/>
42		</attribute>
43	</optional>
44</define>
45<define name="text-list-style-attr" combine="interleave">
46    <optional>
47        <attribute name="style:display-name">
48            <ref name="string"/>
49        </attribute>
50    </optional>
51</define>
52<define name="text-list-style-attr" combine="interleave">
53    <optional>
54        <attribute name="text:consecutive-numbering" a:defaultValue="false">
55            <ref name="boolean"/>
56        </attribute>
57    </optional>
58</define>
59
60</include>
61
62<!-- ====================== -->
63<!-- additional definitions -->
64<!-- ====================== -->
65
66<!-- The following definition is obsolete, but required for legacy -->
67<!-- files that have their origin in binary files (i35420).        -->
68<define name="chart-plot-area-attlist" combine="interleave">
69	<optional>
70		<attribute name="chart:table-number-list">
71			<ref name="string"/>
72		</attribute>
73	</optional>
74</define>
75
76<!-- List styles contained in graphic styles currently are -->
77<!-- enabled by the following attribute (i36217).          -->
78<define name="style-paragraph-properties-attlist" combine="interleave">
79	<optional>
80		<attribute name="text:enable-numbering">
81			<ref name="boolean"/>
82		</attribute>
83	</optional>
84</define>
85
86</grammar>
87