1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2*e76eebc6SAndrew Rist<!--***********************************************************
3*e76eebc6SAndrew Rist *
4*e76eebc6SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
5*e76eebc6SAndrew Rist * or more contributor license agreements.  See the NOTICE file
6*e76eebc6SAndrew Rist * distributed with this work for additional information
7*e76eebc6SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
8*e76eebc6SAndrew Rist * to you under the Apache License, Version 2.0 (the
9*e76eebc6SAndrew Rist * "License"); you may not use this file except in compliance
10*e76eebc6SAndrew Rist * with the License.  You may obtain a copy of the License at
11*e76eebc6SAndrew Rist *
12*e76eebc6SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
13*e76eebc6SAndrew Rist *
14*e76eebc6SAndrew Rist * Unless required by applicable law or agreed to in writing,
15*e76eebc6SAndrew Rist * software distributed under the License is distributed on an
16*e76eebc6SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17*e76eebc6SAndrew Rist * KIND, either express or implied.  See the License for the
18*e76eebc6SAndrew Rist * specific language governing permissions and limitations
19*e76eebc6SAndrew Rist * under the License.
20*e76eebc6SAndrew Rist *
21*e76eebc6SAndrew Rist ***********************************************************-->
22cdf0e10cSrcweir
23cdf0e10cSrcweir
24cdf0e10cSrcweir<!---->
25cdf0e10cSrcweir<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
26cdf0e10cSrcweir           elementFormDefault="qualified"
27cdf0e10cSrcweir           targetNamespace="urn:oasis:names:tc:opendocument:xmlns:report:1.0"
28cdf0e10cSrcweir           xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
29cdf0e10cSrcweir           xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0"
30cdf0e10cSrcweir           xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
31cdf0e10cSrcweir           xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
32cdf0e10cSrcweir           xmlns:xlink="http://www.w3.org/1999/xlink"
33cdf0e10cSrcweir           xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
34cdf0e10cSrcweir           xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
35cdf0e10cSrcweir           xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
36cdf0e10cSrcweir           xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
37cdf0e10cSrcweir           xmlns:rpt="urn:oasis:names:tc:opendocument:xmlns:report:1.0"
38cdf0e10cSrcweir           xmlns:anim="urn:oasis:names:tc:opendocument:xmlns:animation:1.0"
39cdf0e10cSrcweir           xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0"
40cdf0e10cSrcweir           xmlns:smil="urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0"
41cdf0e10cSrcweir           xmlns:xforms="http://www.w3.org/2002/xforms"
42cdf0e10cSrcweir           xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
43cdf0e10cSrcweir           xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
44cdf0e10cSrcweir           xmlns:ns1="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
45cdf0e10cSrcweir           xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
46cdf0e10cSrcweir           xmlns:math="http://www.w3.org/1998/Math/MathML"
47cdf0e10cSrcweir           xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
48cdf0e10cSrcweir           xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
49cdf0e10cSrcweir           xmlns:dc="http://purl.org/dc/elements/1.1/">
50cdf0e10cSrcweir    <xs:import namespace="http://purl.org/dc/elements/1.1/" schemaLocation="dc.xsd"/>
51cdf0e10cSrcweir    <xs:import namespace="http://www.w3.org/1998/Math/MathML" schemaLocation="math.xsd"/>
52cdf0e10cSrcweir    <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="xlink.xsd"/>
53cdf0e10cSrcweir    <xs:import namespace="http://www.w3.org/2002/xforms" schemaLocation="xforms.xsd"/>
54cdf0e10cSrcweir    <xs:import namespace="urn:oasis:names:tc:opendocument:xmlns:animation:1.0" schemaLocation="anim.xsd"/>
55cdf0e10cSrcweir    <xs:import namespace="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" schemaLocation="chart.xsd"/>
56cdf0e10cSrcweir    <xs:import namespace="urn:oasis:names:tc:opendocument:xmlns:config:1.0" schemaLocation="config.xsd"/>
57cdf0e10cSrcweir    <xs:import namespace="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" schemaLocation="ns1.xsd"/>
58cdf0e10cSrcweir    <xs:import namespace="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" schemaLocation="dr3d.xsd"/>
59cdf0e10cSrcweir    <xs:import namespace="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" schemaLocation="draw.xsd"/>
60cdf0e10cSrcweir    <xs:import namespace="urn:oasis:names:tc:opendocument:xmlns:form:1.0" schemaLocation="form.xsd"/>
61cdf0e10cSrcweir    <xs:import namespace="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" schemaLocation="meta.xsd"/>
62cdf0e10cSrcweir    <xs:import namespace="urn:oasis:names:tc:opendocument:xmlns:office:1.0" schemaLocation="office.xsd"/>
63cdf0e10cSrcweir    <xs:import namespace="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" schemaLocation="presentation.xsd"/>
64cdf0e10cSrcweir    <xs:import namespace="urn:oasis:names:tc:opendocument:xmlns:script:1.0" schemaLocation="script.xsd"/>
65cdf0e10cSrcweir    <xs:import namespace="urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0" schemaLocation="smil.xsd"/>
66cdf0e10cSrcweir    <xs:import namespace="urn:oasis:names:tc:opendocument:xmlns:style:1.0" schemaLocation="style.xsd"/>
67cdf0e10cSrcweir    <xs:import namespace="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" schemaLocation="svg.xsd"/>
68cdf0e10cSrcweir    <xs:import namespace="urn:oasis:names:tc:opendocument:xmlns:table:1.0" schemaLocation="table.xsd"/>
69cdf0e10cSrcweir    <xs:import namespace="urn:oasis:names:tc:opendocument:xmlns:text:1.0" schemaLocation="OpenDocument-schema-v1.0-os.xsd"/>
70cdf0e10cSrcweir    <xs:import namespace="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" schemaLocation="fo.xsd"/>
71cdf0e10cSrcweir    <xs:attributeGroup name="office-report-attlist">
72cdf0e10cSrcweir        <xs:attribute name="command-type" default="command" form="qualified">
73cdf0e10cSrcweir            <xs:simpleType>
74cdf0e10cSrcweir                <xs:restriction base="xs:token">
75cdf0e10cSrcweir                    <xs:enumeration value="table"/>
76cdf0e10cSrcweir                    <xs:enumeration value="query"/>
77cdf0e10cSrcweir                    <xs:enumeration value="command"/>
78cdf0e10cSrcweir                </xs:restriction>
79cdf0e10cSrcweir            </xs:simpleType>
80cdf0e10cSrcweir        </xs:attribute>
81cdf0e10cSrcweir        <xs:attribute name="command" form="qualified" type="text:string"/>
82cdf0e10cSrcweir        <xs:attribute name="escape-processing" default="true" form="qualified" type="text:boolean"/>
83cdf0e10cSrcweir        <xs:attribute name="filter" form="qualified" type="text:string"/>
84cdf0e10cSrcweir        <xs:attribute name="caption" form="qualified" type="text:string"/>
85cdf0e10cSrcweir    </xs:attributeGroup>
86cdf0e10cSrcweir    <xs:element name="report-component">
87cdf0e10cSrcweir        <xs:complexType>
88cdf0e10cSrcweir            <xs:attributeGroup ref="text:common-draw-name-attlist"/>
89cdf0e10cSrcweir        </xs:complexType>
90cdf0e10cSrcweir    </xs:element>
91cdf0e10cSrcweir    <xs:element name="group">
92cdf0e10cSrcweir        <xs:complexType>
93cdf0e10cSrcweir            <xs:sequence>
94cdf0e10cSrcweir                <xs:element minOccurs="0" maxOccurs="unbounded" ref="rpt:function"/>
95cdf0e10cSrcweir                <xs:element minOccurs="0" ref="rpt:group-header"/>
96cdf0e10cSrcweir                <xs:choice>
97cdf0e10cSrcweir                    <xs:element ref="rpt:group"/>
98cdf0e10cSrcweir                    <xs:element ref="rpt:detail"/>
99cdf0e10cSrcweir                </xs:choice>
100cdf0e10cSrcweir                <xs:element minOccurs="0" ref="rpt:group-footer"/>
101cdf0e10cSrcweir            </xs:sequence>
102cdf0e10cSrcweir            <xs:attributeGroup ref="rpt:rpt-group-attlist"/>
103cdf0e10cSrcweir        </xs:complexType>
104cdf0e10cSrcweir    </xs:element>
105cdf0e10cSrcweir    <xs:attributeGroup name="rpt-group-attlist">
106cdf0e10cSrcweir        <xs:attribute name="sort-ascending" use="required" form="qualified">
107cdf0e10cSrcweir            <xs:simpleType>
108cdf0e10cSrcweir                <xs:restriction base="xs:token">
109cdf0e10cSrcweir                    <xs:enumeration value="true"/>
110cdf0e10cSrcweir                    <xs:enumeration value="false"/>
111cdf0e10cSrcweir                </xs:restriction>
112cdf0e10cSrcweir            </xs:simpleType>
113cdf0e10cSrcweir        </xs:attribute>
114cdf0e10cSrcweir        <xs:attribute name="start-new-column" default="false" form="qualified">
115cdf0e10cSrcweir            <xs:simpleType>
116cdf0e10cSrcweir                <xs:restriction base="xs:token">
117cdf0e10cSrcweir                    <xs:enumeration value="true"/>
118cdf0e10cSrcweir                    <xs:enumeration value="false"/>
119cdf0e10cSrcweir                </xs:restriction>
120cdf0e10cSrcweir            </xs:simpleType>
121cdf0e10cSrcweir        </xs:attribute>
122cdf0e10cSrcweir        <xs:attribute name="reset-page-number" default="false" form="qualified">
123cdf0e10cSrcweir            <xs:simpleType>
124cdf0e10cSrcweir                <xs:restriction base="xs:token">
125cdf0e10cSrcweir                    <xs:enumeration value="true"/>
126cdf0e10cSrcweir                    <xs:enumeration value="false"/>
127cdf0e10cSrcweir                </xs:restriction>
128cdf0e10cSrcweir            </xs:simpleType>
129cdf0e10cSrcweir        </xs:attribute>
130cdf0e10cSrcweir        <xs:attribute name="print-header-on-each-page" default="false" form="qualified">
131cdf0e10cSrcweir            <xs:simpleType>
132cdf0e10cSrcweir                <xs:restriction base="xs:token">
133cdf0e10cSrcweir                    <xs:enumeration value="true"/>
134cdf0e10cSrcweir                    <xs:enumeration value="false"/>
135cdf0e10cSrcweir                </xs:restriction>
136cdf0e10cSrcweir            </xs:simpleType>
137cdf0e10cSrcweir        </xs:attribute>
138cdf0e10cSrcweir        <xs:attribute name="group-expression" use="required" form="qualified" type="text:string"/>
139cdf0e10cSrcweir        <xs:attribute name="keep-together" default="no" form="qualified">
140cdf0e10cSrcweir            <xs:simpleType>
141cdf0e10cSrcweir                <xs:restriction base="xs:token">
142cdf0e10cSrcweir                    <xs:enumeration value="no"/>
143cdf0e10cSrcweir                    <xs:enumeration value="whole-group"/>
144cdf0e10cSrcweir                    <xs:enumeration value="with-first-detail"/>
145cdf0e10cSrcweir                </xs:restriction>
146cdf0e10cSrcweir            </xs:simpleType>
147cdf0e10cSrcweir        </xs:attribute>
148cdf0e10cSrcweir    </xs:attributeGroup>
149cdf0e10cSrcweir    <xs:element name="group-header">
150cdf0e10cSrcweir        <xs:complexType>
151cdf0e10cSrcweir            <xs:sequence>
152cdf0e10cSrcweir                <xs:element ref="table:table"/>
153cdf0e10cSrcweir            </xs:sequence>
154cdf0e10cSrcweir            <xs:attributeGroup ref="rpt:rpt-group-section-attlist"/>
155cdf0e10cSrcweir        </xs:complexType>
156cdf0e10cSrcweir    </xs:element>
157cdf0e10cSrcweir    <xs:element name="group-footer">
158cdf0e10cSrcweir        <xs:complexType>
159cdf0e10cSrcweir            <xs:sequence>
160cdf0e10cSrcweir                <xs:element ref="table:table"/>
161cdf0e10cSrcweir            </xs:sequence>
162cdf0e10cSrcweir            <xs:attributeGroup ref="rpt:rpt-group-section-attlist"/>
163cdf0e10cSrcweir        </xs:complexType>
164cdf0e10cSrcweir    </xs:element>
165cdf0e10cSrcweir    <xs:element name="report-header">
166cdf0e10cSrcweir        <xs:complexType>
167cdf0e10cSrcweir            <xs:sequence>
168cdf0e10cSrcweir                <xs:element ref="table:table"/>
169cdf0e10cSrcweir            </xs:sequence>
170cdf0e10cSrcweir        </xs:complexType>
171cdf0e10cSrcweir    </xs:element>
172cdf0e10cSrcweir    <xs:element name="page-header">
173cdf0e10cSrcweir        <xs:complexType>
174cdf0e10cSrcweir            <xs:sequence>
175cdf0e10cSrcweir                <xs:element ref="table:table"/>
176cdf0e10cSrcweir            </xs:sequence>
177cdf0e10cSrcweir            <xs:attributeGroup ref="rpt:rpt-page-attlist"/>
178cdf0e10cSrcweir        </xs:complexType>
179cdf0e10cSrcweir    </xs:element>
180cdf0e10cSrcweir    <xs:element name="column-header">
181cdf0e10cSrcweir        <xs:complexType>
182cdf0e10cSrcweir            <xs:sequence>
183cdf0e10cSrcweir                <xs:element ref="table:table"/>
184cdf0e10cSrcweir            </xs:sequence>
185cdf0e10cSrcweir        </xs:complexType>
186cdf0e10cSrcweir    </xs:element>
187cdf0e10cSrcweir    <xs:element name="detail">
188cdf0e10cSrcweir        <xs:complexType>
189cdf0e10cSrcweir            <xs:sequence>
190cdf0e10cSrcweir                <xs:element ref="table:table"/>
191cdf0e10cSrcweir            </xs:sequence>
192cdf0e10cSrcweir        </xs:complexType>
193cdf0e10cSrcweir    </xs:element>
194cdf0e10cSrcweir    <xs:element name="column-footer">
195cdf0e10cSrcweir        <xs:complexType>
196cdf0e10cSrcweir            <xs:sequence>
197cdf0e10cSrcweir                <xs:element ref="table:table"/>
198cdf0e10cSrcweir            </xs:sequence>
199cdf0e10cSrcweir        </xs:complexType>
200cdf0e10cSrcweir    </xs:element>
201cdf0e10cSrcweir    <xs:element name="page-footer">
202cdf0e10cSrcweir        <xs:complexType>
203cdf0e10cSrcweir            <xs:sequence>
204cdf0e10cSrcweir                <xs:element ref="table:table"/>
205cdf0e10cSrcweir            </xs:sequence>
206cdf0e10cSrcweir            <xs:attributeGroup ref="rpt:rpt-page-attlist"/>
207cdf0e10cSrcweir        </xs:complexType>
208cdf0e10cSrcweir    </xs:element>
209cdf0e10cSrcweir    <xs:element name="report-footer">
210cdf0e10cSrcweir        <xs:complexType>
211cdf0e10cSrcweir            <xs:sequence>
212cdf0e10cSrcweir                <xs:element ref="table:table"/>
213cdf0e10cSrcweir            </xs:sequence>
214cdf0e10cSrcweir        </xs:complexType>
215cdf0e10cSrcweir    </xs:element>
216cdf0e10cSrcweir    <xs:attributeGroup name="rpt-page-attlist">
217cdf0e10cSrcweir        <xs:attribute name="page-print-option" default="all-pages" form="qualified">
218cdf0e10cSrcweir            <xs:simpleType>
219cdf0e10cSrcweir                <xs:restriction base="xs:token">
220cdf0e10cSrcweir                    <xs:enumeration value="all-pages"/>
221cdf0e10cSrcweir                    <xs:enumeration value="not-with-report-header"/>
222cdf0e10cSrcweir                    <xs:enumeration value="not-with-report-footer"/>
223cdf0e10cSrcweir                    <xs:enumeration value="not-with-report-header-nor-footer"/>
224cdf0e10cSrcweir                </xs:restriction>
225cdf0e10cSrcweir            </xs:simpleType>
226cdf0e10cSrcweir        </xs:attribute>
227cdf0e10cSrcweir    </xs:attributeGroup>
228cdf0e10cSrcweir    <xs:attributeGroup name="rpt-section-attlist">
229cdf0e10cSrcweir        <xs:attribute name="visible" default="true" form="qualified">
230cdf0e10cSrcweir            <xs:simpleType>
231cdf0e10cSrcweir                <xs:restriction base="xs:token">
232cdf0e10cSrcweir                    <xs:enumeration value="true"/>
233cdf0e10cSrcweir                    <xs:enumeration value="false"/>
234cdf0e10cSrcweir                </xs:restriction>
235cdf0e10cSrcweir            </xs:simpleType>
236cdf0e10cSrcweir        </xs:attribute>
237cdf0e10cSrcweir        <xs:attribute name="force-new-page" default="none" form="qualified">
238cdf0e10cSrcweir            <xs:simpleType>
239cdf0e10cSrcweir                <xs:restriction base="xs:token">
240cdf0e10cSrcweir                    <xs:enumeration value="none"/>
241cdf0e10cSrcweir                    <xs:enumeration value="before-section"/>
242cdf0e10cSrcweir                    <xs:enumeration value="after-section"/>
243cdf0e10cSrcweir                    <xs:enumeration value="before-after-section"/>
244cdf0e10cSrcweir                </xs:restriction>
245cdf0e10cSrcweir            </xs:simpleType>
246cdf0e10cSrcweir        </xs:attribute>
247cdf0e10cSrcweir        <xs:attribute name="new-row-or-column" default="none" form="qualified">
248cdf0e10cSrcweir            <xs:simpleType>
249cdf0e10cSrcweir                <xs:restriction base="xs:token">
250cdf0e10cSrcweir                    <xs:enumeration value="none"/>
251cdf0e10cSrcweir                    <xs:enumeration value="before-section"/>
252cdf0e10cSrcweir                    <xs:enumeration value="after-section"/>
253cdf0e10cSrcweir                    <xs:enumeration value="before-after-section"/>
254cdf0e10cSrcweir                </xs:restriction>
255cdf0e10cSrcweir            </xs:simpleType>
256cdf0e10cSrcweir        </xs:attribute>
257cdf0e10cSrcweir        <xs:attribute name="keep-together" default="false" form="qualified">
258cdf0e10cSrcweir            <xs:simpleType>
259cdf0e10cSrcweir                <xs:restriction base="xs:token">
260cdf0e10cSrcweir                    <xs:enumeration value="true"/>
261cdf0e10cSrcweir                    <xs:enumeration value="false"/>
262cdf0e10cSrcweir                </xs:restriction>
263cdf0e10cSrcweir            </xs:simpleType>
264cdf0e10cSrcweir        </xs:attribute>
265cdf0e10cSrcweir    </xs:attributeGroup>
266cdf0e10cSrcweir    <xs:attributeGroup name="rpt-group-section-attlist">
267cdf0e10cSrcweir        <xs:attribute name="repeat-section" default="false" form="qualified">
268cdf0e10cSrcweir            <xs:simpleType>
269cdf0e10cSrcweir                <xs:restriction base="xs:token">
270cdf0e10cSrcweir                    <xs:enumeration value="true"/>
271cdf0e10cSrcweir                    <xs:enumeration value="false"/>
272cdf0e10cSrcweir                </xs:restriction>
273cdf0e10cSrcweir            </xs:simpleType>
274cdf0e10cSrcweir        </xs:attribute>
275cdf0e10cSrcweir    </xs:attributeGroup>
276cdf0e10cSrcweir    <xs:element name="sub-document">
277cdf0e10cSrcweir        <xs:complexType>
278cdf0e10cSrcweir            <xs:sequence>
279cdf0e10cSrcweir                <xs:group ref="rpt:report-master-detail-fields"/>
280cdf0e10cSrcweir                <xs:element ref="rpt:report-element"/>
281cdf0e10cSrcweir                <xs:choice minOccurs="0">
282cdf0e10cSrcweir                    <xs:element ref="office:document"/>
283cdf0e10cSrcweir                    <xs:element ref="math:math"/>
284cdf0e10cSrcweir                </xs:choice>
285cdf0e10cSrcweir            </xs:sequence>
286cdf0e10cSrcweir            <xs:attributeGroup ref="rpt:report-sub-document-attlist"/>
287cdf0e10cSrcweir        </xs:complexType>
288cdf0e10cSrcweir    </xs:element>
289cdf0e10cSrcweir    <xs:attributeGroup name="report-sub-document-attlist">
290cdf0e10cSrcweir        <xs:attribute ref="xlink:href"/>
291cdf0e10cSrcweir        <xs:attribute ref="xlink:type"/>
292cdf0e10cSrcweir        <xs:attributeGroup ref="xlink:show"/>
293cdf0e10cSrcweir        <xs:attributeGroup ref="xlink:actuate"/>
294cdf0e10cSrcweir    </xs:attributeGroup>
295cdf0e10cSrcweir    <xs:group name="report-master-detail-fields">
296cdf0e10cSrcweir        <xs:sequence>
297cdf0e10cSrcweir            <xs:element minOccurs="0" ref="rpt:master-detail-fields"/>
298cdf0e10cSrcweir        </xs:sequence>
299cdf0e10cSrcweir    </xs:group>
300cdf0e10cSrcweir    <xs:element name="master-detail-fields">
301cdf0e10cSrcweir        <xs:complexType>
302cdf0e10cSrcweir            <xs:sequence>
303cdf0e10cSrcweir                <xs:element minOccurs="0" maxOccurs="unbounded" ref="rpt:master-detail-field"/>
304cdf0e10cSrcweir            </xs:sequence>
305cdf0e10cSrcweir        </xs:complexType>
306cdf0e10cSrcweir    </xs:element>
307cdf0e10cSrcweir    <xs:element name="master-detail-field">
308cdf0e10cSrcweir        <xs:complexType>
309cdf0e10cSrcweir            <xs:attribute name="master" use="required" form="qualified" type="text:string"/>
310cdf0e10cSrcweir            <xs:attribute name="detail" form="qualified" type="text:string"/>
311cdf0e10cSrcweir        </xs:complexType>
312cdf0e10cSrcweir    </xs:element>
313cdf0e10cSrcweir    <xs:element name="function">
314cdf0e10cSrcweir        <xs:complexType>
315cdf0e10cSrcweir            <xs:attribute name="formula" use="required" form="qualified" type="text:formula"/>
316cdf0e10cSrcweir            <xs:attribute name="name" use="required" form="qualified" type="text:string"/>
317cdf0e10cSrcweir            <xs:attribute name="pre-evaluated" use="required" form="qualified">
318cdf0e10cSrcweir                <xs:simpleType>
319cdf0e10cSrcweir                    <xs:restriction base="xs:token">
320cdf0e10cSrcweir                        <xs:enumeration value="true"/>
321cdf0e10cSrcweir                        <xs:enumeration value="false"/>
322cdf0e10cSrcweir                    </xs:restriction>
323cdf0e10cSrcweir                </xs:simpleType>
324cdf0e10cSrcweir            </xs:attribute>
325cdf0e10cSrcweir        </xs:complexType>
326cdf0e10cSrcweir    </xs:element>
327cdf0e10cSrcweir    <xs:element name="report-element">
328cdf0e10cSrcweir        <xs:complexType>
329cdf0e10cSrcweir            <xs:sequence>
330cdf0e10cSrcweir                <xs:element minOccurs="0" ref="rpt:conditional-print-expression"/>
331cdf0e10cSrcweir                <xs:element minOccurs="0" ref="rpt:report-component"/>
332cdf0e10cSrcweir                <xs:element minOccurs="0" maxOccurs="unbounded" ref="rpt:format-condition"/>
333cdf0e10cSrcweir            </xs:sequence>
334cdf0e10cSrcweir            <xs:attributeGroup ref="rpt:rpt-report-element-attlist"/>
335cdf0e10cSrcweir        </xs:complexType>
336cdf0e10cSrcweir    </xs:element>
337cdf0e10cSrcweir    <xs:attributeGroup name="rpt-report-element-attlist">
338cdf0e10cSrcweir        <xs:attribute name="print-when-group-change" default="false" form="qualified">
339cdf0e10cSrcweir            <xs:simpleType>
340cdf0e10cSrcweir                <xs:restriction base="xs:token">
341cdf0e10cSrcweir                    <xs:enumeration value="true"/>
342cdf0e10cSrcweir                    <xs:enumeration value="false"/>
343cdf0e10cSrcweir                </xs:restriction>
344cdf0e10cSrcweir            </xs:simpleType>
345cdf0e10cSrcweir        </xs:attribute>
346cdf0e10cSrcweir        <xs:attribute name="print-repeated-values" default="true" form="qualified">
347cdf0e10cSrcweir            <xs:simpleType>
348cdf0e10cSrcweir                <xs:restriction base="xs:token">
349cdf0e10cSrcweir                    <xs:enumeration value="true"/>
350cdf0e10cSrcweir                    <xs:enumeration value="false"/>
351cdf0e10cSrcweir                </xs:restriction>
352cdf0e10cSrcweir            </xs:simpleType>
353cdf0e10cSrcweir        </xs:attribute>
354cdf0e10cSrcweir    </xs:attributeGroup>
355cdf0e10cSrcweir    <xs:element name="conditional-print-expression" type="xs:string"/>
356cdf0e10cSrcweir    <xs:element name="format-condition">
357cdf0e10cSrcweir        <xs:complexType>
358cdf0e10cSrcweir            <xs:attributeGroup ref="rpt:rpt-format-condition-attlist"/>
359cdf0e10cSrcweir        </xs:complexType>
360cdf0e10cSrcweir    </xs:element>
361cdf0e10cSrcweir    <xs:attributeGroup name="rpt-format-condition-attlist">
362cdf0e10cSrcweir        <xs:attribute name="enabled" default="false" form="qualified">
363cdf0e10cSrcweir            <xs:simpleType>
364cdf0e10cSrcweir                <xs:restriction base="xs:token">
365cdf0e10cSrcweir                    <xs:enumeration value="true"/>
366cdf0e10cSrcweir                    <xs:enumeration value="false"/>
367cdf0e10cSrcweir                </xs:restriction>
368cdf0e10cSrcweir            </xs:simpleType>
369cdf0e10cSrcweir        </xs:attribute>
370cdf0e10cSrcweir        <xs:attribute name="formula" form="qualified" type="text:formula"/>
371cdf0e10cSrcweir    </xs:attributeGroup>
372cdf0e10cSrcweir    <xs:element name="fixed-content">
373cdf0e10cSrcweir        <xs:complexType>
374cdf0e10cSrcweir            <xs:sequence>
375cdf0e10cSrcweir                <xs:element ref="rpt:report-element"/>
376cdf0e10cSrcweir                <xs:element ref="text:p"/>
377cdf0e10cSrcweir            </xs:sequence>
378cdf0e10cSrcweir        </xs:complexType>
379cdf0e10cSrcweir    </xs:element>
380cdf0e10cSrcweir    <xs:element name="formatted-text">
381cdf0e10cSrcweir        <xs:complexType>
382cdf0e10cSrcweir            <xs:sequence>
383cdf0e10cSrcweir                <xs:element ref="rpt:report-element"/>
384cdf0e10cSrcweir                <xs:group ref="text:common-form-control-content"/>
385cdf0e10cSrcweir            </xs:sequence>
386cdf0e10cSrcweir        </xs:complexType>
387cdf0e10cSrcweir    </xs:element>
388cdf0e10cSrcweir    <xs:attributeGroup name="rpt-formatted-text-attlist">
389cdf0e10cSrcweir        <xs:attributeGroup ref="text:common-data-field-attlist"/>
390cdf0e10cSrcweir    </xs:attributeGroup>
391cdf0e10cSrcweir    <xs:element name="image">
392cdf0e10cSrcweir        <xs:complexType>
393cdf0e10cSrcweir            <xs:sequence>
394cdf0e10cSrcweir                <xs:element ref="rpt:report-element"/>
395cdf0e10cSrcweir            </xs:sequence>
396cdf0e10cSrcweir        </xs:complexType>
397cdf0e10cSrcweir    </xs:element>
398cdf0e10cSrcweir    <xs:attributeGroup name="rpt-image-attlist">
399cdf0e10cSrcweir        <xs:attributeGroup ref="text:common-data-field-attlist"/>
400cdf0e10cSrcweir        <xs:attributeGroup ref="text:image-data"/>
401cdf0e10cSrcweir        <xs:attribute name="scale" use="required" form="qualified">
402cdf0e10cSrcweir            <xs:simpleType>
403cdf0e10cSrcweir                <xs:restriction base="xs:token">
404cdf0e10cSrcweir                    <xs:enumeration value="true"/>
405cdf0e10cSrcweir                    <xs:enumeration value="false"/>
406cdf0e10cSrcweir                </xs:restriction>
407cdf0e10cSrcweir            </xs:simpleType>
408cdf0e10cSrcweir        </xs:attribute>
409cdf0e10cSrcweir    </xs:attributeGroup>
410cdf0e10cSrcweir</xs:schema>
411