relaton-gb 1.13.0 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +24 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +1 -1
- data/Gemfile +10 -1
- data/README.adoc +24 -69
- data/grammars/basicdoc.rng +3 -28
- data/grammars/biblio-standoc.rng +164 -0
- data/grammars/biblio.rng +95 -22
- data/grammars/relaton-gb-compile.rng +11 -0
- data/grammars/relaton-gb.rng +297 -0
- data/lib/relaton_gb/gb_bibliographic_item.rb +10 -5
- data/lib/relaton_gb/gb_bibliography.rb +10 -9
- data/lib/relaton_gb/version.rb +1 -1
- data/relaton_gb.gemspec +2 -11
- metadata +13 -125
- data/grammars/gbstandard.rng +0 -316
- data/grammars/isodoc.rng +0 -2807
- data/grammars/isostandard.rng +0 -514
- data/grammars/reqt.rng +0 -223
data/grammars/gbstandard.rng
DELETED
@@ -1,316 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
3
|
-
<!-- default namespace = "https://www.metanorma.com/ns/gb" -->
|
4
|
-
<!--
|
5
|
-
Currently we inherit from a namespaced grammar, isostandard. Unless we inherit from isodoc,
|
6
|
-
we cannot have a new default namespace: we will end up with a grammar with two different
|
7
|
-
namespaces, one for isostandard and one for csd additions. And we do not want that.
|
8
|
-
-->
|
9
|
-
<include href="isostandard.rng">
|
10
|
-
<start>
|
11
|
-
<ref name="gb-standard"/>
|
12
|
-
</start>
|
13
|
-
<define name="preferred">
|
14
|
-
<element name="preferred">
|
15
|
-
<ref name="ZhEnLocalizedString"/>
|
16
|
-
</element>
|
17
|
-
</define>
|
18
|
-
<define name="admitted">
|
19
|
-
<element name="admitted">
|
20
|
-
<ref name="ZhEnLocalizedString"/>
|
21
|
-
</element>
|
22
|
-
</define>
|
23
|
-
<define name="deprecates">
|
24
|
-
<element name="deprecates">
|
25
|
-
<ref name="ZhEnLocalizedString"/>
|
26
|
-
</element>
|
27
|
-
</define>
|
28
|
-
<define name="term">
|
29
|
-
<element name="term">
|
30
|
-
<optional>
|
31
|
-
<attribute name="id">
|
32
|
-
<data type="ID"/>
|
33
|
-
</attribute>
|
34
|
-
</optional>
|
35
|
-
<oneOrMore>
|
36
|
-
<ref name="preferred"/>
|
37
|
-
</oneOrMore>
|
38
|
-
<zeroOrMore>
|
39
|
-
<ref name="admitted"/>
|
40
|
-
</zeroOrMore>
|
41
|
-
<zeroOrMore>
|
42
|
-
<ref name="deprecates"/>
|
43
|
-
</zeroOrMore>
|
44
|
-
<optional>
|
45
|
-
<ref name="termdomain"/>
|
46
|
-
</optional>
|
47
|
-
<ref name="termdefinition"/>
|
48
|
-
<zeroOrMore>
|
49
|
-
<ref name="termnote"/>
|
50
|
-
</zeroOrMore>
|
51
|
-
<zeroOrMore>
|
52
|
-
<ref name="termexample"/>
|
53
|
-
</zeroOrMore>
|
54
|
-
<zeroOrMore>
|
55
|
-
<ref name="termsource"/>
|
56
|
-
</zeroOrMore>
|
57
|
-
</element>
|
58
|
-
</define>
|
59
|
-
<define name="BibDataExtensionType">
|
60
|
-
<optional>
|
61
|
-
<ref name="doctype"/>
|
62
|
-
</optional>
|
63
|
-
<optional>
|
64
|
-
<ref name="docsubtype"/>
|
65
|
-
</optional>
|
66
|
-
<zeroOrMore>
|
67
|
-
<ref name="gbcommittee"/>
|
68
|
-
</zeroOrMore>
|
69
|
-
<zeroOrMore>
|
70
|
-
<ref name="ics"/>
|
71
|
-
</zeroOrMore>
|
72
|
-
<ref name="structuredidentifier"/>
|
73
|
-
<optional>
|
74
|
-
<ref name="stagename"/>
|
75
|
-
</optional>
|
76
|
-
<ref name="gbtype"/>
|
77
|
-
<oneOrMore>
|
78
|
-
<ref name="gbccs"/>
|
79
|
-
</oneOrMore>
|
80
|
-
<optional>
|
81
|
-
<ref name="gbplannumber"/>
|
82
|
-
</optional>
|
83
|
-
</define>
|
84
|
-
<define name="term-clause">
|
85
|
-
<element name="clause">
|
86
|
-
<optional>
|
87
|
-
<attribute name="id">
|
88
|
-
<data type="ID"/>
|
89
|
-
</attribute>
|
90
|
-
</optional>
|
91
|
-
<optional>
|
92
|
-
<attribute name="language"/>
|
93
|
-
</optional>
|
94
|
-
<optional>
|
95
|
-
<attribute name="script"/>
|
96
|
-
</optional>
|
97
|
-
<optional>
|
98
|
-
<attribute name="inline-header">
|
99
|
-
<data type="boolean"/>
|
100
|
-
</attribute>
|
101
|
-
</optional>
|
102
|
-
<optional>
|
103
|
-
<attribute name="obligation">
|
104
|
-
<choice>
|
105
|
-
<value>normative</value>
|
106
|
-
<value>informative</value>
|
107
|
-
</choice>
|
108
|
-
</attribute>
|
109
|
-
</optional>
|
110
|
-
<optional>
|
111
|
-
<ref name="section-title"/>
|
112
|
-
</optional>
|
113
|
-
<zeroOrMore>
|
114
|
-
<!-- boilerplate not stripped -->
|
115
|
-
<choice>
|
116
|
-
<ref name="paragraph"/>
|
117
|
-
<ref name="ul"/>
|
118
|
-
</choice>
|
119
|
-
</zeroOrMore>
|
120
|
-
<choice>
|
121
|
-
<oneOrMore>
|
122
|
-
<ref name="term-clause"/>
|
123
|
-
</oneOrMore>
|
124
|
-
<zeroOrMore>
|
125
|
-
<choice>
|
126
|
-
<ref name="terms"/>
|
127
|
-
<ref name="definitions"/>
|
128
|
-
</choice>
|
129
|
-
</zeroOrMore>
|
130
|
-
</choice>
|
131
|
-
</element>
|
132
|
-
</define>
|
133
|
-
<define name="terms">
|
134
|
-
<element name="terms">
|
135
|
-
<optional>
|
136
|
-
<attribute name="id">
|
137
|
-
<data type="ID"/>
|
138
|
-
</attribute>
|
139
|
-
</optional>
|
140
|
-
<optional>
|
141
|
-
<attribute name="language"/>
|
142
|
-
</optional>
|
143
|
-
<optional>
|
144
|
-
<attribute name="script"/>
|
145
|
-
</optional>
|
146
|
-
<optional>
|
147
|
-
<attribute name="obligation">
|
148
|
-
<choice>
|
149
|
-
<value>normative</value>
|
150
|
-
<value>informative</value>
|
151
|
-
</choice>
|
152
|
-
</attribute>
|
153
|
-
</optional>
|
154
|
-
<optional>
|
155
|
-
<ref name="section-title"/>
|
156
|
-
</optional>
|
157
|
-
<zeroOrMore>
|
158
|
-
<!-- boilerplate not stripped -->
|
159
|
-
<choice>
|
160
|
-
<ref name="paragraph"/>
|
161
|
-
<ref name="ul"/>
|
162
|
-
</choice>
|
163
|
-
</zeroOrMore>
|
164
|
-
<choice>
|
165
|
-
<oneOrMore>
|
166
|
-
<ref name="term"/>
|
167
|
-
</oneOrMore>
|
168
|
-
<group>
|
169
|
-
<zeroOrMore>
|
170
|
-
<ref name="terms"/>
|
171
|
-
</zeroOrMore>
|
172
|
-
<optional>
|
173
|
-
<ref name="definitions"/>
|
174
|
-
</optional>
|
175
|
-
</group>
|
176
|
-
</choice>
|
177
|
-
</element>
|
178
|
-
</define>
|
179
|
-
<define name="DocumentType">
|
180
|
-
<choice>
|
181
|
-
<value>standard</value>
|
182
|
-
<value>recommendation</value>
|
183
|
-
</choice>
|
184
|
-
</define>
|
185
|
-
</include>
|
186
|
-
<!-- identical structure to iso-standard -->
|
187
|
-
<define name="gb-standard">
|
188
|
-
<element name="gb-standard">
|
189
|
-
<attribute name="version"/>
|
190
|
-
<attribute name="type">
|
191
|
-
<choice>
|
192
|
-
<value>semantic</value>
|
193
|
-
<value>presentation</value>
|
194
|
-
</choice>
|
195
|
-
</attribute>
|
196
|
-
<ref name="bibdata"/>
|
197
|
-
<zeroOrMore>
|
198
|
-
<ref name="termdocsource"/>
|
199
|
-
</zeroOrMore>
|
200
|
-
<optional>
|
201
|
-
<ref name="misccontainer"/>
|
202
|
-
</optional>
|
203
|
-
<optional>
|
204
|
-
<ref name="boilerplate"/>
|
205
|
-
</optional>
|
206
|
-
<ref name="preface"/>
|
207
|
-
<oneOrMore>
|
208
|
-
<ref name="sections"/>
|
209
|
-
</oneOrMore>
|
210
|
-
<zeroOrMore>
|
211
|
-
<ref name="annex"/>
|
212
|
-
</zeroOrMore>
|
213
|
-
<ref name="bibliography"/>
|
214
|
-
<zeroOrMore>
|
215
|
-
<ref name="indexsect"/>
|
216
|
-
</zeroOrMore>
|
217
|
-
</element>
|
218
|
-
</define>
|
219
|
-
<define name="gbccs">
|
220
|
-
<element name="ccs">
|
221
|
-
<element name="code">
|
222
|
-
<text/>
|
223
|
-
</element>
|
224
|
-
<optional>
|
225
|
-
<element name="text">
|
226
|
-
<text/>
|
227
|
-
</element>
|
228
|
-
</optional>
|
229
|
-
</element>
|
230
|
-
</define>
|
231
|
-
<define name="gbplannumber">
|
232
|
-
<element name="plannumber">
|
233
|
-
<text/>
|
234
|
-
</element>
|
235
|
-
</define>
|
236
|
-
<define name="gbcommittee">
|
237
|
-
<element name="gbcommittee">
|
238
|
-
<attribute name="type">
|
239
|
-
<choice>
|
240
|
-
<value>technical</value>
|
241
|
-
<value>provisional</value>
|
242
|
-
<value>drafting</value>
|
243
|
-
</choice>
|
244
|
-
</attribute>
|
245
|
-
<text/>
|
246
|
-
</element>
|
247
|
-
</define>
|
248
|
-
<define name="gbtype">
|
249
|
-
<element name="gbtype">
|
250
|
-
<ref name="gbscope"/>
|
251
|
-
<ref name="gbprefix"/>
|
252
|
-
<ref name="gbmandate"/>
|
253
|
-
<ref name="gbtopic"/>
|
254
|
-
</element>
|
255
|
-
</define>
|
256
|
-
<define name="gbscope">
|
257
|
-
<element name="gbscope">
|
258
|
-
<choice>
|
259
|
-
<value>national</value>
|
260
|
-
<value>sector</value>
|
261
|
-
<value>professional</value>
|
262
|
-
<value>local</value>
|
263
|
-
<value>enterprise</value>
|
264
|
-
<value>social-group</value>
|
265
|
-
</choice>
|
266
|
-
</element>
|
267
|
-
</define>
|
268
|
-
<define name="gbmandate">
|
269
|
-
<element name="gbmandate">
|
270
|
-
<choice>
|
271
|
-
<value>mandatory</value>
|
272
|
-
<value>recommended</value>
|
273
|
-
<value>guidelines</value>
|
274
|
-
</choice>
|
275
|
-
</element>
|
276
|
-
</define>
|
277
|
-
<define name="gbprefix">
|
278
|
-
<element name="gbprefix">
|
279
|
-
<text/>
|
280
|
-
</element>
|
281
|
-
</define>
|
282
|
-
<define name="gbtopic">
|
283
|
-
<element name="gbtopic">
|
284
|
-
<choice>
|
285
|
-
<value>basic</value>
|
286
|
-
<value>health-and-safety</value>
|
287
|
-
<value>environment-protection</value>
|
288
|
-
<value>engineering-and-construction</value>
|
289
|
-
<value>product</value>
|
290
|
-
<value>method</value>
|
291
|
-
<value>management-techniques</value>
|
292
|
-
<value>other</value>
|
293
|
-
</choice>
|
294
|
-
</element>
|
295
|
-
</define>
|
296
|
-
<define name="ZhEnLocalizedString">
|
297
|
-
<!-- multiple languages and scripts possible: comma delimit them if so -->
|
298
|
-
<attribute name="language">
|
299
|
-
<choice>
|
300
|
-
<value>zh</value>
|
301
|
-
<value>en</value>
|
302
|
-
</choice>
|
303
|
-
</attribute>
|
304
|
-
<optional>
|
305
|
-
<attribute name="script">
|
306
|
-
<choice>
|
307
|
-
<value>Hans</value>
|
308
|
-
<value>Latn</value>
|
309
|
-
</choice>
|
310
|
-
</attribute>
|
311
|
-
</optional>
|
312
|
-
<oneOrMore>
|
313
|
-
<ref name="TextElement"/>
|
314
|
-
</oneOrMore>
|
315
|
-
</define>
|
316
|
-
</grammar>
|