relaton-itu 1.13.0 → 1.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +0 -1
- data/.github/workflows/release.yml +22 -0
- data/Gemfile +6 -0
- data/README.adoc +23 -31
- data/grammars/basicdoc.rng +3 -28
- data/grammars/biblio-standoc.rng +164 -0
- data/grammars/biblio.rng +94 -21
- data/grammars/relaton-itu-compile.rng +11 -0
- data/grammars/{itu.rng → relaton-itu.rng} +4 -129
- data/lib/relaton_itu/hit_collection.rb +7 -6
- data/lib/relaton_itu/itu_bibliographic_item.rb +9 -0
- data/lib/relaton_itu/itu_bibliography.rb +9 -9
- data/lib/relaton_itu/scrapper.rb +1 -1
- data/lib/relaton_itu/version.rb +1 -1
- data/relaton-itu.gemspec +1 -6
- metadata +12 -81
- data/grammars/isodoc.rng +0 -2807
- data/grammars/reqt.rng +0 -223
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c4af93cb7f6ba7f9beff7222f442fb1d0b17ad382308fd492fadbbe7932cd69
|
4
|
+
data.tar.gz: c19c46f3a457914f60cab5992a1443ccf22242ae9ba7c62d141f4de7bdd23fa2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: addf42eb6f8631ed0f37fdcfc662edcab0b8877c9316c661b7168e6af64b9e584b23787bf9d5d59372da60f19c7468b378f896279ca6b39d6139c1791f023dc5
|
7
|
+
data.tar.gz: 6789334b80124b7a9bbe33631379a952db3849cd34aa46c2bcbdb922f3f9393e65cb93120cd72b35d3590ab3e0f5b42595c3be815db9ca15042d1bb1e8a42332
|
data/.github/workflows/rake.yml
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
+
# See https://github.com/metanorma/cimas
|
3
|
+
name: release
|
4
|
+
|
5
|
+
on:
|
6
|
+
workflow_dispatch:
|
7
|
+
inputs:
|
8
|
+
next_version:
|
9
|
+
description: |
|
10
|
+
Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
|
11
|
+
required: true
|
12
|
+
default: 'skip'
|
13
|
+
push:
|
14
|
+
tags: [ v* ]
|
15
|
+
|
16
|
+
jobs:
|
17
|
+
release:
|
18
|
+
uses: relaton/support/.github/workflows/release.yml@master
|
19
|
+
with:
|
20
|
+
next_version: ${{ github.event.inputs.next_version }}
|
21
|
+
secrets:
|
22
|
+
rubygems-api-key: ${{ secrets.RELATON_CI_RUBYGEMS_API_KEY }}
|
data/Gemfile
CHANGED
data/README.adoc
CHANGED
@@ -34,11 +34,12 @@ Or install it yourself as:
|
|
34
34
|
[source,ruby]
|
35
35
|
----
|
36
36
|
require 'relaton_itu'
|
37
|
+
=> true
|
37
38
|
|
38
39
|
hit_collection = RelatonItu::ItuBibliography.search("ITU-T L.163")
|
39
40
|
=> <RelatonItu::HitCollection:0x007fbf5fb4ab60 @ref=ITU-T L.163 @fetched=false>
|
40
41
|
|
41
|
-
|
42
|
+
item = hit_collection[1].fetch
|
42
43
|
=> #<RelatonItu::ItuBibliographicItem:0x007fbf1fc89548
|
43
44
|
...
|
44
45
|
----
|
@@ -47,34 +48,25 @@ hit_collection = RelatonItu::ItuBibliography.search("ITU-T L.163")
|
|
47
48
|
[source,ruby]
|
48
49
|
----
|
49
50
|
item.to_xml
|
50
|
-
=> "<bibitem id="ITU-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
...
|
58
|
-
</bibitem>"
|
59
|
-
----
|
60
|
-
With `bibdata: true` option XML output wrapped with `bibdata` element and `ext` element added.
|
51
|
+
=> "<bibitem id="ITU-TLSuppl.39" type="standard" schema-version="v1.2.1">
|
52
|
+
<fetched>2022-12-05</fetched>
|
53
|
+
<title type="title-intro" format="text/plain" language="en" script="Latn">ITU-T L.1470</title>
|
54
|
+
...
|
55
|
+
</bibitem>"
|
56
|
+
----
|
57
|
+
With `bibdata: true` option XML output is wrapped with `bibdata` element and `ext` element added.
|
61
58
|
[source,ruby]
|
62
59
|
----
|
63
60
|
item.to_xml bibdata: true
|
64
|
-
=> "<bibdata type="standard">
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<acronym>SG</acronym>
|
74
|
-
</group>
|
75
|
-
</editorialgroup>
|
76
|
-
</ext>
|
77
|
-
</bibdata>"
|
61
|
+
=> "<bibdata type="standard" schema-version="v1.2.1">
|
62
|
+
<fetched>2022-12-05</fetched>
|
63
|
+
<title type="title-intro" format="text/plain" language="en" script="Latn">ITU-T L.1470</title>
|
64
|
+
...
|
65
|
+
<ext schema-version="v1.0.0">
|
66
|
+
<doctype>recommendation</doctype>
|
67
|
+
...
|
68
|
+
</ext>
|
69
|
+
</bibdata>"
|
78
70
|
----
|
79
71
|
|
80
72
|
=== Get code, and year
|
@@ -101,10 +93,10 @@ RelatonItu::ItuBibliography.get "ITU-T G.989.2/Amd 1"
|
|
101
93
|
|
102
94
|
[source,ruby]
|
103
95
|
----
|
104
|
-
RelatonItu::ItuBibliography.get "ITU-R
|
105
|
-
[relaton-itu] ("ITU-R
|
106
|
-
[relaton-itu] ("ITU-R
|
107
|
-
=> #<RelatonItu::ItuBibliographicItem:
|
96
|
+
RelatonItu::ItuBibliography.get "ITU-R BO.600-1"
|
97
|
+
[relaton-itu] ("ITU-R BO.600-1") fetching...
|
98
|
+
[relaton-itu] ("ITU-R BO.600-1") found ITU-R BO.600-1
|
99
|
+
=> #<RelatonItu::ItuBibliographicItem:0x00007fb0cf8a1308
|
108
100
|
...
|
109
101
|
----
|
110
102
|
|
@@ -131,7 +123,7 @@ item.link
|
|
131
123
|
#<RelatonBib::TypedUri:0x00007f82d665f0f8 @content=#<Addressable::URI:0xc184 URI:https://www.itu.inthttp//handle.itu.int/11.1002/1000/13786-en?locatt=format:pdf&auth>, @type="obp">]
|
132
124
|
----
|
133
125
|
|
134
|
-
=== Create bibliographic item
|
126
|
+
=== Create bibliographic item from YAML
|
135
127
|
[source,ruby]
|
136
128
|
----
|
137
129
|
hash = YAML.load_file 'spec/examples/itu_bib_item.yml'
|
data/grammars/basicdoc.rng
CHANGED
@@ -1,10 +1,5 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
3
|
-
<include href="biblio.rng">
|
4
|
-
<start>
|
5
|
-
<ref name="document"/>
|
6
|
-
</start>
|
7
|
-
</include>
|
8
3
|
<define name="document">
|
9
4
|
<element name="document">
|
10
5
|
<optional>
|
@@ -527,7 +522,6 @@
|
|
527
522
|
<value>tip</value>
|
528
523
|
<value>important</value>
|
529
524
|
<value>caution</value>
|
530
|
-
<value>statement</value>
|
531
525
|
</choice>
|
532
526
|
</define>
|
533
527
|
<define name="figure">
|
@@ -688,6 +682,9 @@
|
|
688
682
|
</define>
|
689
683
|
<define name="underline">
|
690
684
|
<element name="underline">
|
685
|
+
<optional>
|
686
|
+
<attribute name="style"/>
|
687
|
+
</optional>
|
691
688
|
<zeroOrMore>
|
692
689
|
<ref name="PureTextElement"/>
|
693
690
|
</zeroOrMore>
|
@@ -1125,26 +1122,4 @@
|
|
1125
1122
|
</zeroOrMore>
|
1126
1123
|
</element>
|
1127
1124
|
</define>
|
1128
|
-
<define name="ext">
|
1129
|
-
<element name="ext">
|
1130
|
-
<ref name="BibDataExtensionType"/>
|
1131
|
-
</element>
|
1132
|
-
</define>
|
1133
|
-
<define name="BibDataExtensionType">
|
1134
|
-
<ref name="doctype"/>
|
1135
|
-
</define>
|
1136
|
-
<define name="doctype">
|
1137
|
-
<element name="doctype">
|
1138
|
-
<ref name="DocumentType"/>
|
1139
|
-
</element>
|
1140
|
-
</define>
|
1141
|
-
<define name="DocumentType">
|
1142
|
-
<value>document</value>
|
1143
|
-
</define>
|
1144
|
-
<define name="BibData">
|
1145
|
-
<ref name="BibliographicItem"/>
|
1146
|
-
<optional>
|
1147
|
-
<ref name="ext"/>
|
1148
|
-
</optional>
|
1149
|
-
</define>
|
1150
1125
|
</grammar>
|
@@ -0,0 +1,164 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
|
3
|
+
<!--
|
4
|
+
Add-ons to biblio.rnc for standoc model: defines the extension point BibDataExtensionType
|
5
|
+
of relaton
|
6
|
+
|
7
|
+
Specialisations as for biblio.rnc. Extension point can be redefined completely for a flavour of standoc
|
8
|
+
(SDO); but other elements in Bibdata can only be extended (more specialised vocabularies for Bibdata)
|
9
|
+
-->
|
10
|
+
<include href="biblio.rng">
|
11
|
+
<define name="BibData">
|
12
|
+
<ref name="BibliographicItem"/>
|
13
|
+
<optional>
|
14
|
+
<ref name="ext"/>
|
15
|
+
</optional>
|
16
|
+
</define>
|
17
|
+
</include>
|
18
|
+
<define name="ext">
|
19
|
+
<element name="ext">
|
20
|
+
<ref name="BibDataExtensionType"/>
|
21
|
+
</element>
|
22
|
+
</define>
|
23
|
+
<define name="BibDataExtensionType">
|
24
|
+
<optional>
|
25
|
+
<attribute name="schema-version"/>
|
26
|
+
</optional>
|
27
|
+
<ref name="doctype"/>
|
28
|
+
<optional>
|
29
|
+
<ref name="docsubtype"/>
|
30
|
+
</optional>
|
31
|
+
<optional>
|
32
|
+
<ref name="editorialgroup"/>
|
33
|
+
</optional>
|
34
|
+
<zeroOrMore>
|
35
|
+
<ref name="ics"/>
|
36
|
+
</zeroOrMore>
|
37
|
+
<zeroOrMore>
|
38
|
+
<ref name="structuredidentifier"/>
|
39
|
+
</zeroOrMore>
|
40
|
+
</define>
|
41
|
+
<define name="doctype">
|
42
|
+
<element name="doctype">
|
43
|
+
<optional>
|
44
|
+
<attribute name="abbreviation"/>
|
45
|
+
</optional>
|
46
|
+
<ref name="DocumentType"/>
|
47
|
+
</element>
|
48
|
+
</define>
|
49
|
+
<define name="DocumentType">
|
50
|
+
<text/>
|
51
|
+
</define>
|
52
|
+
<define name="docsubtype">
|
53
|
+
<element name="subdoctype">
|
54
|
+
<ref name="DocumentSubtype"/>
|
55
|
+
</element>
|
56
|
+
</define>
|
57
|
+
<define name="DocumentSubtype">
|
58
|
+
<text/>
|
59
|
+
</define>
|
60
|
+
<define name="editorialgroup">
|
61
|
+
<element name="editorialgroup">
|
62
|
+
<oneOrMore>
|
63
|
+
<ref name="technical-committee"/>
|
64
|
+
</oneOrMore>
|
65
|
+
</element>
|
66
|
+
</define>
|
67
|
+
<define name="technical-committee">
|
68
|
+
<element name="technical-committee">
|
69
|
+
<ref name="IsoWorkgroup"/>
|
70
|
+
</element>
|
71
|
+
</define>
|
72
|
+
<define name="IsoWorkgroup">
|
73
|
+
<optional>
|
74
|
+
<attribute name="number"/>
|
75
|
+
</optional>
|
76
|
+
<optional>
|
77
|
+
<attribute name="type"/>
|
78
|
+
</optional>
|
79
|
+
<optional>
|
80
|
+
<attribute name="identifier"/>
|
81
|
+
</optional>
|
82
|
+
<optional>
|
83
|
+
<attribute name="prefix"/>
|
84
|
+
</optional>
|
85
|
+
<text/>
|
86
|
+
</define>
|
87
|
+
<define name="ics">
|
88
|
+
<element name="ics">
|
89
|
+
<element name="code">
|
90
|
+
<text/>
|
91
|
+
</element>
|
92
|
+
<optional>
|
93
|
+
<element name="text">
|
94
|
+
<text/>
|
95
|
+
</element>
|
96
|
+
</optional>
|
97
|
+
</element>
|
98
|
+
</define>
|
99
|
+
<define name="structuredidentifier">
|
100
|
+
<element name="structuredidentifier">
|
101
|
+
<optional>
|
102
|
+
<attribute name="type"/>
|
103
|
+
</optional>
|
104
|
+
<oneOrMore>
|
105
|
+
<element name="agency">
|
106
|
+
<text/>
|
107
|
+
</element>
|
108
|
+
</oneOrMore>
|
109
|
+
<optional>
|
110
|
+
<element name="class">
|
111
|
+
<text/>
|
112
|
+
</element>
|
113
|
+
</optional>
|
114
|
+
<element name="docnumber">
|
115
|
+
<text/>
|
116
|
+
</element>
|
117
|
+
<optional>
|
118
|
+
<element name="partnumber">
|
119
|
+
<text/>
|
120
|
+
</element>
|
121
|
+
</optional>
|
122
|
+
<optional>
|
123
|
+
<element name="edition">
|
124
|
+
<text/>
|
125
|
+
</element>
|
126
|
+
</optional>
|
127
|
+
<optional>
|
128
|
+
<element name="version">
|
129
|
+
<text/>
|
130
|
+
</element>
|
131
|
+
</optional>
|
132
|
+
<optional>
|
133
|
+
<element name="supplementtype">
|
134
|
+
<text/>
|
135
|
+
</element>
|
136
|
+
</optional>
|
137
|
+
<optional>
|
138
|
+
<element name="supplementnumber">
|
139
|
+
<text/>
|
140
|
+
</element>
|
141
|
+
</optional>
|
142
|
+
<optional>
|
143
|
+
<element name="amendment">
|
144
|
+
<text/>
|
145
|
+
</element>
|
146
|
+
</optional>
|
147
|
+
<optional>
|
148
|
+
<element name="corrigendum">
|
149
|
+
<text/>
|
150
|
+
</element>
|
151
|
+
</optional>
|
152
|
+
<optional>
|
153
|
+
<element name="language">
|
154
|
+
<text/>
|
155
|
+
</element>
|
156
|
+
</optional>
|
157
|
+
<optional>
|
158
|
+
<element name="year">
|
159
|
+
<text/>
|
160
|
+
</element>
|
161
|
+
</optional>
|
162
|
+
</element>
|
163
|
+
</define>
|
164
|
+
</grammar>
|
data/grammars/biblio.rng
CHANGED
@@ -33,9 +33,10 @@
|
|
33
33
|
<param name="pattern">([\+\-]?\d{4})((-?)((0[1-9]|1[0-2])((-?)([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6]))))?</param>
|
34
34
|
</data>
|
35
35
|
</define>
|
36
|
-
|
37
|
-
|
38
|
-
|
36
|
+
<!-- start = bibitem -->
|
37
|
+
<define name="BibData">
|
38
|
+
<ref name="BibliographicItem"/>
|
39
|
+
</define>
|
39
40
|
<define name="status">
|
40
41
|
<element name="status">
|
41
42
|
<ref name="stage"/>
|
@@ -73,8 +74,14 @@
|
|
73
74
|
<text/>
|
74
75
|
</element>
|
75
76
|
</define>
|
76
|
-
<define name="
|
77
|
+
<define name="locale">
|
77
78
|
<a:documentation>ISO-639</a:documentation>
|
79
|
+
<element name="locale">
|
80
|
+
<text/>
|
81
|
+
</element>
|
82
|
+
</define>
|
83
|
+
<define name="script">
|
84
|
+
<a:documentation>ISO-3166</a:documentation>
|
78
85
|
<element name="script">
|
79
86
|
<text/>
|
80
87
|
</element>
|
@@ -93,6 +100,9 @@
|
|
93
100
|
<!-- multiple languages and scripts possible: comma delimit them if so -->
|
94
101
|
<attribute name="language"/>
|
95
102
|
</optional>
|
103
|
+
<optional>
|
104
|
+
<attribute name="locale"/>
|
105
|
+
</optional>
|
96
106
|
<optional>
|
97
107
|
<attribute name="script"/>
|
98
108
|
</optional>
|
@@ -136,6 +146,9 @@
|
|
136
146
|
<!-- multiple languages and scripts possible: comma delimit them if so -->
|
137
147
|
<attribute name="language"/>
|
138
148
|
</optional>
|
149
|
+
<optional>
|
150
|
+
<attribute name="locale"/>
|
151
|
+
</optional>
|
139
152
|
<optional>
|
140
153
|
<attribute name="script"/>
|
141
154
|
</optional>
|
@@ -158,27 +171,30 @@
|
|
158
171
|
</define>
|
159
172
|
<define name="contributor">
|
160
173
|
<element name="contributor">
|
161
|
-
<
|
174
|
+
<oneOrMore>
|
162
175
|
<ref name="role"/>
|
163
|
-
</
|
176
|
+
</oneOrMore>
|
164
177
|
<ref name="ContributorInfo"/>
|
165
178
|
</element>
|
166
179
|
</define>
|
167
180
|
<define name="role">
|
168
181
|
<element name="role">
|
169
|
-
<
|
170
|
-
<
|
171
|
-
<
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
</
|
180
|
-
|
181
|
-
|
182
|
+
<attribute name="type">
|
183
|
+
<choice>
|
184
|
+
<value>author</value>
|
185
|
+
<value>performer</value>
|
186
|
+
<value>publisher</value>
|
187
|
+
<value>editor</value>
|
188
|
+
<value>adapter</value>
|
189
|
+
<value>translator</value>
|
190
|
+
<value>distributor</value>
|
191
|
+
<value>realizer</value>
|
192
|
+
<value>owner</value>
|
193
|
+
<value>authorizer</value>
|
194
|
+
<value>enabler</value>
|
195
|
+
<value>subject</value>
|
196
|
+
</choice>
|
197
|
+
</attribute>
|
182
198
|
<zeroOrMore>
|
183
199
|
<ref name="roledescription"/>
|
184
200
|
</zeroOrMore>
|
@@ -200,6 +216,9 @@
|
|
200
216
|
<optional>
|
201
217
|
<ref name="fullname"/>
|
202
218
|
</optional>
|
219
|
+
<zeroOrMore>
|
220
|
+
<ref name="credential"/>
|
221
|
+
</zeroOrMore>
|
203
222
|
<zeroOrMore>
|
204
223
|
<ref name="affiliation"/>
|
205
224
|
</zeroOrMore>
|
@@ -216,6 +235,11 @@
|
|
216
235
|
<ref name="FullNameType"/>
|
217
236
|
</element>
|
218
237
|
</define>
|
238
|
+
<define name="credential">
|
239
|
+
<element name="credential">
|
240
|
+
<text/>
|
241
|
+
</element>
|
242
|
+
</define>
|
219
243
|
<define name="FullNameType">
|
220
244
|
<choice>
|
221
245
|
<group>
|
@@ -289,7 +313,9 @@
|
|
289
313
|
<zeroOrMore>
|
290
314
|
<ref name="affiliationdescription"/>
|
291
315
|
</zeroOrMore>
|
292
|
-
<
|
316
|
+
<optional>
|
317
|
+
<ref name="organization"/>
|
318
|
+
</optional>
|
293
319
|
</element>
|
294
320
|
</define>
|
295
321
|
<define name="affiliationname">
|
@@ -500,6 +526,17 @@
|
|
500
526
|
</define>
|
501
527
|
<define name="localityStack">
|
502
528
|
<element name="localityStack">
|
529
|
+
<optional>
|
530
|
+
<attribute name="connective">
|
531
|
+
<choice>
|
532
|
+
<value>and</value>
|
533
|
+
<value>or</value>
|
534
|
+
<value>from</value>
|
535
|
+
<value>to</value>
|
536
|
+
<value/>
|
537
|
+
</choice>
|
538
|
+
</attribute>
|
539
|
+
</optional>
|
503
540
|
<zeroOrMore>
|
504
541
|
<ref name="locality"/>
|
505
542
|
</zeroOrMore>
|
@@ -512,6 +549,17 @@
|
|
512
549
|
</define>
|
513
550
|
<define name="sourceLocalityStack">
|
514
551
|
<element name="sourceLocalityStack">
|
552
|
+
<optional>
|
553
|
+
<attribute name="connective">
|
554
|
+
<choice>
|
555
|
+
<value>and</value>
|
556
|
+
<value>or</value>
|
557
|
+
<value>from</value>
|
558
|
+
<value>to</value>
|
559
|
+
<value/>
|
560
|
+
</choice>
|
561
|
+
</attribute>
|
562
|
+
</optional>
|
515
563
|
<zeroOrMore>
|
516
564
|
<ref name="sourceLocality"/>
|
517
565
|
</zeroOrMore>
|
@@ -614,6 +662,9 @@
|
|
614
662
|
<ref name="BibItemType"/>
|
615
663
|
</attribute>
|
616
664
|
</optional>
|
665
|
+
<optional>
|
666
|
+
<attribute name="schema-version"/>
|
667
|
+
</optional>
|
617
668
|
<optional>
|
618
669
|
<ref name="fetched"/>
|
619
670
|
</optional>
|
@@ -650,6 +701,9 @@
|
|
650
701
|
<zeroOrMore>
|
651
702
|
<ref name="language"/>
|
652
703
|
</zeroOrMore>
|
704
|
+
<zeroOrMore>
|
705
|
+
<ref name="locale"/>
|
706
|
+
</zeroOrMore>
|
653
707
|
<zeroOrMore>
|
654
708
|
<ref name="script"/>
|
655
709
|
</zeroOrMore>
|
@@ -705,6 +759,9 @@
|
|
705
759
|
<ref name="BibItemType"/>
|
706
760
|
</attribute>
|
707
761
|
</optional>
|
762
|
+
<optional>
|
763
|
+
<attribute name="schema-version"/>
|
764
|
+
</optional>
|
708
765
|
<optional>
|
709
766
|
<ref name="fetched"/>
|
710
767
|
</optional>
|
@@ -741,6 +798,9 @@
|
|
741
798
|
<zeroOrMore>
|
742
799
|
<ref name="language"/>
|
743
800
|
</zeroOrMore>
|
801
|
+
<zeroOrMore>
|
802
|
+
<ref name="locale"/>
|
803
|
+
</zeroOrMore>
|
744
804
|
<zeroOrMore>
|
745
805
|
<ref name="script"/>
|
746
806
|
</zeroOrMore>
|
@@ -854,6 +914,15 @@
|
|
854
914
|
<optional>
|
855
915
|
<attribute name="type"/>
|
856
916
|
</optional>
|
917
|
+
<optional>
|
918
|
+
<attribute name="language"/>
|
919
|
+
</optional>
|
920
|
+
<optional>
|
921
|
+
<attribute name="locale"/>
|
922
|
+
</optional>
|
923
|
+
<optional>
|
924
|
+
<attribute name="script"/>
|
925
|
+
</optional>
|
857
926
|
<data type="anyURI"/>
|
858
927
|
</define>
|
859
928
|
<define name="DateType">
|
@@ -882,6 +951,7 @@
|
|
882
951
|
<value>vote-started</value>
|
883
952
|
<value>vote-ended</value>
|
884
953
|
<value>announced</value>
|
954
|
+
<value>stable-until</value>
|
885
955
|
</choice>
|
886
956
|
</define>
|
887
957
|
<define name="bdate">
|
@@ -930,6 +1000,9 @@
|
|
930
1000
|
<optional>
|
931
1001
|
<attribute name="language"/>
|
932
1002
|
</optional>
|
1003
|
+
<optional>
|
1004
|
+
<attribute name="locale"/>
|
1005
|
+
</optional>
|
933
1006
|
<optional>
|
934
1007
|
<attribute name="script"/>
|
935
1008
|
</optional>
|
@@ -1253,7 +1326,7 @@
|
|
1253
1326
|
<value>commentaryOf</value>
|
1254
1327
|
<value>hasCommentary</value>
|
1255
1328
|
<value>related</value>
|
1256
|
-
<value>
|
1329
|
+
<value>hasComplement</value>
|
1257
1330
|
<value>complementOf</value>
|
1258
1331
|
<value>obsoletes</value>
|
1259
1332
|
<value>obsoletedBy</value>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
|
3
|
+
<include href="basicdoc.rng"/>
|
4
|
+
<include href="relaton-itu.rng"/>
|
5
|
+
<start>
|
6
|
+
<choice>
|
7
|
+
<ref name="bibitem"/>
|
8
|
+
<ref name="bibdata"/>
|
9
|
+
</choice>
|
10
|
+
</start>
|
11
|
+
</grammar>
|