lok: add character parameter to renderFont
[LibreOffice.git] / schema / libreoffice / OpenDocument-manifest-schema-v1.3+libreoffice.rng
blobf485ffbd019cf838a0bcdc09e4eef3b3b8396914
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 Manifest Relax-NG Schema
6 Source: https://tools.oasis-open.org/version-control/svn/office/
7 Copyright (c) OASIS Open 2002-2011. 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:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" xmlns:rng="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
35 <rng:start>
36 <rng:choice>
37 <rng:ref name="manifest"/>
38 </rng:choice>
39 </rng:start>
40 <rng:define name="algorithm">
41 <rng:element name="manifest:algorithm">
42 <rng:ref name="algorithm-attlist"/>
43 <rng:ref name="anyElements"/>
44 </rng:element>
45 </rng:define>
46 <rng:define name="algorithm-attlist">
47 <rng:interleave>
48 <rng:attribute name="manifest:algorithm-name">
49 <rng:choice>
50 <rng:value>Blowfish CFB</rng:value>
51 <rng:ref name="anyURI"/>
52 </rng:choice>
53 </rng:attribute>
54 <rng:attribute name="manifest:initialisation-vector">
55 <rng:ref name="base64Binary"/>
56 </rng:attribute>
57 </rng:interleave>
58 </rng:define>
59 <rng:define name="anyAttListOrElements">
60 <rng:zeroOrMore>
61 <rng:attribute>
62 <rng:anyName/>
63 <rng:text/>
64 </rng:attribute>
65 </rng:zeroOrMore>
66 <rng:ref name="anyElements"/>
67 </rng:define>
68 <rng:define name="anyElements">
69 <rng:zeroOrMore>
70 <rng:element>
71 <rng:anyName/>
72 <rng:mixed>
73 <rng:ref name="anyAttListOrElements"/>
74 </rng:mixed>
75 </rng:element>
76 </rng:zeroOrMore>
77 </rng:define>
78 <rng:define name="anyURI">
79 <rng:data type="anyURI"/>
80 </rng:define>
81 <rng:define name="base64Binary">
82 <rng:data type="base64Binary"/>
83 </rng:define>
84 <rng:define name="encryption-data">
85 <rng:element name="manifest:encryption-data">
86 <rng:ref name="encryption-data-attlist"/>
87 <rng:ref name="algorithm"/>
88 <rng:optional>
89 <rng:ref name="start-key-generation"/>
90 </rng:optional>
91 <rng:ref name="key-derivation"/>
92 </rng:element>
93 </rng:define>
94 <rng:define name="encryption-data-attlist">
95 <rng:interleave>
96 <rng:attribute name="manifest:checksum-type">
97 <rng:choice>
98 <rng:value>SHA1/1K</rng:value>
99 <rng:ref name="anyURI"/>
100 </rng:choice>
101 </rng:attribute>
102 <rng:attribute name="manifest:checksum">
103 <rng:ref name="base64Binary"/>
104 </rng:attribute>
105 </rng:interleave>
106 </rng:define>
107 <rng:define name="file-entry">
108 <rng:element name="manifest:file-entry">
109 <rng:ref name="file-entry-attlist"/>
110 <rng:optional>
111 <rng:ref name="encryption-data"/>
112 </rng:optional>
113 </rng:element>
114 </rng:define>
115 <rng:define name="file-entry-attlist">
116 <rng:interleave>
117 <rng:attribute name="manifest:full-path">
118 <rng:ref name="string"/>
119 </rng:attribute>
120 <rng:optional>
121 <rng:attribute name="manifest:size">
122 <rng:ref name="nonNegativeInteger"/>
123 </rng:attribute>
124 </rng:optional>
125 <rng:attribute name="manifest:media-type">
126 <rng:ref name="string"/>
127 </rng:attribute>
128 <rng:optional>
129 <rng:attribute name="manifest:preferred-view-mode">
130 <rng:choice>
131 <rng:value>edit</rng:value>
132 <rng:value>presentation-slide-show</rng:value>
133 <rng:value>read-only</rng:value>
134 <rng:ref name="namespacedToken"/>
135 </rng:choice>
136 </rng:attribute>
137 </rng:optional>
138 <rng:optional>
139 <rng:attribute name="manifest:version">
140 <rng:ref name="string"/>
141 </rng:attribute>
142 </rng:optional>
143 </rng:interleave>
144 </rng:define>
145 <rng:define name="key-derivation">
146 <rng:element name="manifest:key-derivation">
147 <rng:ref name="key-derivation-attlist"/>
148 <rng:empty/>
149 </rng:element>
150 </rng:define>
151 <rng:define name="key-derivation-attlist">
152 <rng:interleave>
153 <rng:attribute name="manifest:key-derivation-name">
154 <rng:choice>
155 <rng:value>PBKDF2</rng:value>
156 <rng:ref name="anyURI"/>
157 </rng:choice>
158 </rng:attribute>
159 <rng:attribute name="manifest:salt">
160 <rng:ref name="base64Binary"/>
161 </rng:attribute>
162 <rng:attribute name="manifest:iteration-count">
163 <rng:ref name="nonNegativeInteger"/>
164 </rng:attribute>
165 <rng:optional>
166 <rng:attribute name="manifest:key-size">
167 <rng:ref name="nonNegativeInteger"/>
168 </rng:attribute>
169 </rng:optional>
170 </rng:interleave>
171 </rng:define>
172 <rng:define name="manifest">
173 <rng:element name="manifest:manifest">
174 <rng:ref name="manifest-attlist"/>
175 <rng:oneOrMore>
176 <rng:ref name="file-entry"/>
177 </rng:oneOrMore>
178 </rng:element>
179 </rng:define>
180 <rng:define name="manifest-attlist">
181 <rng:attribute name="manifest:version">
182 <rng:value>1.3</rng:value>
183 </rng:attribute>
184 </rng:define>
185 <rng:define name="namespacedToken">
186 <rng:data type="QName">
187 <rng:param name="pattern">[^:]+:[^:]+</rng:param>
188 </rng:data>
189 </rng:define>
190 <rng:define name="nonNegativeInteger">
191 <rng:data type="nonNegativeInteger"/>
192 </rng:define>
193 <rng:define name="start-key-generation">
194 <rng:element name="manifest:start-key-generation">
195 <rng:ref name="start-key-generation-attlist"/>
196 <rng:empty/>
197 </rng:element>
198 </rng:define>
199 <rng:define name="start-key-generation-attlist">
200 <rng:interleave>
201 <rng:attribute name="manifest:start-key-generation-name">
202 <rng:choice>
203 <rng:value>SHA1</rng:value>
204 <rng:ref name="anyURI"/>
205 </rng:choice>
206 </rng:attribute>
207 <rng:optional>
208 <rng:attribute name="manifest:key-size">
209 <rng:ref name="nonNegativeInteger"/>
210 </rng:attribute>
211 </rng:optional>
212 </rng:interleave>
213 </rng:define>
214 <rng:define name="string">
215 <rng:data type="string"/>
216 </rng:define>
217 </rng:grammar>