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