-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactes.rng
251 lines (251 loc) · 6.71 KB
/
actes.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
<?xml version="1.0" encoding="UTF-8"?>
<grammar datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://capetiens.github.io/actes/actes.rng" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">
<start>
<choice>
<ref name="catalogue"/>
<ref name="biblio"/>
</choice>
</start>
<define name="biblio">
<a:documentation>Une bibliographie de références, notamment utilisée pour remplacements</a:documentation>
<element name="biblio">
<oneOrMore>
<ref name="ref"/>
</oneOrMore>
</element>
</define>
<define name="ref">
<element name="ref">
<a:documentation>Une référence bibliographique siglée</a:documentation>
<attribute name="sigle"/>
<ref name="texte"/>
</element>
</define>
<define name="fonds">
<element name="fonds">
<a:documentation>Intitulé de fonds</a:documentation>
<ref name="texte"/>
</element>
</define>
<define name="catalogue">
<element name="catalogue">
<a:documentation>Une collection d’actes.</a:documentation>
<oneOrMore>
<ref name="acte"/>
</oneOrMore>
</element>
</define>
<define name="acte">
<element name="acte">
<attribute name="xml:id">
<a:documentation>Identifiant d’acte, préfixe de roi, numéro d’ordre</a:documentation>
<data type="ID">
<param name="pattern">(L10|P4|P5|C4)-[0-9]+</param>
</data>
</attribute>
<ref name="titre"/>
<optional>
<ref name="datation"/>
</optional>
<optional>
<ref name="localisation"/>
</optional>
<optional>
<ref name="analyse"/>
</optional>
<ref name="tradition"/>
<optional>
<ref name="expeditions"/>
</optional>
<optional>
<ref name="mentions"/>
</optional>
<optional>
<ref name="scellage"/>
</optional>
<optional>
<ref name="langue"/>
</optional>
<optional>
<ref name="remarques"/>
</optional>
<optional>
<ref name="personnel"/>
</optional>
</element>
</define>
<define name="titre">
<element name="titre">
<element name="date">
<a:documentation>Date de l’acte au format AAAA-MM-JJ.</a:documentation>
<choice>
<data type="token">
<param name="pattern">[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?</param>
</data>
<value>s.d.</value>
</choice>
</element>
<element name="lieu">
<text/>
</element>
</element>
</define>
<define name="analyse">
<element name="analyse">
<a:documentation>Pour l’instant, mots clés, pas encor affichable</a:documentation>
<!-- Paragraphes ? -->
<ref name="texte"/>
</element>
</define>
<define name="tradition">
<element name="tradition">
<a:documentation>Série des témoins, toujours au moins un, l’ordre est sigificatif</a:documentation>
<oneOrMore>
<choice>
<ref name="temoin"/>
<!--
<ref name="tmp"/>
-->
</choice>
</oneOrMore>
</element>
</define>
<define name="tmp">
<element name="tmp">
<text/>
</element>
</define>
<define name="langue">
<element name="langue">
<text/>
</element>
</define>
<define name="temoin">
<element name="temoin">
<a:documentation>Témoin typé</a:documentation>
<attribute name="type">
<choice>
<value>chancellerie</value>
<value>copie</value>
<value>edition</value>
<value>indique</value>
<value>original</value>
<value>parlement</value>
<value>vidimus</value>
<value>???</value>
</choice>
</attribute>
<!--
<attribute name="n"/>
-->
<zeroOrMore>
<choice>
<text/>
<ref name="ref"/>
<ref name="fonds"/>
</choice>
</zeroOrMore>
<optional>
<element name="source">
<ref name="texte"/>
</element>
</optional>
</element>
</define>
<define name="datation">
<element name="datation">
<a:documentation>Précisions sur la datation (optionnel)</a:documentation>
<ref name="texte"/>
</element>
</define>
<define name="localisation">
<element name="localisation">
<a:documentation>Précisions sur le lieu (optionnel)</a:documentation>
<ref name="texte"/>
</element>
</define>
<define name="expeditions">
<element name="expeditions">
<a:documentation>ex : « tripplicata », texte libre</a:documentation>
<ref name="texte"/>
</element>
</define>
<define name="mentions">
<element name="mentions">
<a:documentation>Texte libre</a:documentation>
<ref name="texte"/>
</element>
</define>
<define name="scellage">
<element name="scellage">
<a:documentation>Sceau, cire…</a:documentation>
<ref name="texte"/>
</element>
</define>
<define name="remarques">
<element name="remarques">
<a:documentation>Remarques, texte libre</a:documentation>
<ref name="texte"/>
</element>
</define>
<define name="personnel">
<element name="personnel">
<a:documentation>Liste de rôles ayant eu part à l’acte</a:documentation>
<oneOrMore>
<ref name="role"/>
</oneOrMore>
</element>
</define>
<define name="role">
<element name="role">
<a:documentation>Rôle dans un acte, type obligatoire, identifié par un nom ou un code</a:documentation>
<attribute name="type">
<choice>
<value>collateur</value>
<value>collation</value>
<value>notaire</value>
<value>refait</value>
<value>refait notaire</value>
<value>sous</value>
</choice>
</attribute>
<text/>
</element>
</define>
<define name="texte">
<a:documentation>Texte riche</a:documentation>
<zeroOrMore>
<choice>
<text/>
<ref name="i"/>
<ref name="pc"/>
<ref name="sup"/>
</choice>
</zeroOrMore>
</define>
<define name="i">
<element name="i">
<a:documentation>Italique</a:documentation>
<oneOrMore>
<choice>
<text/>
<ref name="i"/>
<ref name="pc"/>
<ref name="sup"/>
</choice>
</oneOrMore>
</element>
</define>
<define name="sup">
<element name="sup">
<a:documentation>Exposant</a:documentation>
<text/>
</element>
</define>
<define name="pc">
<element name="pc">
<a:documentation>Petites capitales</a:documentation>
<text/>
</element>
</define>
</grammar>