-
Notifications
You must be signed in to change notification settings - Fork 0
/
appdata.rng
151 lines (149 loc) · 3.64 KB
/
appdata.rng
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<!--
RELAX NG schema for http://people.freedesktop.org/~hughsient/appdata/
Written by Simon Kågedal Reimer 2013 <[email protected]>
Released as Public Domain (CC0 1.0)
appdata.rnc is the source; appdata.rng is generated with trang.
Don't edit appdata.rng.
-->
<start>
<ref name="application"/>
</start>
<define name="application">
<element name="application">
<interleave>
<ref name="id"/>
<ref name="licence"/>
<optional>
<ref name="name"/>
</optional>
<optional>
<ref name="summary"/>
</optional>
<ref name="description"/>
<optional>
<ref name="screenshots"/>
</optional>
<zeroOrMore>
<ref name="url"/>
</zeroOrMore>
<optional>
<ref name="updatecontact"/>
</optional>
</interleave>
</element>
</define>
<define name="id">
<element name="id">
<!-- Other types? -->
<attribute name="type">
<value type="string" datatypeLibrary="">desktop</value>
</attribute>
<text/>
</element>
</define>
<!-- Other licences? Worth restricting this at all, or use free content? -->
<define name="licence">
<element name="licence">
<choice>
<value type="string" datatypeLibrary="">CC0</value>
<value type="string" datatypeLibrary="">CC BY</value>
<value type="string" datatypeLibrary="">CC BY-SA</value>
</choice>
</element>
</define>
<define name="name">
<element name="name">
<text/>
</element>
</define>
<define name="summary">
<element name="summary">
<text/>
</element>
</define>
<define name="description">
<element name="description">
<zeroOrMore>
<choice>
<ref name="p"/>
<ref name="ul"/>
<ref name="ol"/>
</choice>
</zeroOrMore>
</element>
</define>
<define name="p">
<element name="p">
<text/>
</element>
</define>
<define name="ul">
<element name="ul">
<ref name="Entries"/>
</element>
</define>
<define name="ol">
<element name="ol">
<ref name="Entries"/>
</element>
</define>
<define name="Entries">
<oneOrMore>
<element name="li">
<text/>
</element>
</oneOrMore>
</define>
<define name="screenshots">
<element name="screenshots">
<oneOrMore>
<ref name="screenshot"/>
</oneOrMore>
</element>
</define>
<define name="screenshot">
<element name="screenshot">
<optional>
<attribute name="type">
<value type="string" datatypeLibrary="">default</value>
</attribute>
</optional>
<!-- Other types? -->
<attribute name="width">
<data type="integer"/>
</attribute>
<attribute name="height">
<data type="integer"/>
</attribute>
<data type="anyURI">
<except>
<value/>
</except>
</data>
</element>
</define>
<define name="url">
<element name="url">
<optional>
<attribute name="type">
<value type="string" datatypeLibrary="">homepage</value>
</attribute>
</optional>
<!-- Other types? -->
<group>
<data type="anyURI">
<except>
<value/>
</except>
</data>
</group>
</element>
</define>
<define name="updatecontact">
<element name="updatecontact">
<text/>
</element>
</define>
</grammar>