Skip to content

Commit e308e84

Browse files
committed
qubes.rng: reorder according to how we construct xml
1 parent 9b8407f commit e308e84

File tree

1 file changed

+32
-30
lines changed

1 file changed

+32
-30
lines changed

relaxng/qubes.rng

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,38 @@ the parser will complain about missing combine= attribute on the second <start>.
181181
</element>
182182
</optional>
183183

184+
<optional>
185+
<element name="tags">
186+
<doc:description>
187+
Container for user-defined tags.
188+
</doc:description>
189+
190+
<oneOrMore>
191+
<element name="tag">
192+
<doc:description>
193+
Tag value.
194+
195+
Tags are not used anywhere by qubes core, they
196+
are for users reference. In the future they
197+
will be available for use in policies.
198+
</doc:description>
199+
200+
<attribute name="name">
201+
<doc:description>
202+
Name of the tag.
203+
</doc:description>
204+
205+
<data type="string">
206+
<param name="pattern">[a-z0-9_-]+</param>
207+
</data>
208+
</attribute>
209+
210+
<data type="string" />
211+
</element>
212+
</oneOrMore>
213+
</element>
214+
</optional>
215+
184216
<zeroOrMore>
185217
<element name="devices">
186218
<doc:description>
@@ -276,37 +308,7 @@ the parser will complain about missing combine= attribute on the second <start>.
276308
</element>
277309
</zeroOrMore>
278310

279-
<optional>
280-
<element name="tags">
281-
<doc:description>
282-
Container for user-defined tags.
283-
</doc:description>
284-
285-
<oneOrMore>
286-
<element name="tag">
287-
<doc:description>
288-
Tag value.
289-
290-
Tags are not used anywhere by qubes core, they
291-
are for users reference. In the future they
292-
will be available for use in policies.
293-
</doc:description>
294311

295-
<attribute name="name">
296-
<doc:description>
297-
Name of the tag.
298-
</doc:description>
299-
300-
<data type="string">
301-
<param name="pattern">[a-z0-9_-]+</param>
302-
</data>
303-
</attribute>
304-
305-
<data type="string" />
306-
</element>
307-
</oneOrMore>
308-
</element>
309-
</optional>
310312

311313
<!-- TODO: policy, incl. firewall -->
312314
</element>

0 commit comments

Comments
 (0)