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 .
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">
25 This schema describes the format of the stylemapper definition file.
26 The stylemapper declares what style-families are referenced by an element.
30 <xsd:simpleType name=
"styleNameRefType">
31 <xsd:restriction base=
"xsd:NMTOKEN">
32 <xsd:enumeration value=
"styleNameRef"/>
33 <xsd:enumeration value=
"styleNameRefs"/>
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"/>
58 <xsd:element name=
"mapping">
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"/>
69 <xsd:element name=
"style-mapper-definition">
72 <xsd:restriction base=
"xsd:anyType">
74 <xsd:element ref=
"mapping" minOccurs=
"0" maxOccurs=
"unbounded"/>