cid#1607171 Data race condition
[LibreOffice.git] / reportbuilder / java / org / libreoffice / report / pentaho / styles / stylemapper.xsd
blobfeb7234e83c0dd6ffb45c3023aeee6bba9895f2d
1 <!--
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
17 -->
18 <xsd:schema version="0.9"
19 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
20 xmlns="http://jfreereport.sourceforge.net/namespaces/engine/openoffice/stylemapper"
21 targetNamespace="http://jfreereport.sourceforge.net/namespaces/engine/openoffice/stylemapper"
22 attributeFormDefault="unqualified">
23 <xsd:annotation>
24 <xsd:documentation>
25 This schema describes the format of the stylemapper definition file.
26 The stylemapper declares what style-families are referenced by an element.
27 </xsd:documentation>
28 </xsd:annotation>
30 <xsd:simpleType name="styleNameRefType">
31 <xsd:restriction base="xsd:NMTOKEN">
32 <xsd:enumeration value="styleNameRef"/>
33 <xsd:enumeration value="styleNameRefs"/>
34 </xsd:restriction>
35 </xsd:simpleType>
37 <xsd:simpleType name="styleFamilyType">
38 <xsd:restriction base="xsd:NMTOKEN">
39 <xsd:enumeration value="paragraph"/>
40 <xsd:enumeration value="text"/>
41 <xsd:enumeration value="section"/>
42 <xsd:enumeration value="table"/>
43 <xsd:enumeration value="table-column"/>
44 <xsd:enumeration value="table-row"/>
45 <xsd:enumeration value="table-cell"/>
46 <xsd:enumeration value="table-page"/>
47 <xsd:enumeration value="chart"/>
48 <xsd:enumeration value="default"/>
49 <xsd:enumeration value="drawing-page"/>
50 <xsd:enumeration value="graphic"/>
51 <xsd:enumeration value="presentation"/>
52 <xsd:enumeration value="control"/>
53 <xsd:enumeration value="ruby"/>
54 <xsd:enumeration value="custom-shape"/>
55 </xsd:restriction>
56 </xsd:simpleType>
58 <xsd:element name="mapping">
59 <xsd:complexType>
60 <xsd:attribute name="element-namespace" use="required" type="xsd:anyURI"/>
61 <xsd:attribute name="element-name" use="required" type="xsd:NCName"/>
62 <xsd:attribute name="attribute-namespace" use="required" type="xsd:anyURI"/>
63 <xsd:attribute name="attribute-name" use="required" type="xsd:NCName"/>
64 <xsd:attribute name="type" use="required" type="styleNameRefType"/>
65 <xsd:attribute name="style-family" use="required" type="styleFamilyType"/>
66 </xsd:complexType>
67 </xsd:element>
69 <xsd:element name="style-mapper-definition">
70 <xsd:complexType>
71 <xsd:complexContent>
72 <xsd:restriction base="xsd:anyType">
73 <xsd:sequence>
74 <xsd:element ref="mapping" minOccurs="0" maxOccurs="unbounded"/>
75 </xsd:sequence>
76 </xsd:restriction>
77 </xsd:complexContent>
78 </xsd:complexType>
79 </xsd:element>
81 </xsd:schema>